[android-developers] edit text key events

2009-09-15 Thread schwiz
I am wondering if there is a way to override the onkeydown for an edittext view without making your own class? I just want my user to type something in and hit enter, i put up the flag so enter doesn't actually do anything now, but I want it to launch a function ive made. --~--~-~--~~

[android-developers] Re: How To Programmatically Reboot The Phone

2009-09-15 Thread !oEL
I see. Thank you Mark, I guess this shall be disposed from my feature basket, since I'm planning to write a public app. On 9月15日, 下午8时33分, Mark Murphy wrote: > !oEL wrote: > > Hi, > > > I'm trying to programmatically reboot the phone by pressing a button. > > > Currently I'm doing something lik

[android-developers] Re: Remote Process Question

2009-09-15 Thread for android
any-one? On Tue, Sep 15, 2009 at 3:14 PM, for android wrote: > <> > > This happens even before I unbind > > < could be>> > > Is there any work around for this? Are you sure that there is a limitation. > > > On Tue, Sep 15, 2009 at 3:08 PM, Cyril ROQUES > wrote: > >> May be you doesn’t clean ev

[android-developers] Release screen on wake lock problem

2009-09-15 Thread aby
Hi, When I use wake lock to screen at the specific time on the device as follows code. sScreenWakeLock = pm.newWakeLock( PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE, Log.LOGTAG); But ever

[android-developers] Re: Probing for an already set Alarm?

2009-09-15 Thread Beth
What does the background service do, exactly? Sorry, I don't really want to sort through the two versions of your code. What I did see in the alarm version leads me to suggest that you can set a repeating alarm in your Activity after collecting the initial data rather than set a new Alarm each t

[android-developers] My Tracks GPX?

2009-09-15 Thread BJP
I'm trying to use the DDMS view to simulate GPS updates on an instance of the Android Emulator, but the GPX I generated with My Tracks isn't being accepted for an unknown reason. I don't get any errors when I try to load the GPX file (using the Load GPX... button in the Emulator Control), but it

[android-developers] Re: Textview Autoscroll?

2009-09-15 Thread Johnnyr
Nevermind! I figured out what was causing my crash. I forgot to declare the scrollview: scrollview=(ScrollView)findViewById(R.id.scrollview); it would be nice if I knew how to use the debugger =( On Sep 15, 5:34 pm, Johnnyr wrote: > Thank you for the reply. Unfortunatley, that code seems to th

[android-developers] How To Programmatically Turn On/Off WIFI?

2009-09-15 Thread !oEL
Hi, Second question of the day, how do I programmatically turn on/off WIFI? Currently I'm having something like this: _iWifi.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { WifiManager wm = (W

[android-developers] Re: latitude buddies content provider

2009-09-15 Thread Arno den Hond
Could you have any suggestions on how to get in touch with those people? On Sep 12, 7:44 pm, Dianne Hackborn wrote: > I don't know, it is owned by the Google maps people. > > On Sat, Sep 12, 2009 at 10:27 AM, Arno den Hond wrote: > > > > > > > So are there any plans on making this API public? >

[android-developers] Re: Ethernet / IP over USB connection?

2009-09-15 Thread AV
What kind of access do you have to the PC? Will you be able to install something on the PC? What kind of internet connectivity do you need and what applications need the connectivity? Are these applications that you have built or do you want the entire platform to continue working as if it was nor

[android-developers] Migration of iphone’s applica tion to Android

2009-09-15 Thread 100town
I am planning to do some exercise on Android 3D. To take a short cut to test opengl ES on Android, I am thinking about to migrate some famous iphone’s game to Android platform, for example: TouchFighter2 etc. But I am wondering by doing so I may violate apple’s copyright. I read about apple’s lic

Re: [Fwd: [Fwd: [Fwd: [android-developers] Re: apk installation on mobilefromLinux machine]]]

2009-09-15 Thread André Charles Legendre
Hi Dan For what I haved experimented with my Galaxy from Kubuntu 9.04 : I had to use the patched adb, dowloded from : http://floe.butterbrot.org/external/adb.gz the standard adb from android-1.5r3 did'nt detect the phone. I had to put the following line in /etc/udev/rules.d/51-android.rules: SUBS

[android-developers] Emulator: LogCat Errors for Donut 1.6 Release

2009-09-15 Thread kk
Hi All, The following errors occurred during startup of Android 1.6 SDK Release Emulator: What do the following errors mean? Can these errors be ignored? Emulator Details: Target: Google APIs (API Level 4) Skin: HVGA SDCARD: 64MB image size Errors: 09-16 13:16:00.072: ERROR/vold(550):

[android-developers] How can I extends InputMethodService and using its feature without setting system keyboard??

2009-09-15 Thread HandsomeboyIT
Hi all, I'm using SoftKeyboard to simulate some KeyEvents to application. Everything is done after I had set the system keyboard (LatinKeyboard) in Setting screen. But I don't want to do this Settings action. I want to run emulator with default setting. If I don't set the LatinKeyboard in Settings

[android-developers] Re: Why Update buffering is always 0% when mediaplayer play the rtsp ?

2009-09-15 Thread yj shi
"E/MediaPlayer( 1455): stop called in state 4".It means that it is stopped in the MEDIA_PLAYER_PREPARING In MediaPlayer.cpp ,LOGE("error (%d, %d)", ext1, ext2), its log is "E/MediaPlayer( 1455): error (-38, 0)". In the MediaPlayer.h,it is said that the different value of the ext1 means the differe

[android-developers] Will beginTransaction() decease file reading times?

2009-09-15 Thread Alex Tang
For SQLiteDatabase.beginTransaction(), it starts a new transaction. And SQliteDatabas.insert() delete() update(), does these api starts a new transaction too? That's to say. If I use db.beginTransaction(); try{ db.insert(..): db.delete(); db.update(); db.setTransactionsSuccessful(); }fin

[android-developers] Re: How can I extends InputMethodService and using its feature without setting system keyboard??

2009-09-15 Thread Dianne Hackborn
You can't, the purpose of InputMethodService is to write a global input method service. If you just want to put a keyboard in your app, you could try using the raw keyboard view classes. On Tue, Sep 15, 2009 at 9:35 PM, HandsomeboyIT wrote: > > Hi all, > I'm using SoftKeyboard to simulate some K

[android-developers] Re: Probing for an already set Alarm?

2009-09-15 Thread Dianne Hackborn
Um, 1.6 will do this, and is probably what I would say is the "right" way in that the implementation is very closely integrated into the system to monitor CPU usage, network usage, wakelock usage, screen usage, etc, etc. On Tue, Sep 15, 2009 at 5:02 AM, Walles wrote: > > Good point :-), here's t

[android-developers] Re: How are SMS and MMS save on android phone

2009-09-15 Thread Alex Tang
sms has its own table, separate with mms. On Sep 16, 9:23 am, hap 497 wrote: > Hi, > > Can you please tell me if SMS and MMS are saved in 1 sql tables on > android phone? > Or each saved in its own table? > > Thank you. --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: Remote Process Question

2009-09-15 Thread Dianne Hackborn
Well there is a limit of 16 active threads calling into a process at once. You might to look in the debugger at what your threads are doing. On Tue, Sep 15, 2009 at 8:22 PM, for android wrote: > any-one? > > > On Tue, Sep 15, 2009 at 3:14 PM, for android wrote: > >> <> >> >> This happens even b

[android-developers] Re: Global search always shows "More results... XXX (n)" for 3rd party application?

2009-09-15 Thread Dianne Hackborn
This is very intentional. It prevents applications from being able to spam the search results without the user's consent. If they want to see your app's results, they can click on it, and pick one of the items there. As they do so, your results will be promoted to the top-level list. On Tue, Se

[android-developers] Re: Last modification time for each contact record in People table

2009-09-15 Thread Alex Tang
In "people table" there is none column for last modify time. On Sep 15, 8:38 pm, Girish wrote: > Dear All, > > I would like to the get the last modification time for each Contact in > android.provider.Contacts.People table. I have the following queries, > > a) Is there any column to notify that

[android-developers] Re: Can I use android.provider.Telephony?

2009-09-15 Thread Pentiumao
Thank you Roman, I will find some other solution. On Sep 15, 11:58 pm, "Roman ( T-Mobile USA)" wrote: > Using code in the Android source directly instead of the SDK API's is > always a risk. > Your application might work for only a temporary time. In cases of > framework code changes the chances

[android-developers] Re: tabs iphone style

2009-09-15 Thread Desu Vinod Kumar
HI http://www.anddev.org/generalized_file_manager_2_-_gfm20-t397.html see this this may helpful to you... to make like iphone On Tue, Sep 15, 2009 at 8:54 PM, Mark Murphy wrote: > > > How can i make something like this: > > > > http://www.appsstore.nl/apps/fml/fmlscreen1.jpg > > > > So i m

[android-developers] Re: Global search always shows "More results... XXX (n)" for 3rd party application?

2009-09-15 Thread Andrew Zhang
Hi Dianne, Works as expected. Thanks for the explanation! On Wed, Sep 16, 2009 at 12:48 PM, Dianne Hackborn wrote: > This is very intentional. It prevents applications from being able to spam > the search results without the user's consent. If they want to see your > app's results, they can cli

[android-developers] Re: ADB over IP?

2009-09-15 Thread er...@motorola.com
This commit might be of use to you. http://android.git.kernel.org/?p=platform/system/core.git;a=commit;h=2f38b699713dc2587a771bd5d4c6a47329728f5e Don't be evil. -E On Sep 15, 6:43 pm, Raphael wrote: > adb currently only works over USB. > > R/ > > On Tue, Sep 15, 2009 at 3:07 PM, Bao wrote: >

[android-developers] Re: Donut WVGA supporting apps

2009-09-15 Thread dan raaka
So, does Donut has an updated APIdemos ? I would have been helpful is the SDK image had APIDemos in it .. Do I just need to take the cupcake ApiDemos and install it on Donut .. -Dan On Tue, Sep 15, 2009 at 7:02 PM, Dianne Hackborn wrote: > In Donut that platform support is there, but none of th

[android-developers] Re: Playing a video file from resource.

2009-09-15 Thread 蘿蔔文
Thx!! Your method REALLY work!! On 8月21日, 下午5時51分, Panut Sunyakorn wrote: > VideoView video = (VideoView) this.findViewById(R.id.VideoViewIntro); > > Uri uri = Uri.parse("android.resource:// com.android/" + R.raw.); > video.setVideoURI(uri); > video.setMediaController(new MediaController(this));

[android-developers] Re: Probing for an already set Alarm?

2009-09-15 Thread Walles
On 16 Sep, 05:26, Beth wrote: > What does the background service do, exactly?  Sorry, I don't really > want to sort through the two versions of your code. It has a thread that wakes up regularly to take a snapshot of /proc: http://bazaar.launchpad.net/~walles/drain-o-meter/trunk/annotate/head%3A

[android-developers] Re: Probing for an already set Alarm?

2009-09-15 Thread Walles
The race is on then, we'll see who's the first to market! Cheers :-) / J On 16 Sep, 06:44, Dianne Hackborn wrote: > Um, 1.6 will do this, and is probably what I would say is the "right" way in > that the implementation is very closely integrated into the system to > monitor CPU usage, network u

[android-developers] Emulator: 1.6 SDK release Troubleshooting Proxy

2009-09-15 Thread kk
Hi All, Trying to troubleshoot proxy, but command as indicated in SDK Emulator documentation results in invalid command prompt: Documented Command: emulator -verbose-proxy -avd Error indicated: unknown option: -verbose-proxy please use -help for a list of valid options In pre

[android-developers] how to avoid showing the temp files?

2009-09-15 Thread manoj
Hi every one, I am trying to show the .kar files and .mid files which are located in the sdcard. For that I have written the code like: class MyFileFilter implements FileFilter { public boolean accept(File pathname) { if (pathname.getName().endsWith(".mid")) //

[android-developers] Re: How are SMS and MMS save on android phone

2009-09-15 Thread hap 497
THank you. Sms has a column PERSON_ID which saves the person ID of the sender, but why there is such equivalent column in MMS table? /** * The person ID of the sender * Type: INTEGER (long) */ public static final String PERSON_ID = "person"; On Tue, S

[android-developers] 1.6 SDK Arrow keys (dpad/trackball) dir not changing with orientation?

2009-09-15 Thread Robert Green
Just started testing my games in 1.6 and the first thing I notice is that on the landscape ones, the dpad up/down/left/right orientation doesn't switch 90 degrees like it did on all emulators before. The device trackball/dpad will still change with orientation (right becomes up on landscape, etc.

[android-developers] Re: Donut WVGA supporting apps

2009-09-15 Thread Romain Guy
Just compile ApiDemos from the Donut SDK. On Tue, Sep 15, 2009 at 10:17 PM, dan raaka wrote: > So, does Donut has an updated APIdemos ? I would have been helpful is the > SDK image had APIDemos in it .. > Do I just need to take the cupcake ApiDemos and install it on Donut .. > > -Dan > > > On Tu

[android-developers] Re: Probing for an already set Alarm?

2009-09-15 Thread Beth
All you need to do is to set different request codes in your pending intent parameters to avoid this situation: "The setting of this new alarm, and the throwing out of the existing alarm is what I want to avoid." A correction to one line of code would let you use the alarm manager (sorry if my ea

[android-developers] Re: Emulator: LogCat Errors for Donut 1.6 Release

2009-09-15 Thread Romain Guy
You can ignore these. On Tue, Sep 15, 2009 at 9:30 PM, kk wrote: > > Hi All, > > The following errors occurred during startup of Android 1.6 SDK > Release Emulator: > > > What do the following errors mean? > > Can these errors be ignored? > > > Emulator Details: > > > Target: Google APIs (API Le

[android-developers] Re: Android 1.6 SDK is here!

2009-09-15 Thread Romain Guy
> Guys, is there any particular reason for you not to include sources in > 1.6 as well? Sources are available at source.android.com. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support.

[android-developers] Re: Deep sleep behaviour

2009-09-15 Thread Zhihong GUO
Hi Murphy, Thanks for the reply. Will the data connection over 3G/GPRS keep alive when the CPU sleep? Will the CPU be waked up when there is data transmition on the data connection? James 2009/9/16 Mark Murphy > > Yusuf Saib (T-Mobile USA) wrote: > > Activity.onDestroy() > > onDestroy() is c

[android-developers] Re: Probing for an already set Alarm?

2009-09-15 Thread Dianne Hackborn
Hey I've been working on the next thing for months now. As good as shipped! ;) On Tue, Sep 15, 2009 at 10:31 PM, Walles wrote: > > The race is on then, we'll see who's the first to market! Cheers :-) / > J > > On 16 Sep, 06:44, Dianne Hackborn wrote: > > Um, 1.6 will do this, and is probably

<    1   2   3