[android-developers] Handler problem

2011-12-01 Thread CaryWang
I have two thread, one thread:HandlerThread, two thread:normal thread. question: two thread endless send message to handlerThread,but handlerThread is quit.So I don't know what will happen.e.g:OutOfMemory -- Cary -- You received this message because you are subscribed to the Google Groups

[android-developers] Wrong widthPixels?

2011-03-22 Thread CaryWang
DisplayMetrics dm = new DisplayMetrics(); dm=getResources().getDisplayMetrics(); int width=dm.widthPixels int height=dm.heightPixels W shoud be 480 and H shoud be 854 But for me W is 320 and H is 536.What am I doing wrong??? -- Cary -- You received this message because you are subscribed to

Re: [android-developers] Wrong widthPixels?

2011-03-22 Thread CaryWang
android:largeScreens=true android:anyDensity=true / -- Kostya 22.03.2011 13:01, CaryWang пишет: DisplayMetrics dm = new DisplayMetrics(); dm=getResources().getDisplayMetrics(); int width=dm.widthPixels int height=dm.heightPixels W shoud be 480 and H shoud be 854 But for me W is 320 and H is 536.What am

Re: [android-developers] Re: why does open DataBase Error

2011-03-14 Thread CaryWang
No,Database is error,but can query select data.My program is implements onUpgrade method 2011/3/11 Uniser unise...@gmail.com May be you have not the file:///data/data/package-name/databases/abc or your db's version is not 1and your class have not implementation onUpgrade -- You received

[android-developers] why does open DataBase Error

2011-03-11 Thread CaryWang
My code open DataBase is Error .Error info Sqlite register_localized_collators. Why? My code: public class DataBase extends SQLiteOpenHelper{ public DataBase(Context context) { super(context, abc, null, 1); } public vod test(){ SQLiteDatabase db= getReadableDatabase();

Re: [android-developers] Re: why does open DataBase Error

2011-03-11 Thread CaryWang
this database is my app create.but every time open database is error 2011/3/11 lbendlin l...@bendlin.us Are you actually copying the database from the package into the data area before you try this? On Mar 11, 4:21 am, CaryWang wangjf...@gmail.com wrote: My code open DataBase is Error

[android-developers] webview show map problem?help me

2011-01-04 Thread CaryWang
I try webview show map,but is error. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); startButton=(Button)findViewById(R.id.start); startButton.setOnClickListener(new View.OnClickListener() {

Re: [android-developers] Re: webview show map problem?help me

2011-01-04 Thread CaryWang
: What is your error? Greetings from lucerne, Stephan On 5 Jan., 00:20, CaryWang wangjf...@gmail.com wrote: I try webview show map,but is error. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main

[android-developers] How to do use WebView load html?

2010-12-27 Thread CaryWang
I want use webView load html.however, shows only the screen size of the html, and other areas not show, a user can't drag it to other areas -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to do use WebView load html?

2010-12-27 Thread CaryWang
I use webView load html page。I want show screen size of the html page,other area html page not show.and user can't drag screent show other area. 2010/12/28 TreKing treking...@gmail.com On Mon, Dec 27, 2010 at 2:33 AM, CaryWang wangjf...@gmail.com wrote: I want use webView load html.however

[android-developers] I want application runtime load new jar?

2010-09-08 Thread CaryWang
My application update some jar files,I want runtime load jar files or any idea? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Dynamically load jar files in android runtime?

2010-09-08 Thread CaryWang
I have a jar file in my app local data /data/data/application packageName/test.jar. I want to load the class com.test.abc which resides in my jar. I am using java.net.URLClassLoader to load the class. On an non android environment the code works, on android it gives me this exception can't load

[android-developers] Dynamically java class on android/dalvik?

2010-09-08 Thread CaryWang
I use DexClassLoader load my update class files is finish.I run update class method print old method value don't update class method value.why? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] I want to get system permission?

2010-08-24 Thread CaryWang
I have a application I write android:sharedUserId=android.uid.system in AndroidManifest.xml. I want to get system permission.I install to HTC mobile phone.but install fail.error info :Package ... has no signatures that match those in shared user android.uid.system. I application need

Re: [android-developers] I want to get system permission?

2010-08-24 Thread CaryWang
Do you have anyelse method?I want to know user opreation?e.g.when user run application i know,exit application i know. 2010/8/24 Mark Murphy mmur...@commonsware.com On Tue, Aug 24, 2010 at 3:17 AM, CaryWang wangjf...@gmail.com wrote: I have a application I write android:sharedUserId

Re: [android-developers] Re: I don't know how to use Animation translate

2010-08-22 Thread CaryWang
I want suit different screen,I don't now how to do? 2010/8/22 Paul Turchenko paul.turche...@gmail.com Set fillEnabled and fillAtfer properies of your aimation On Aug 21, 2:28 pm, CaryWang wangjf...@gmail.com wrote: I use translate move image from top to bottom,but translate finish image

[android-developers] Animation support different resolution rate?

2010-08-22 Thread CaryWang
I use Animation Translate in my application,my mobile phone resolution rate is 320*280,but In the 480*800 resolution rate don't support.I want ask I should how to do ? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Animation support different resolution rate?

2010-08-22 Thread CaryWang
% values in animation definitions (e.g. animate -100% to 0% or some such). -- Kostya 22.08.2010 19:23, CaryWang пишет: I use Animation Translate in my application,my mobile phone resolution rate is 320*280,but In the 480*800 resolution rate don't support.I want ask I should how to do

[android-developers] I don't know how to use Animation translate

2010-08-21 Thread CaryWang
I use translate move image from top to bottom,but translate finish image jump to image initial position.I don't know why,I want move image from A to B,finsih this image stay B. -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How to use ActivityManagerService?

2010-08-16 Thread CaryWang
I want to know current Activity some information.for example activity name or activity package info.I use getRecentTasks method get current Activity info,but somebody tell me this method don't better,should use ActivityManagerSrevice do it,but this method don't open.I want to know how to do?Who

[android-developers] I want to know user operation info?

2010-08-16 Thread CaryWang
I want to know user operation info for example user run some app or close app info.I want know android automatic notification my service.I don't know how to do it?help me . -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Re: How do I know current run Activity name?

2010-08-11 Thread CaryWang
in a different way. Register your activity to listen to a particular kind of broadcast which the service would send with the message, and so whatever you need to do. -Kumar Bibek http://techdroid.kbeanie.com On Aug 11, 10:19 am, CaryWang wangjf...@gmail.com wrote: I have Service,Sometimes

[android-developers] How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
I run service in the background I want to use Toast.makeText display message to run Activity.but I don't know Activity context I know Activity packageName and className.What should I do? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
NO,getApplicationContext() is Service Context don't Activity Context. 2010/8/11 { Devdroid } webnet.andr...@gmail.com On 11 August 2010 11:50, CaryWang wangjf...@gmail.com wrote: I run service in the background I want to use Toast.makeText display message to run Activity.but I don't know

Re: [android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
at this page: http://developer.android.com/guide/topics/ui/notifiers/toasts.html Regards Sarwar Erfan On Aug 11, 3:50 pm, CaryWang wangjf...@gmail.com wrote: I run service in the background I want to use Toast.makeText display message to run Activity.but I don't know Activity context I know

Re: [android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
. By the way -- toast does not display IN an activity. It shows up IN FRONT OF an activity. That is, the activity is not affected, the toast is just in front of it briefly. In this case, the activity is not really involved at all. On Aug 11, 3:06 am, CaryWang wangjf...@gmail.com wrote: I

[android-developers] How do I know current run Activity name?

2010-08-10 Thread CaryWang
I have Service,Sometimes current run Activity work in background I don't want to know. I want to know current work interface Activity name? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] I want to know which app is run?

2010-08-09 Thread CaryWang
I want to know which app is run in my service,I know the app name,I need know app is run or not do something. -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

Re: [android-developers] Re: How to use JUnit test Android Project?

2010-08-05 Thread CaryWang
classes in the Java Build Path section of the project settings. On Aug 4, 9:24 pm, CaryWang wangjf...@gmail.com wrote: I want use JUnit test my project,but sometime test error(java.lang.IllegalAccessError: cross-loader access from pre-verified class).Because my project import another java

[android-developers] How to use JUnit test Android Project?

2010-08-04 Thread CaryWang
I want use JUnit test my project,but sometime test error(java.lang.IllegalAccessError: cross-loader access from pre-verified class).Because my project import another java project.I don't know how to do? -- Cary -- You received this message because you are subscribed to the Google Groups