How to use Native Activity and View from Java

by lorydi » Thu, 10 Mar 2011 09:46:32 GMT


Sponsored Links
 I have a game developed in Java with the SDK. Now I have to track the
events from Xperia Play touchpad which are only available in native
code. What is the most simple solution to do this? I want to keep the
Java code and only change the Activity into NativeActivity . The
problem that I face is that I don't know how to make the paint on the
my normal SurfaceView class, the screen remains black.

-- 



Re: How to use Native Activity and View from Java

by jaafar zbeiba » Sat, 12 Mar 2011 04:21:55 GMT


 I use a JPasswordField but I have a problem with java.awt.event java.swing
and that can help me
com.example.tuto package;

import javax.swing .*;
import java.awt .*;
import java.awt.event .*;

public class Input extends JFrame implements ActionListener {

JPasswordField pass;
JButton test = new JButton ("get");

public Password () {
JPanel pane = new JPanel ();
test.addActionListener (this);
pane.setLayout (new FlowLayout ());
pane.add (pass = new JPasswordField (15));
pane.add (test);
setContentPane (pane);
setVisible (true);
}

-- 


Sponsored Links


Other Threads

1. Camera Hardware abstraction layer for froyo

Hi all,

I am porting android onto dm365.I am using froyo. My camera(mt9p031)
is not working. I enable v4l drivers required for camera hardware in
kernel level. How to  write HAL for this camera in froyo.

Any suggestions welcome..

Thanks in advance

-- 

2. Undeletable SMS

Hi All,

How to save an received SMS in another location (e.g. SD card) and
make it no deletable?

Assuming this received SMS contains important message (Like username)
which will be required in the future.

Regards.

-- 

3. How to startActivity() in a subclass of Dialog?

4. OTA XML provisioning document

5. Java and Native files for Bluetooth HF profile implemntation

6. Reset factory N1

7. 1.5 quits for apparently no reason whilst animating (WIN DEATH)