[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 can

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

2008-04-21 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

[android-developers] Problem of resume a SurfaceView

2008-04-18 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 onRes

[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 onRes

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

2008-04-16 Thread Macro
n onResume() 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, Mac

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

2008-04-16 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

[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] Re: How to communicate between IntentReceiver and Activity?

2008-04-15 Thread Macro
t; I think 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: > >

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

2008-04-14 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: 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 objec

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

2008-04-10 Thread Macro
f_linux_eabi.xsc -o libNativeAdd.so libNativeAdd.so.tmp 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? >

[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: Load a class from another .apk file dynamic?

2008-04-10 Thread Macro
I believe there are lots of limits with script in android, such as OpenGL. And Hecl is a language for J2ME but not Android, I'm afrade it doesn't compatible? Suddenly, I found C/C++ are so powerful... On 4月10日, 下午3时36分, "David Welton" <[EMAIL PROTECTED]> wrote: > > I want to develop an applicat

[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 f

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

2008-04-09 Thread Macro
_add" do nothing except return a const value. My shared library name 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 runni

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

2008-04-09 Thread Macro
s before, it throw a "UnsatisfiedLinkError" exception. I search keyword "JNI" & "Android" , most of archives are useless... BTW, We must install strace, busybox in our emulator and copy system image to PC? I havn't install it right now. On 4月8日, 下午5时57分, David Gi

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

2008-04-08 Thread Macro
I compile the c file as library with arm-none-linux-gnueabi-gcc, then put the so file in emulator's directory :"/system/lib", while execute System.loadLibrary, there is a dialog said :"Library not found". I can run the same program in windows correctly. And I didn't call any libc function. How to