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

Re: [android-developers] Wrong widthPixels?

2011-03-22 Thread CaryWang
droid:normalScreens="true" > android:largeScreens="true" > android:anyDensity="true" /> > > -- Kostya > > 22.03.2011 13:01, CaryWang пишет: > >> DisplayMetrics dm = new DisplayMetrics(); >> dm=getResources().getDisplayMetrics(); >> int width=dm.

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

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 > May be you have not the file:///data/data//databases/abc > or your db's version is not 1and your class have not implementation > onUpgrade > > -- > You received this message because you

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 > Are you actually copying the database from the package into the data > area before you try this? > > On Mar 11, 4:21 am, CaryWang wrote: > > My code open DataBase is Error

[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: webview show map problem?help me

2011-01-04 Thread CaryWang
t; testexpe...@googlemail.com> wrote: > >> >> What is your error? >> >> Greetings from lucerne, >> Stephan >> >> On 5 Jan., 00:20, CaryWang wrote: >> > I try webview show map,but is error. >> > >> > public void onCreate(Bundle s

[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] 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 > On Mon, Dec 27, 2010 at 2:33 AM, CaryWang wrote: > >> I want use webView load html.however, shows only the s

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

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

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

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

2010-09-07 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 gr

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 > On Tue, Aug 24, 2010 at 3:17 AM, CaryWang wrote: > > I have a application I write android:sharedUserId="android.uid.

[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 android.uid

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

2010-08-22 Thread CaryWang
" 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 ? >> &g

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

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 > Set fillEnabled and fillAtfer properies of your aimation > > On Aug 21, 2:28 pm, CaryWang wrote: > > I use translate move image from top to bottom,but translate finish image > > jump t

[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] 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 pos

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

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

2010-08-11 Thread CaryWang
with Thread.sleep(60*1000), it won't show up > until a minute later, after the sleep returns. > > 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 thi

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

2010-08-11 Thread CaryWang
n your Toast. > > Have a look at this page: > http://developer.android.com/guide/topics/ui/notifiers/toasts.html > > > Regards > Sarwar Erfan > > > On Aug 11, 3:50 pm, CaryWang wrote: > > I run service in the background I want to use Toast.makeText display &

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 } > On 11 August 2010 11:50, CaryWang wrote: > > I run service in the background I want to use Toast.makeText display > message > > to run Activity.but I don't know Acti

[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" gr

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

2010-08-10 Thread CaryWang
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 wrote: > > I have

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

[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
rday. You need to export classes in the Java Build Path section > of the project settings. > > On Aug 4, 9:24 pm, CaryWang wrote: > > I want use JUnit test my project,but sometime test > > error(java.lang.IllegalAccessError: cross-loader access from pre-verified > > class).Be

[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 "Androi