[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-22 Thread Macro
There are none code at SVN? I want to reference how to use DexFile correctly... On 4月21日, 下午6时31分, tu [EMAIL PROTECTED] wrote: I have a solution based on android.dalvik.DexFile. see my projecthttp://code.google.com/p/rcpandroid/ 2008/4/21, frankl [EMAIL PROTECTED]: Hi chris.p,

[android-developers] How to set SQLite's write permission In SQLiteDatabase class?

2008-04-22 Thread Macro
There is a flag named OPEN_READWRITE in SQLiteDatabase, but how to use it in SQLiteDatabase.create()? In the document it said that OPEN_READWRITE is default, but while I create an database use SQLiteDatabase.create(String path), the other application cann't write it? How to create an database

[android-developers] Re: About load '.so' library file with JNI

2008-04-17 Thread Macro
Android support the API, your library name are correct? What does you logcat said? On 4月17日, 上午11时38分, stavy.sun [EMAIL PROTECTED] wrote: hi Macro. i have done the same test following your way, but i haven't run JNI successful. i meet the problem application exits after loading library

[android-developers] Re: A question about OpenGL SurfaceView in DEMO

2008-04-17 Thread Macro
() callback? The point of the demo is to show how to do a continually updating OpenGL display, such as used in a game.  If that is not what you need, you can use Handler to post a message at the rate you want to update the display. On Apr 16, 5:50 pm, Macro [EMAIL PROTECTED] wrote

[android-developers] Problem of resume a SurfaceView

2008-04-17 Thread Macro
At the beginning, the SurfaceView can draw OpenGL scene correct. But while I launch another Activity , after that close the new- launched Activity and return to the original Activity. Then the SurfaceView became empty and cann't draw anything. That's why? There are any action must be done in

[android-developers] A question about OpenGL SurfaceView in DEMO

2008-04-16 Thread Macro
In the demo of OpenGL, there launch a thread with an endless circle to draw the frame. But I believe the modus waste lots of system resource, there are any good modus? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] How to communicate between IntentReceiver and Activity?

2008-04-15 Thread Macro
I had try to use AIDL, but while call Context.bindService in IntentReceiver , there is a error dialog said cann't bind service in IntentReceiver. How to communicate between IntentReceiver and Activity? I had tried use Inner-class , such as : --code-- public class TestActivity extends Activity {

[android-developers] Re: How to communicate between IntentReceiver and Activity?

2008-04-15 Thread Macro
the issue with the above is that your MyIntentReceiver class would need to be declared static (if it were to work at all). Of course, when you do that, you won't be able to access foo(). On Apr 14, 11:30 pm, Macro [EMAIL PROTECTED] wrote: I had try to use AIDL, but while call Context.bindService

[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-13 Thread Macro
Thanks, I can get Class with the code now, but there is another problem while execute Class.newInstance(); For example, I load a class named: project.plugin.PluginClass, the class implements a interface named project.plugininterfaces.PluginInterface. Then, I use PluginInterface to hold the

[android-developers] Re: About load '.so' library file with JNI

2008-04-11 Thread Macro
On 4月10日, 下午6时25分, David Given [EMAIL PROTECTED] wrote: Macro wrote: [...] My shared library name is libNativeAdd.so, but system doesn't find it ? Need I register it somewhere? Your log doesn't show you loading the library --- you are calling System.loadLibrary(NativeAdd), aren't you

[android-developers] How to pick a face in OpenGL ES?

2008-04-10 Thread Macro
In PC platform, OpenGL provide various functions to pick a face, but in OpenGL ES, I cann't find needed function such as glRenderMode and so on. Thus, how to pick a face with OpenGL ES? Calculate face coordinate data and line function by myself?

[android-developers] Re: About load '.so' library file with JNI

2008-04-09 Thread Macro
is libNativeAdd.so, but system doesn't find it ? Need I register it somewhere? On 4月9日, 下午6时05分, David Given [EMAIL PROTECTED] wrote: Macro wrote: [...] But while running loadLibrary(libNativeAdd), the same as before, it throw a UnsatisfiedLinkError exception. You almost certainly have

[android-developers] Load a class from another .apk file dynamic?

2008-04-09 Thread Macro
I want to develop an application, it was form by plugins. Then I need to load a class from plugin. Use Class.forName() to load a class from the same apk file, it's successful, but if the class is in another apk file, the method throw ClassNotFoundException. How to load the class from another apk