Re: [android-developers] Is it possible to get arbitrary language string by getResources().getString(id)

2010-12-27 Thread XC He
try to have on donottranslate.xml in your values folder 2010/12/28 Ernest sunkil...@gmail.com: Hi,Folk   My application define 3 languages,so I ready 3 string.xml for different language.But if my current configuage local is en,is it possible to query a Chinese string by resource id? Thank you

Re: [android-developers] Send email via ACTION SEND intent

2010-12-27 Thread XC He
If there are several mail clients in the device, and you just want one receive your intent. I think before your startActivity(), you have to setClassName(String packageName, String className) ex. sendIntent.setClassName(com.android.email, com.android.email.activity.MessageCompose); 2010/12/28

Re: [android-developers] Re: Why Android Why???

2010-12-19 Thread XC He
is this a wish list for X'mas? 2010/12/20 gjs garyjamessi...@gmail.com: Hi, Given you have few billion dollars lying around to spend you *can* make an iPhone clone and you *can* afford to have one year cycle times between devices and you *can* spend a few hundred million dollars promoting

Re: [android-developers] Re: How to tell System Apps vs. User Installed Apps

2010-12-06 Thread XC He
System app is installed under /system/app In theory, it cannot be uninstall. you can use applicationinfo to fing the flags, if the flags contains FLAG_SYSTEM, it could be system app. import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; PackageManager pm =

Re: [android-developers] How to differentiate a tap event generated by system or by user

2010-12-05 Thread XC He
is there any tap event generated not by user's taping behavior? 2010/12/6 ankit ankit.ag...@gmail.com: Hi All, Urgently needed help on this. Actually i am recording and playing a sequence of events using getevent and sendevent class, now while playing the recorded events. Now while playing

Re: [android-developers] Limit EditText box size when user done typing

2010-12-03 Thread XC He
do you think about set more attribute at your AndroidManifest.xml Ex. activity name=xxxActivity android:windowSoftInputMode=adjustResize ... /activity 2010/12/3 dmodroid dmodr...@gmail.com: I need my EditText box to shrink to a certain size, with ellipses (...), if the message is too long,

Re: [android-developers] Re: Creating a PDF on Adroid?

2010-12-03 Thread XC He
m.. iText http://sourceforge.net/projects/itextpdfandroid Anyone try this? 2010/12/3 Robin Talwar r.o.b.i.n.abhis...@gmail.com: Just a curious beginner. Hey can i display the pdf file in my application? If so then how 2010/12/3 viktor victor.scherb...@gmail.com I think you can use iText

Re: [android-developers] Eclipse Reading Android Code as Java

2010-11-23 Thread XC He
you have to study this page first http://source.android.com/source/using-eclipse.html 2010/11/24 Chase chasie...@gmail.com: I just inherited a project at my workplace and I am having trouble having Eclipse act as an Adroid editor rather than a Java editor. Pretty much everything is under

Re: [android-developers] bring task to front

2010-10-29 Thread XC He
How do you start the intent ?? 2010/10/29 sleith raysle...@gmail.com: Hi, i know this question has been ask many times, but i still don't find a solution...  need helps :) I tried to handle about the hold screen button that makes screen off. Somehow the game is exit because of this. Then i

Re: [android-developers] How to the GSM signal strength

2010-08-26 Thread XC He
You can check package/apps/Settings code, RadioInfo.java int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm(); if (-1 == signalDbm) signalDbm = 0; int signalAsu = mPhoneStateReceiver.getSignalStrength(); if (-1 == signalAsu) signalAsu = 0; 2010/8/26 Mohammad Siddiqui

Re: [android-developers] Re: How to the GSM signal strength

2010-08-26 Thread XC He
Yes, it's a internal class. You cab reference this http://groups.google.com.tw/group/android-developers/browse_thread/thread/d3e9eee1bdd9d9fc/5b45fb90df1f7b4b 2010/8/26 Vinay S s.vinay@gmail.com: Hi XC He, Can you please suggest what should be imported to get mPhoneStateReceiver

Re: [android-developers] About InputMethodService.switchInputMethod

2010-07-31 Thread XC He
I use this API in my IME service. And I applied the solution from Issue 4604 (http://code.google.com/p/android/issues/detail?id=4604). It could solve this problem. 2010/7/31 Dianne Hackborn hack...@android.com: Is the other input method actually enabled by the user? Also you aren't clear where

Re: [android-developers] command to find os information / system information

2010-07-23 Thread XC He
Which version? OS version ? Kernel version ? SDK version ? By Java code ? By command ? Or you have to read android.os.Build first. 2010/7/23 Jake integr...@gmail.com: hi there, i have to store what version of android users are using, search all over internet, hard to find this

Re: [android-developers] command to find os information / system information

2010-07-23 Thread XC He
Ex. import android.os.Build; // Build.VERSION String codeName = Build.VERSION.CODENAME; String incremental = Build.VERSION.INCREMENTAL; String release = Build.VERSION.RELEASE; String sdk = Build.VERSION.SDK; int sdk_int = Build.VERSION.SDK_INT; 2010/7/23 XC He schosnab...@gmail.com: Which

Re: [android-developers] How to run a class in background

2010-04-23 Thread XC He
Service http://developer.android.com/reference/android/app/Service.html Write a service 2010/4/23 subrat kumar panda evergreen.sub...@gmail.com: Hello all, i am working in a Gps app. the Gps is working fine, but i don't know when i am doing other operations in device the Gps is keep

Re: [android-developers] Re: About calling feature in android

2010-02-02 Thread XC He
sorry about I misunderstand your request 2010/2/2 saru sarucs...@gmail.com: look there is already dialing software in market.So Please tell me if dialing feature(API) is unavailable to developer how people out there developed such dialing software in android. On Feb 2, 1:20 pm, XC He

Re: [android-developers] Re: About calling feature in android

2010-02-02 Thread XC He
you can describe more detail and in which level you want to intercept Using Intent may solve your problem 2010/2/2 XC He schosnab...@gmail.com: sorry about I misunderstand your request 2010/2/2 saru sarucs...@gmail.com: look there is already dialing software in market.So Please tell me

Re: [android-developers] About calling feature in android

2010-02-01 Thread XC He
you might reference this Why it is impossible to intercept incoming calls on Android (http://blog.wangling.me/2009/08/why-it-is-impossible-to-intercept-incoming-calls-on-android/ ) but I did not verify the correctness of the content. IMHO, you have to refer the call barring related feature.

Re: [android-developers] Re: What use for simple drawing on screen

2009-12-30 Thread XC He
You can reference the ApiDemos in the SDK TouchPaint Actually, you have to redraw it. But it may another solution for you question. 2009/12/30 hollowback jakub.holou...@gmail.com Nobody knows? Ok, so is it way to avoid screen redraw while calling invalidate? I know it is invalidate(Rect)

Re: [android-developers] Re: Need an invitation to google Wave?

2009-11-05 Thread XC He
is it wave sand box account ? if no, please !! anyone already get google wave account from this thread ? 2009/11/6 dj djinn...@gmail.com yes please! :) On Nov 1, 12:20 am, Auguste Lunang legraphi...@gmail.com wrote: Hi, i have some google wave. invits to share. tell me if u want ..

[android-developers] Re: uninstall an application

2009-10-20 Thread XC He
Try: Uri packageURI = Uri.parse(package:+packageName); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); startActivity(uninstallIntent); But not for system package nemate...@gmail.com Hi I want to uninstall my application programmatically..is it possible?

[android-developers] Re: uninstall an application

2009-10-20 Thread XC He
Anyone know how to trace or debug inputmethod service under Eclpse? I need step by step tracking. Thanks. Best Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: KLM file that works in DDMS?

2009-10-19 Thread XC He
Hi Mark, You can try this kml file. The name field is encoded with big5, you can ignore it. 2009/10/19 Mark Murphy mur...@murphysw.com Could anyone upload a small example file that will work? Every file I've tried fails. Is this function completely broken? All attempts result in no points

[android-developers] Re: Is there a way to auto-power on the phone?

2009-07-23 Thread XC He
May be we can try to say any sleep/deep sleep or hibernate modes for Android ? From quill's issue, the alarm should keep working after he power-off the phone. 2009/7/23 Dianne Hackborn hack...@android.com This isn't currently supported by Android; I don't know for sure, but I don't think it

[android-developers] Re: Refreshing an activity

2009-07-22 Thread XC He
resume()?? 2009/7/22 Shang Hao sahilz...@gmail.com What is the way to fresh an activity without calling finish- startActivity all over again?? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to remove left right blank area of Gallery widget?

2009-07-15 Thread XC He
extend the widget and overwrite/override 2009/7/15 Oceanedge newsforhar...@gmail.com I want to use android.widget.Gallery as an horizontal image scroll view. But the default behavior of Gallery widget display blank area in left right side even if the width sum of items in it exceed its

[android-developers] Re: Can't install usb driver because Windows do not pop New hardware wizard

2009-07-08 Thread XC He
Did you enable the usb debug option on your HTC magic? I ever encountered same problem. After XP find a new hardware, you maybe encounter the failed installation problem. Then you have to re-install again. Good luck.. 2009/7/9 Victor Lin borns...@gmail.com Hi, I want to install usb driver

[android-developers] Re: Get all package names

2009-06-30 Thread XC He
under adb Use: # pm list packages -f pm list packages -f package:/system/app/Phone.apk=com.android.phone package:/system/app/Calculator.apk=com.android.calculator2 package:/system/app/Sync.apk=com.android.sync package:/system/app/FieldTest.apk=com.htc.fieldtest 2009/7/1 aby orz0...@gmail.com

[android-developers] Re: How to add Google Maps library, Maps to the Android 1.5 version device?

2009-06-01 Thread XC He
Try adb remount XC He 2009/6/2 Subba raochoud...@gmail.com I extracted com.google.android.map.jar and com.google.android.map.xml and Map.apk files from the another development device which has google maps in it. I started with following procedure.. 1. adb -d shell 2. # mount -o rw -t