[android-developers] Receiving SMS Messages in 1.0?
Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can ExpandableListActivity be customized?
What's the default layout ExpandableListActivity (ELA) uses? And what's the id of the list that ELA uses? I've looked at the APIDemos, and the 3 examples just work with the bundled ExpandableListView and the bundled default layout. Any pointers on how to customize/override is welcome. -- take care, Muthu Ramadoss. http://mobeegal.in - mobile search. redefined. +91 98403 48914 --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Test Location Providers in 1.0
The ability to create and configure mock location providers that was added in Beta 0.9 doesn't seem available in 1.0. Has this functionality been moved / renamed or has it been dropped entirely for version 1? If the latter, how do we now mock the status and availability of Location Providers? Cheers Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] One G1 for each submitted app for ADC
Hello all developers, When ADC1 results have been announced a lot of people asked to have a Google server access. Now, I think it should be better to receive a G1 to test our application. Below my demand to Google, HTC and T-Mobile allowing to everyone, in all countries : http://groups.google.fr/group/android-discuss/browse_thread/thread/e3831f8a2899765e?hl=fr --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can ExpandableListActivity be customized?
Trying to set an empty view for the ExpandableListView with the following code: final TextView textView = new TextView(Results.this); textView.setText(No Results. Please do a Search to see Results.); textView.setWidth(200); textView.setHeight(200); // Tell the list view which view to display when the list is empty final ExpandableListView listView = getExpandableListView(); listView.setEmptyView(textView); Still showing a blank empty screen. How to do this? On Sep 24, 11:18 am, Muthu Ramadoss [EMAIL PROTECTED] wrote: What's the default layout ExpandableListActivity (ELA) uses? And what's the id of the list that ELA uses? I've looked at the APIDemos, and the 3 examples just work with the bundled ExpandableListView and the bundled default layout. Any pointers on how to customize/override is welcome. -- take care, Muthu Ramadoss. http://mobeegal.in- mobile search. redefined. +91 98403 48914 --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem when running SoundRecordingAPISample of Megha
can u show me the way to play the .amr format? i can't run it on Android. On Sep 23, 6:04 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: sorry,it works 2008/9/23 De San Nicolas Jean Philippe [EMAIL PROTECTED] another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to read with the mediaplayer the sound that we'we recorded? 2008/9/23 Megha Joshi [EMAIL PROTECTED] Yes...the sample is intended to be used for 0.9 sdk, it wont work correct for m5. 2008/9/22 De San Nicolas Jean Philippe [EMAIL PROTECTED] me again... I think Ive resolved the problem with sdcard but I have another problem... the error message in red ERROR/AudioHardware(518): Error 16 opening record channel ERROR/AudioFlinger(518): openRecord returned error 16 ERROR/AudioHardware(518): Attempt to close without open I run the sample with the m5 version of the emulator. Could it be the reason of the failure? regards 2008/9/22 jphdsn [EMAIL PROTECTED] Hello, I try the same sample and I have nearly the same result. have you installed an sdcard and try another time? Have you a positive result? I try to install an sdcard but I've always the same line In the logcat: sdcard access error I think I've an error in the path but don't arrive to resolve it. If you have the solution can you guide me. Thank's On Sep 17, 11:18 am, ZIN [EMAIL PROTECTED] wrote: I have downloaded this project, and try running it in Android Emulator. When i click on the StopRecording Button, an alert appears : process com.android.samples.audio has stopped unexpectedly . I wonder there is a problem in this project. Can someone help me to fix that? Thanks, --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: problem port from 0.9 to 1.0... constructor AssetManager() is not visible???
Why are you using that? You should use Context.createPackageContext() to access the assets of other .apks. On Sep 23, 10:46 pm, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi, In SDK 0.9 AssetManager assetManager = new AssetManager(); assetManager.addAssetPath(path); the constructor of this AssetManager(); is not visible in SDK 1.0... can anyone show me how to create AssetManager with the path I defined??? wesley. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: can't access XML resources from classes outside my main (launched) activity
You need to hand your Context (Activity is-a Context) to the other class, which is uses to access resources. On Sep 23, 6:35 pm, gymshoe [EMAIL PROTECTED] wrote: I am having trouble accessing my XML resources from outside my main activity. I suspect this is easy to do, but I am a novice to android/ java and this is driving me crazy. I want to declare a class so it is not nested, but rather public to all other classes in my program. However, when I create this class, I cannot access the XML resources, like I could in my main Activity. While getString(R.string.def_id) works fine in my main Activity, if I try this in my non-main class, Eclipse tells me getString is not defined for this class. I tried using getResources().getString(R.string.def_id) but it said getResources() cannot be resolved. I even created a dummy ContextWrapper so I could access resources that way: ContextWrapper context = new ContextWrapper(null); this.setId(context.getResources().getString(R.string.def_id), true); When I do this, the contextWrapper is created OK, but I get a null pointer exception thrown at the second line (this.setId(context...). I have looked for similar problems on the web and forums but to no avail. Somebody posted that they were unable to use their resources in the initialization block of their main Activity, and could only use them in (or after) their onCreate() method where they worked fine. I suspect this is part of the same problem, but there was no solution posted to that thread... Any help would be greatly appreciated. Full code below: This works: DEFAULTS.XML: ?xml version=1.0 encoding=UTF-8? resources string name=def_id007/string /resources RESOURCEQUESTION.JAVA: package com.northwestradiology.com; import android.app.ListActivity; import android.os.Bundle; import android.util.Log; public class ResourceQuestion extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.v(onCreate, entering on create); Person1 me = new Person1(); Log.v(onCreate, def_id = + getString(R.string.def_id)); } } PERSON1.JAVA package com.northwestradiology.com; public class Person1 { public String Id; public Person1() { super(); } } --- This doesn't work: DEFAULTS.XML: ?xml version=1.0 encoding=UTF-8? resources string name=def_id007/string /resources RESOURCEQUESTION.JAVA package com.northwestradiology.com; import android.app.ListActivity; import android.os.Bundle; import android.util.Log; public class ResourceQuestion extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.v(onCreate, entering on create); Person1 me = new Person1(); } } PERSON1.JAVA package com.northwestradiology.com; import android.content.ContextWrapper; import android.util.Log; public class Person1 { public String Id; public Person1() { super(); ContextWrapper context = new ContextWrapper(null); Log.v(person construct, after context wrapper...); this.Id = (context.getResources().getString(R.string.def_id)); Log.v(person construct, after getResources...); } } ERROR LOG: 09-24 01:28:56.985: VERBOSE/onCreate(2789): entering on create 09-24 01:28:56.985: VERBOSE/person construct(2789): after context wrapper... 09-24 01:28:56.985: DEBUG/AndroidRuntime(2789): Shutting down VM 09-24 01:28:56.997: WARN/dalvikvm(2789): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 09-24 01:28:56.997: ERROR/AndroidRuntime(2789): Uncaught handler: thread main exiting due to uncaught exception 09-24 01:28:57.007: ERROR/AndroidRuntime(2789): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.northwestradiology.com/ com.northwestradiology.com.ResourceQuestion}: java.lang.NullPointerException etc... Thanks, Jim --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: scrolling listview loses background color/drawable
The color you have (#000) is solid black. Use # for a completely transparent color. On Sep 23, 9:33 pm, Nickname [EMAIL PROTECTED] wrote: Thank you, butit does NOT fix the problem. Here is what i added to layout xml of the listview: ... android:background=@drawable/background ... android:cacheColorHint=#000 ... android:layout_width=fill_parent ... On Sep 23, 4:53 pm, Romain Guy [EMAIL PROTECTED] wrote: Set ListView's cache color hint to 0. On Sep 23, 2008 6:26 PM, Nickname [EMAIL PROTECTED] wrote: It happens to android emulator, on xp as i know. I depress mouse pointer to scroll a listview. While it scrolls, the background drawable disappers. When i release the mouse, the background still disappear till i move mouse to touch the screen. This is a harmless issue but makes me uneasy. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem when running SoundRecordingAPISample of Megha
I've not played the .amr from the SOUNDRECORDINGAPISAMPLE. I've converted an .mp3 in .amr with software and try to play it. And it woks. maybe the probleme comes from the recorded .amr 2008/9/24 ZIN [EMAIL PROTECTED] can u show me the way to play the .amr format? i can't run it on Android. On Sep 23, 6:04 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: sorry,it works 2008/9/23 De San Nicolas Jean Philippe [EMAIL PROTECTED] another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to read with the mediaplayer the sound that we'we recorded? 2008/9/23 Megha Joshi [EMAIL PROTECTED] Yes...the sample is intended to be used for 0.9 sdk, it wont work correct for m5. 2008/9/22 De San Nicolas Jean Philippe [EMAIL PROTECTED] me again... I think Ive resolved the problem with sdcard but I have another problem... the error message in red ERROR/AudioHardware(518): Error 16 opening record channel ERROR/AudioFlinger(518): openRecord returned error 16 ERROR/AudioHardware(518): Attempt to close without open I run the sample with the m5 version of the emulator. Could it be the reason of the failure? regards 2008/9/22 jphdsn [EMAIL PROTECTED] Hello, I try the same sample and I have nearly the same result. have you installed an sdcard and try another time? Have you a positive result? I try to install an sdcard but I've always the same line In the logcat: sdcard access error I think I've an error in the path but don't arrive to resolve it. If you have the solution can you guide me. Thank's On Sep 17, 11:18 am, ZIN [EMAIL PROTECTED] wrote: I have downloaded this project, and try running it in Android Emulator. When i click on the StopRecording Button, an alert appears : process com.android.samples.audio has stopped unexpectedly . I wonder there is a problem in this project. Can someone help me to fix that? Thanks, --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: scrolling listview loses background color/drawable
I'm having the same issue. A ListView is inside of a LinearLayout and the LinearLayout has a semi- transparent background. The background diappears while scrolling the ListView with the mouse. Adding android:cacheColorHint=# to the LinearLayout has no effect. On Sep 24, 11:02 am, hackbod [EMAIL PROTECTED] wrote: The color you have (#000) is solid black. Use # for a completely transparent color. On Sep 23, 9:33 pm, Nickname [EMAIL PROTECTED] wrote: Thank you, butit does NOT fix the problem. Here is what i added to layout xml of the listview: ... android:background=@drawable/background ... android:cacheColorHint=#000 ... android:layout_width=fill_parent ... On Sep 23, 4:53 pm, Romain Guy [EMAIL PROTECTED] wrote: Set ListView's cache color hint to 0. On Sep 23, 2008 6:26 PM, Nickname [EMAIL PROTECTED] wrote: It happens to android emulator, on xp as i know. I depress mouse pointer to scroll a listview. While it scrolls, the background drawable disappers. When i release the mouse, the background still disappear till i move mouse to touch the screen. This is a harmless issue but makes me uneasy. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can ExpandableListActivity be customized?
And you can ExpandableListView the same way as a List: ExpandableListView android:id=@+android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 / On Sep 24, 1:21 pm, Muthu Ramadoss [EMAIL PROTECTED] wrote: Ok, for showing an empty view.. a framelayout is required as shown by APIDemo: !-- The frame layout is here since we will be showing either the empty view or the list view. -- FrameLayout android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 !-- Here is the list. Since we are using a ListActivity, we have to call it @android:id/list so ListActivity will find it -- ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:drawSelectorOnTop=false/ !-- Here is the view to show if the list is emtpy -- TextView android:id=@+id/empty android:layout_width=fill_parent android:layout_height=fill_parent android:text=@string/list_8_no_photos/ /FrameLayout On Sep 24, 12:34 pm, Muthu Ramadoss [EMAIL PROTECTED] wrote: Trying to set an empty view for the ExpandableListView with the following code: final TextView textView = new TextView(Results.this); textView.setText(No Results. Please do a Search to see Results.); textView.setWidth(200); textView.setHeight(200); // Tell the list view which view to display when the list is empty final ExpandableListView listView = getExpandableListView(); listView.setEmptyView(textView); Still showing a blank empty screen. How to do this? On Sep 24, 11:18 am, Muthu Ramadoss [EMAIL PROTECTED] wrote: What's the default layout ExpandableListActivity (ELA) uses? And what's the id of the list that ELA uses? I've looked at the APIDemos, and the 3 examples just work with the bundled ExpandableListView and the bundled default layout. Any pointers on how to customize/override is welcome. -- take care, Muthu Ramadoss. http://mobeegal.in-mobilesearch. redefined. +91 98403 48914 --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] (documentation) Is there a typo in ViewTreeObserver.dispatchOnPreDraw() ?
From the dox: ...If a listener returns true, then the drawing pass is canceled and rescheduled It seems to be the opposite. I tried it and if my listener returns true, then the view hierarchy will draw just fine but when my listener returns false, then the hierarchy won't be drawn. Or am I not getting the point here? :) --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Receiving SMS Messages in 1.0?
In reply please also include sending SMS capability in 1.0 for background connection to the cloud reasons On Sep 24, 1:15 am, Reto Meier [EMAIL PROTECTED] wrote: Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: create a calendar in android
hi peterman, my self Alpesh Patel,now a days i m working on android. in which doing,fecility poviding in android mobile of google calendar. but i have problem that in android emulator 9.0 no calendar support is there. so i have a same problem like u. so now i have to build custom calendar in android. so,i think that u can help me better. so pls if you have solution pls pls give me solution. my id is: [EMAIL PROTECTED] [EMAIL PROTECTED] thnks in advance. On Sep 22, 4:11 pm, Peterman [EMAIL PROTECTED] wrote: Hi I would like know if we can create a custom calendar with android. The reason will be show month a month and can pick some days to view if a client has a appointment. thanks --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to create custom calendar in android
my self Alpesh Patel,now a days i m working on android. in which doing,fecility poviding in android mobile of google calendar. but i have problem that in android emulator 9.0 no calendar support is there. so now i have to build custom calendar in android. so pls if you have solution pls pls give me solution. my id is: [EMAIL PROTECTED] thnks in advance. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android 1.0 SDK Released
the 1.0 is Slower than 0.9.my god On Sep 24, 6:09 am, Megha Joshi [EMAIL PROTECTED] wrote: Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-... SDK Download: http://code.google.com/android/download.html Overview of Changes since 0.9 SDK: http://code.google.com/android/migrating/0.9-1.0/changes-overview.html Android Developer Guide: http://code.google.com/android/documentation.html Thanks for using the Android SDK and Happy coding! Cheers, The Android Team. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Emulator Skins for HTC Dream / T-Mobile G1
Hello Android fans and developers. I just finished building the first HTC Dream/T-Mobile G1 skins for the Android emulator and would like to share them with you. Right now I have done the black version of the phone in portrait as well as in landscape mode. They are tested to work with the latest Android SDK version 1.0r1 (they also work with the 0.9beta). You can get them here: http://www.android.encke.net/ (preview screenshots available) I hope you like them and can put them to good use. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to access the SMS content provider in SDK 1.0_r1
Hi,all The sms API in android.provider.Telephony.Sms is removed from the new SDK.So how an application access the inbox and outbox of the system.I notice that there is a system apk named Mms.apk,it store the inbox sms info,but how could access it by content provider or other ways?Thank you very much. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Receiving SMS Messages in 1.0?
please also include sending SMS capability in 1.0 From what I've seen it looks like sending SMS is still supported in 1.0, it's just receiving SMSs that's changed / gone. On Sep 24, 9:57 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In reply please also include sending SMS capability in 1.0 for background connection to the cloud reasons On Sep 24, 1:15 am, Reto Meier [EMAIL PROTECTED] wrote: Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator Skins for HTC Dream / T-Mobile G1
Good job :) On Sep 24, 9:41 am, Olaf Encke [EMAIL PROTECTED] wrote: Hello Android fans and developers. I just finished building the first HTC Dream/T-Mobile G1 skins for the Android emulator and would like to share them with you. Right now I have done the black version of the phone in portrait as well as in landscape mode. They are tested to work with the latest Android SDK version 1.0r1 (they also work with the 0.9beta). You can get them here:http://www.android.encke.net/(preview screenshots available) I hope you like them and can put them to good use. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Test Location Providers in 1.0
I was wondering too, I had to disable this function from my application... It seems we can only use DDMS or telnet to simulate location now. On 24 sep, 08:34, Reto Meier [EMAIL PROTECTED] wrote: The ability to create and configure mock location providers that was added in Beta 0.9 doesn't seem available in 1.0. Has this functionality been moved / renamed or has it been dropped entirely for version 1? If the latter, how do we now mock the status and availability of Location Providers? Cheers Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to add button to MediaController?
MediaController seems to work only with VideoView atm. On 24 Set, 02:14, stef [EMAIL PROTECTED] wrote: Hi, been trying to modify the MediaController widget to add a few custom buttons. I have tried to subclass it and add buttons to the linearlayout before te rewind and after tge fast forward with no success... is this even possible? I can always create my own MediaController class but that seems to be a waste... Thanks --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Where does the emulator look for the SD Card Image File ?
It works for me on 1.0. I think what you are perhaps seeing is that the DDMS has a bit of a syncing issue with the filesystem. If you close the /sdcard folder and reopen it, file will appear that were previously not visible. Please do not forget to post your questions to the mailing list, not me personally. Others might have more to say than me. Ludwig 2008/9/24 Sudha [EMAIL PROTECTED] Hi In 0.9 the above is working fine.But I cant see the images I pushed in teh pic folder. But I can see one red block. I tried the sam ewith the new sdk1.0. 1. I can take picture uisng the camera but no image found in the picture folder. 2. I cant do cd /sdcard/dcim/camera and see whether the image is there in teh picture folder. buut its working ifne in 0.9 3. I can move the image to the sdcard but cant see anything in the picture folder.Bit is there in the sdcard..but cant move to camera folder. Plz help --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: create a calendar in android
I am very new to android. I have a small idearather stupid.. I dont know whether it will work or not. Android works on unix..so cant we invoke the unix commands (shell commnads )through android and get the result ? like for creating the calender can we use the cal month year command in unix ? Plz correct me if I am wrong ? cant we use the kernal like this way ? is there any such chance ? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator Skins for HTC Dream / T-Mobile G1
nice work! thanks :) On 24 Set, 09:41, Olaf Encke [EMAIL PROTECTED] wrote: Hello Android fans and developers. I just finished building the first HTC Dream/T-Mobile G1 skins for the Android emulator and would like to share them with you. Right now I have done the black version of the phone in portrait as well as in landscape mode. They are tested to work with the latest Android SDK version 1.0r1 (they also work with the 0.9beta). You can get them here:http://www.android.encke.net/(preview screenshots available) I hope you like them and can put them to good use. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator Skins for HTC Dream / T-Mobile G1
Thank you. I just finished the white portrait version: http://www.android.encke.net/android-emulator-htc-dream-portrait-white.html Happy coding. On 24 Sep., 11:20, arnouf [EMAIL PROTECTED] wrote: Good job :) On Sep 24, 9:41 am, Olaf Encke [EMAIL PROTECTED] wrote: Hello Android fans and developers. I just finished building the first HTC Dream/T-Mobile G1 skins for the Android emulator and would like to share them with you. Right now I have done the black version of the phone in portrait as well as in landscape mode. They are tested to work with the latest Android SDK version 1.0r1 (they also work with the 0.9beta). You can get them here:http://www.android.encke.net/(preview screenshots available) I hope you like them and can put them to good use. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Where does the emulator look for the SD Card Image File ?
sorry Ludwing .. the issue for 1.0 remains same for me I tried it many times closing and re opening the emulator.. is the camera and teh pics in teh picture folder works the same way as in 0.9 ? When I opend the /sdcard/dcim/camera in 0.9 its a folder with a pid file inside But in 1.0 is a file. I tried to do the adb pull... I am in utter confusion --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] can we invoke the unix or shell commnads in our application
hi I have a stupid idea . is there any way to invoke the shell commnads in the apllication and get the result.. eg.. to get the calender there is no widget in android so can we use the cal month year command in shell to get teh calender ? Please put your responses --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Getting android multimodal - org.apache.commons.scxml
I am very much interested in integrating Android into a multimodal context. I am trying out several approaches to this, one of which is the deployment of org.apache.commons.scxml (a state machine implementation) on android. I have been keen on getting the stop watch example running, it's like the the hello world application for commons.scxml. ( http://commons.apache.org/scxml/usecases/scxml-stopwatch.html ) The easiest thing was to adapt UI Components and Callbacks to work the Android way. The hardest, and yet unsolved part is to deploy the commons-scxml.jar . It turned out, that it has several dependencies some of which are: commons-el , commons-lang, myfaces, junit, servlet-api, jsp-api, commons-digester, xalan, xml-apis Meanwhile I was turning to the source code of commons.scxml so that i could watch it's unsolved problemens (the classes that were not available) solved when adding those libs to the build path. At some point I had the project clean of errors. So I did a project build, frustratingly I did come to point were I didn't know any further the build resulted in dex printing tons of: warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.) and breaking up with: Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. I think this is due to xml-apis.jar; it includes the javax.xml package which isn't fully available in android core. Is there anything I can do, try or fix? I am feeling clueless at this point. Maybe I am trying something impossible. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Where does the emulator look for the SD Card Image File ?
in addition to the above mail I tried to pull out the default image coming the camera folder( apperas in the pictures in the emulator) and tried to push teh same back to /sdcar/dcim/camera. now also teh image appreas liek red block and blank screen when selected.. Nothing is happening with the 1.0 --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Replacing Dialer, IM, and SMS Apps
In the early days of Android it was suggested that 3rd party developers would be able to replace any of the 'native' Google applications -- including the Dialer, IM client, and SMS application. After having a look at the 1.0 SDK it seems this isn't possible for the first release. Is this the case? Can a Googler give us some feedback on exactly what's been restricted so we don't waste too much time looking for something that isn't there? :) It would also be good to know if you're planning on opening up access later. From what I can tell so far, the following is now restricted: - Receiving Intents for incoming SMS messages. - Access to the SMS, IM, mail, etc. Content Providers. - A telephony API to start, end, and manage calls. - An Instant Messaging (GTalkService) API. Specifically the ability to send / receive IM TEXT messages. There's more, but these are the main ones I can't find in 1.0 that were available in 0.9. Cheers Reto Meier Professional Android Application Development http://www.amazon.com/gp/product/0470344717?tag=interventione-20 --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] T-Mobile G1 skin now available for Android Emulator!
T-Mobile G1 skin now available for Android Emulator! http://teavuihuang.com/android To install, download and unzip HVGA-P-G1.zip to the Android skin directory, e.g. C:\android-sdk-windows-1.0_r1\tools\lib\images \skins. To run the Android emulator with this T-Mobile G1 skin, enter this on the command line: emulator -skin HVGA-P-G1. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: My Messages won't get displayed
deleting cookies helped me. http://groups.google.com/support/bin/answer.py?hl=deanswer=70499 On 24 Sep., 11:30, Jakob Sachse [EMAIL PROTECTED] wrote: I can't post to the group, i sent a mail to the group support regarding this, getting in reply: Direct inquires sent to [EMAIL PROTECTED] are not accepted. Please post to the groups directly for any questions/concerns. Thanks! so all i can do is to do some more testing. I hope not to spam the group, all I want is beeing able to take part in discussions. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android V1.0 : DDMS location controls, and telnet geo fix command not working.
I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: type 'help' for a list of commands OK geo fix 0 0 OK Then I openened the menu in the standard map application - My location - trying to determinate your location... then your location cannot be determined [...] I remembered in v0.9 there was an icon for the gps location provider in the status bar: it is now missing. Then I tested ddms controls via eclipse. I tried manual location, then on the emulator I clicked on my location menu item again: trying to determinate your location... then your location cannot be determined [...] I tried to load the sample2.kml in the kml tab of ddms controls, I clicked on the play button then retested on the map application: the same thing: trying to determinate your location... then your location cannot be determined [...] Plus, mock location providers have been removed, so I am totally desesperate... --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android V1.0 : DDMS location controls, and telnet geo fix command not working.
geo fix works but not with 0 0. DDMS still not working. On 24 sep, 12:09, Guillaume Perrot [EMAIL PROTECTED] wrote: I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: type 'help' for a list of commands OK geo fix 0 0 OK Then I openened the menu in the standard map application - My location - trying to determinate your location... then your location cannot be determined [...] I remembered in v0.9 there was an icon for the gps location provider in the status bar: it is now missing. Then I tested ddms controls via eclipse. I tried manual location, then on the emulator I clicked on my location menu item again: trying to determinate your location... then your location cannot be determined [...] I tried to load the sample2.kml in the kml tab of ddms controls, I clicked on the play button then retested on the map application: the same thing: trying to determinate your location... then your location cannot be determined [...] Plus, mock location providers have been removed, so I am totally desesperate... --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android V1.0 : DDMS location controls, and telnet geo fix command not working.
I sometimes see in my logcat: 09-24 10:15:39.239: ERROR/LocationManagerService(58): isProviderEnabled got exception: 09-24 10:15:39.239: ERROR/LocationManagerService(58): java.lang.IllegalArgumentException: provider=network 09-24 10:15:39.239: ERROR/LocationManagerService(58): at com.android.server.LocationManagerService._isProviderEnabled(LocationManagerService.java: 1210) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at com.android.server.LocationManagerService.isProviderEnabled(LocationManagerService.java: 1196) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at android.location.ILocationManager $Stub.onTransact(ILocationManager.java:211) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at android.os.Binder.execTransact(Binder.java:276) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at dalvik.system.NativeStart.run(Native Method) On 24 sep, 12:13, Guillaume Perrot [EMAIL PROTECTED] wrote: geo fix works but not with 0 0. DDMS still not working. On 24 sep, 12:09, Guillaume Perrot [EMAIL PROTECTED] wrote: I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: type 'help' for a list of commands OK geo fix 0 0 OK Then I openened the menu in the standard map application - My location - trying to determinate your location... then your location cannot be determined [...] I remembered in v0.9 there was an icon for the gps location provider in the status bar: it is now missing. Then I tested ddms controls via eclipse. I tried manual location, then on the emulator I clicked on my location menu item again: trying to determinate your location... then your location cannot be determined [...] I tried to load the sample2.kml in the kml tab of ddms controls, I clicked on the play button then retested on the map application: the same thing: trying to determinate your location... then your location cannot be determined [...] Plus, mock location providers have been removed, so I am totally desesperate... --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android V1.0 : DDMS location controls, and telnet geo fix command not working.
I made geo fix works with 0 0... I really don't get it... Am I missing something ? On 24 sep, 12:16, Guillaume Perrot [EMAIL PROTECTED] wrote: I sometimes see in my logcat: 09-24 10:15:39.239: ERROR/LocationManagerService(58): isProviderEnabled got exception: 09-24 10:15:39.239: ERROR/LocationManagerService(58): java.lang.IllegalArgumentException: provider=network 09-24 10:15:39.239: ERROR/LocationManagerService(58): at com.android.server.LocationManagerService._isProviderEnabled(LocationManagerService.java: 1210) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at com.android.server.LocationManagerService.isProviderEnabled(LocationManagerService.java: 1196) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at android.location.ILocationManager $Stub.onTransact(ILocationManager.java:211) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at android.os.Binder.execTransact(Binder.java:276) 09-24 10:15:39.239: ERROR/LocationManagerService(58): at dalvik.system.NativeStart.run(Native Method) On 24 sep, 12:13, Guillaume Perrot [EMAIL PROTECTED] wrote: geo fix works but not with 0 0. DDMS still not working. On 24 sep, 12:09, Guillaume Perrot [EMAIL PROTECTED] wrote: I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: type 'help' for a list of commands OK geo fix 0 0 OK Then I openened the menu in the standard map application - My location - trying to determinate your location... then your location cannot be determined [...] I remembered in v0.9 there was an icon for the gps location provider in the status bar: it is now missing. Then I tested ddms controls via eclipse. I tried manual location, then on the emulator I clicked on my location menu item again: trying to determinate your location... then your location cannot be determined [...] I tried to load the sample2.kml in the kml tab of ddms controls, I clicked on the play button then retested on the map application: the same thing: trying to determinate your location... then your location cannot be determined [...] Plus, mock location providers have been removed, so I am totally desesperate... --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Receiving SMS Messages in 1.0?
Hi, I do not know if it is the right way, but I have found a way to get the message. Here I include my code to get the SmsMessages. I hope it helps you public class ServerMessagesReceiver extends BroadcastReceiver { static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { Object[] pdusObj = (Object[]) bundle.get(pdus); SmsMessage[] messages = new SmsMessage[pdusObj.length]; for (int i = 0; ipdusObj.length; i++) { messages[i] = SmsMessage.createFromPdu ((byte[]) pdusObj[i]); } ... By the way, Does somebody know how to receive an SMS that has been sent using an application port using the methos.sendDataMessage? On 24 sep, 08:15, Reto Meier [EMAIL PROTECTED] wrote: Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: location is always latitude 0 longitude 0 altitude 10 in v0.9
I retested a en_GB locale on my Ubuntu 8.04 LTS with Android v1.0. OMFG DDMS controls works with that locale ! But how to procude KML files with direction but non mutlti coordinates tags using Google Earth ? I read and tested, multi-coordinates tag is not supported anymore... And google earth save directions with this tag. hve.dk, I haven't reported an issue yet, did you ? On 4 sep, 14:27, [EMAIL PROTECTED] wrote: Hi, I had the same problem, also switched locale and it works... Guess it has nothing do do with the locale itself, more with the way the OS is formatting date, time, ... So you have to make sure that not only the language is changed to english but also the formatting rules. I'm running MAC OS X and Eclipse 3.4,DDMSvia the Eclipse perspective. On Sep 2, 11:09 am, hve.dk [EMAIL PROTECTED] wrote: Guillaume, I got same the same problem (i.e.DDMSlocationcontrols doesn't reach the emulator - or is set to 0,0). Do you file a bug report at:http://code.google.com/p/android/issues/list (?) - If you don't I'll do it ;-) On 26 Aug., 15:44, Guillaume Perrot [EMAIL PROTECTED] wrote: In the standard maps application, my position is always at latitude 0 and longitude 0, altitude 10. Locationcontrols inDDMSin Eclipse seems to do nothing, I tried to set manuallocation, using a GPX or a KML, i always get a 0,0 location... The only provider available is gps when I tried programmatically. Plus, the documentation tells us about about the geo command but I didn't find it in my tools directory nor in adb shell internal command --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Unable to create an URI for a local sound
I'm repling you directly here it could be useful for other ppl too... or someone could help us too... As far as I have understood atm there's no way to get android.resource:// to work property, I tested it using an inside browser in my app and it always bring me to a 404 error. Btw using the internal web browser I managed to reach at least files under assets directory using file:///android_asset/namefile.ext It works fine in loadUrl, eg. I tried to place there a .mp4 file and it returns a white screen (instead of the 404 error) so I think it is able to reach that file. I'm testing this with VideoView (because I'm managing to play a local video instead of a local sound) but it doesn't work :( It seems that both file:/// and android.resource aren't working fine with VideoView and Mplayer both atm. On 23 Set, 10:44, Matteo Crippa [EMAIL PROTECTED] wrote: I'm an Android novice, but what do you think about this solution? MediaPlayer mNotify; mNotify = MediaPlayer.create(this, R.raw.beep); mNotify.start(); It should play your audio file without problems On 23 Set, 04:13, CG [EMAIL PROTECTED] wrote: Hey, I try to play a local sound in a notification. The issue I meet is the folowing : I am unable to load the file. My code is : Uri uri = Uri.parse(android.resource://com.xirgonium.android/raw/ beep); mNotify.sound = uri; The package name is the one described in my manifest. I get the error : 09-23 01:55:12.692: WARN/NotificationService(47): error loading sound for android.resource://com.xirgonium.android/raw/beep 09-23 01:55:12.692: WARN/NotificationService(47): java.io.IOException: Prepare failed.: status=0xFFFC 09-23 01:55:12.692: WARN/NotificationService(47): at android.media.MediaPlayer.prepare(Native Method) 09-23 01:55:12.692: WARN/NotificationService(47): at android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:76) Now if I try (as defined here :http://code.google.com/android/reference/android/content/ContentResol... Uri uri = Uri.parse(android.resource:// + PACKAGE_NAME + / + R.raw.beep); I get the error : 09-23 02:05:05.690: WARN/NotificationService(47): error loading sound for android.resource://com.xirgonium.android/2131034112 09-23 02:05:05.690: WARN/NotificationService(47): java.io.IOException: Prepare failed.: status=0xFFFC 09-23 02:05:05.690: WARN/NotificationService(47): at android.media.MediaPlayer.prepare(Native Method) 09-23 02:05:05.690: WARN/NotificationService(47): at android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:76) I am pretty sure the package name is correct because I have the folowing apk in my emulator : -rw-r--r-- system system 263463 2008-09-23 02:04 com.xirgonium.android.apk I just try to load a .wav file. Can anyone help me on this point (code snippet is sufficient :-)) Or how can I be sure the file is in my apk ? Thanks for your help ! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator Skins for HTC Dream / T-Mobile G1
And last not least, the white Dream in landscape mode is ready, too. http://www.android.encke.net On 24 Sep., 11:34, Olaf Encke [EMAIL PROTECTED] wrote: Thank you. I just finished the white portrait version:http://www.android.encke.net/android-emulator-htc-dream-portrait-whit... Happy coding. On 24 Sep., 11:20, arnouf [EMAIL PROTECTED] wrote: Good job :) On Sep 24, 9:41 am, Olaf Encke [EMAIL PROTECTED] wrote: Hello Android fans and developers. I just finished building the first HTC Dream/T-Mobile G1 skins for the Android emulator and would like to share them with you. Right now I have done the black version of the phone in portrait as well as in landscape mode. They are tested to work with the latest Android SDK version 1.0r1 (they also work with the 0.9beta). You can get them here:http://www.android.encke.net/(preview screenshots available) I hope you like them and can put them to good use. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BufferedReader.readLine() undocumentedly discards #! prefix
Nickname wrote: I just found that BufferedReader.readLine() undocumentedly and silently discards those input lines that starts with #! substring. I checked with java.sun.com documentation and found nothing about #! prefix at all. Is it a bug in Android implementation of BufferedReader class?? That feels like a bug. You probably should just post it on the issue tracker, with sample code and file -- the Android team will reply on the issue tracker if, indeed, this is (somehow) expected behavior. http://code.google.com/p/android/issues/list -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Bitmap issue ...
There is no way to write to a bitmap in its native format in 1.0, but you can read the values by calling copyPixelsToBuffer(). This fills out the buffer with whatever the native config is (alpha_8, 565, , ). If you could extend the api post 1.0, what functionality would you like to see? mike On Sep 23, 2008, at 2:53 PM, Kurt Jacobs wrote: Mike, Thanks for the explanation. Is there a way (method that I could call) that I can convert the raw bitmap to the multiplied version because doing the setPixel? Thanks, Kurt On Tue, Sep 23, 2008 at 11:34 AM, Mike Reed [EMAIL PROTECTED] wrote: The confusion (and I will try to update the dox to make this clearer) is that the color int is in unpremultipled form, but the internal format for Bitmap pixels is premultiplied. premultiplied means that the r,g,b components have already been multiplied by their respective alpha value. Thus 50% transparent Red would be stored as 0x8080 unpremultipled means that the r,g,b components are stored in their raw form, independent of the alpha value. Thus 50% transparent Red would be stored as 0x80FF Thus when you specify 0x08040201 in unpremultiplied form (as you should for the input to setPixels), that color is internally converted to its premultiplied equivalent, which in this case happens to be 0x0800. When you call getPixels(), the values are converted back to unpremultiplied form automatically, but in this case there is no change. mike On Sep 23, 2008, at 10:40 AM, JakeMaui wrote: I have a bitmap issue. I created a simple PNG that was 1 pixel high, 16 wide pure white. I loaded the bitmap, extracted the pixels, changed the first one and then created a bitmap from the altered data. The issue is that I thought that until I save it, I would have a raw bitmap will all the bits set as I had set them. I found that the bits changed. Does anybody know what I need to do to preserve the bitmap with the bits that I set into it? sample code ... int picw= bitmap.getWidth(); int pich=bitmap.getHeight(); int[] pix = new int[picw*pich]; bitmap.getPixels(pix, 0, picw, 0, 0, picw, pich); // It's pure white at this point. // I set the first byte to this but when I pull it out of the newly constructed // bitmap, it's 0x800 pix[0]=0x08040201; createdBitmap = Bitmap.createBitmap(picw, pich, Bitmap.Config.ARGB_); createdBitmap.setPixels(pix, 0, picw, 0, 0, picw, pich); // get pixels of newly created bitmap int picw=embeddedBitmap.getWidth(); int pich=embeddedBitmap.getHeight(); int[] pix = new int[picw*pich]; createdBitmap.getPixels(pix, 0, picw, 0, 0, picw, pich); Results 1000 0100 0010 0001 before 1000 000 --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Receiving SMS Messages in 1.0?
Hello, I've tried your code but it failed! my application failed. Have you tried and succeed? 2008/9/24 Cristina [EMAIL PROTECTED] Hi, I do not know if it is the right way, but I have found a way to get the message. Here I include my code to get the SmsMessages. I hope it helps you public class ServerMessagesReceiver extends BroadcastReceiver { static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { Object[] pdusObj = (Object[]) bundle.get(pdus); SmsMessage[] messages = new SmsMessage[pdusObj.length]; for (int i = 0; ipdusObj.length; i++) { messages[i] = SmsMessage.createFromPdu ((byte[]) pdusObj[i]); } ... By the way, Does somebody know how to receive an SMS that has been sent using an application port using the methos.sendDataMessage? On 24 sep, 08:15, Reto Meier [EMAIL PROTECTED] wrote: Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting android multimodal - org.apache.commons.scxml
Janosch wrote: I think this is due to xml-apis.jar; it includes the javax.xml package which isn't fully available in android core. Is there anything I can do, try or fix? I am feeling clueless at this point. Maybe I am trying something impossible. The good news is that the package you are trying to use (commons.scxml) is open source. First, just try downloading the commons.scxml source code and building it on your machine with your own Java compiler, then use the JAR file you just compiled in your Android app instead of any binary distribution from the commons.scxml project. I ran into problems with Beanshell (http://beanshell.org) which this technique solved. This assumes, though, that you're using a 1.5 or greater Java compiler -- I have the sneaking suspicion this error comes from older compiled JARs (e.g., 1.4.x). If that does not clear up your problem, you can try merging the commons.scxml source into your own project's source tree, and try building it as a whole, though I am not certain that will improve matters any. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: .android could not be written 2 home
Yes, I encountered this problem with v1.0, I resolved it like this : * Close Eclipse * Save your files under .android if you want (Optional) * Remove totally .android (rm -Rf) * Relaunch eclipse - the error message should not appear and android launching will work from eclipse * Restore your saved files into .android (optional) On Sep 24, 2:04 pm, Bernado Blanco [EMAIL PROTECTED] wrote: same prob here :( ... solutions? On 24 Sep., 03:47, '2+ [EMAIL PROTECTED] wrote: installed android-sdk-linux_x86-1.0_r1 but resulted into ~$ emulatorCannotcreatedatadirectory: /home/sarigama/.android/SDK-1.0 Please specify a writabledirectorywith -datadir. hmmm ... but it's my home dir why would android do this to me? on another machine with the previous version of sdk didn't make this happen even though what i did for installation are the same tia! -- '2+ = podcasting:http://www002.upp.so-net.ne.jp/buyobuyo/micro/rss.xml --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: .android could not be written 2 home
Guillaume Perrot wrote: Yes, I encountered this problem with v1.0, I resolved it like this : * Close Eclipse * Save your files under .android if you want (Optional) * Remove totally .android (rm -Rf) * Relaunch eclipse - the error message should not appear and android launching will work from eclipse * Restore your saved files into .android (optional) Even that (minus the Eclipse parts) wasn't sufficient for me on Linux. I wound up having to make both the .android tree and my SDK tree (under /opt) have 777 permissions before the emulator would launch. Now, 777 might have been overkill, but I was getting frustrated and didn't feel like messing around any further. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Receiving SMS Messages in 1.0?
hello, it works,sorry 2008/9/24 De San Nicolas Jean Philippe [EMAIL PROTECTED] Hello, I've tried your code but it failed! my application failed. Have you tried and succeed? 2008/9/24 Cristina [EMAIL PROTECTED] Hi, I do not know if it is the right way, but I have found a way to get the message. Here I include my code to get the SmsMessages. I hope it helps you public class ServerMessagesReceiver extends BroadcastReceiver { static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { Object[] pdusObj = (Object[]) bundle.get(pdus); SmsMessage[] messages = new SmsMessage[pdusObj.length]; for (int i = 0; ipdusObj.length; i++) { messages[i] = SmsMessage.createFromPdu ((byte[]) pdusObj[i]); } ... By the way, Does somebody know how to receive an SMS that has been sent using an application port using the methos.sendDataMessage? On 24 sep, 08:15, Reto Meier [EMAIL PROTECTED] wrote: Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Receiving SMS Messages in 1.0?
I have just done a text to send a messege to a port using this SmsManager smsManager = SmsManager.getDefault(); short port = 16001; smsManager.sendDataMessage(5556,5554, port, Hola.getBytes(), null, null); I use two emulators, one is launched at 5554 and the other at 5556 and I try to send the binary sms from 5554 to 5556. In the 5556 phone I have launch an application with a BroadcastReceiver in order to receive SMS Messages (but I do not know how to specify the port) The application does not failed. But the 5556 phone does not receive anything. Instead, in the console I receive the following messege every time I do a try [2008-09-24 14:05:06 - ddms]ADB rejected shell command (ls -l /): Strange but it seems that the adb is receiving the request... Does anybody has an example on how to send/receive binary SMS to an application port using sendDataMessage? On 24 sep, 14:20, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: Hello, I've tried your code but it failed! my application failed. Have you tried and succeed? 2008/9/24 Cristina [EMAIL PROTECTED] Hi, I do not know if it is the right way, but I have found a way to get the message. Here I include my code to get the SmsMessages. I hope it helps you public class ServerMessagesReceiver extends BroadcastReceiver { static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { Object[] pdusObj = (Object[]) bundle.get(pdus); SmsMessage[] messages = new SmsMessage[pdusObj.length]; for (int i = 0; ipdusObj.length; i++) { messages[i] = SmsMessage.createFromPdu ((byte[]) pdusObj[i]); } ... By the way, Does somebody know how to receive an SMS that has been sent using an application port using the methos.sendDataMessage? On 24 sep, 08:15, Reto Meier [EMAIL PROTECTED] wrote: Is it still possible to listen for incoming SMS messages in the latest 1.0 SDK release? The SMS_RECEIVED_ACTION string used to listen for incoming SMS messages seems to have gone missing. It used to be available from the android.provider.Telephony.Sms package, which also seems to have disappeared, so getMessagesFromIntent has gone too. Previously, you could create a Broadcast Receiver to listen for SMS messages using this code: String incoming_SMS = android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; public void onReceive(Context _context, Intent _intent) { if (_intent.getAction().equals(incoming_SMS)) { SmsManager sms = SmsManager.getDefault(); SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(_intent); } Is there still a way to do this? Thanks Reto- Ocultar texto de la cita - - Mostrar texto de la cita - --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Does getLocationFromName work in 0.9?
Is it true that this has not been fixed for 1.0? On Sep 6, 10:49 pm, Megha Joshi [EMAIL PROTECTED] wrote: You are right, getFromLocationName() with bounding box returns a empty list ...it is a bug...and will be fixed in the next release. 2008/9/6 [EMAIL PROTECTED] [EMAIL PROTECTED] Sorry to bump, but does this work for anyone? On Sep 3, 10:59 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anyone know if getLocationFromName (with a bounding box) works in 0.9? I can use the simpler version just fine: public ListAddressgetFromLocationName(String locationName, int maxResults) When I use the version that accepts a bounding box, I always get a null result: public ListAddressgetFromLocationName(String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) Has anyone successfully used it? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with Android SDK 1.0 when playing media
Oh, really ?? I think it's a big error in Android 1.0. :( On Sep 24, 4:55 pm, ZIN [EMAIL PROTECTED] wrote: I copy a file with wma format to sdcard and try opening this media file with Android Music App. But it said that The player can't support this format. (I have already openned this format in SDK 9.0 beta and got success.) What's the problem with the newest SDK? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem when running SoundRecordingAPISample of Megha
Does anyone record the different format (not .amr) ?? On Sep 24, 3:10 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: I've not played the .amr from the SOUNDRECORDINGAPISAMPLE. I've converted an .mp3 in .amr with software and try to play it. And it woks. maybe the probleme comes from the recorded .amr 2008/9/24 ZIN [EMAIL PROTECTED] can u show me the way to play the .amr format? i can't run it on Android. On Sep 23, 6:04 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: sorry,it works 2008/9/23 De San Nicolas Jean Philippe [EMAIL PROTECTED] another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to read with the mediaplayer the sound that we'we recorded? 2008/9/23 Megha Joshi [EMAIL PROTECTED] Yes...the sample is intended to be used for 0.9 sdk, it wont work correct for m5. 2008/9/22 De San Nicolas Jean Philippe [EMAIL PROTECTED] me again... I think Ive resolved the problem with sdcard but I have another problem... the error message in red ERROR/AudioHardware(518): Error 16 opening record channel ERROR/AudioFlinger(518): openRecord returned error 16 ERROR/AudioHardware(518): Attempt to close without open I run the sample with the m5 version of the emulator. Could it be the reason of the failure? regards 2008/9/22 jphdsn [EMAIL PROTECTED] Hello, I try the same sample and I have nearly the same result. have you installed an sdcard and try another time? Have you a positive result? I try to install an sdcard but I've always the same line In the logcat: sdcard access error I think I've an error in the path but don't arrive to resolve it. If you have the solution can you guide me. Thank's On Sep 17, 11:18 am, ZIN [EMAIL PROTECTED] wrote: I have downloaded this project, and try running it in Android Emulator. When i click on the StopRecording Button, an alert appears : process com.android.samples.audio has stopped unexpectedly . I wonder there is a problem in this project. Can someone help me to fix that? Thanks, --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting android multimodal - org.apache.commons.scxml
Mark Murphy wrote: If that does not clear up your problem, you can try merging the commons.scxml source into your own project's source tree well, basicly thats what i have done so far Janosch wrote: Meanwhile I was turning to the source code of commons.scxml so that i could watch it's unsolved problemens though, i will try to build the jar as you recommended. Even if the problem, as far as i see it comes mainly from the javax.xml package which seems to collide with the Android SDK in some way. On 24 Sep., 14:21, Mark Murphy [EMAIL PROTECTED] wrote: Janosch wrote: I think this is due to xml-apis.jar; it includes the javax.xml package which isn't fully available in android core. Is there anything I can do, try or fix? I am feeling clueless at this point. Maybe I am trying something impossible. The good news is that the package you are trying to use (commons.scxml) is open source. First, just try downloading the commons.scxml source code and building it on your machine with your own Java compiler, then use the JAR file you just compiled in your Android app instead of any binary distribution from the commons.scxml project. I ran into problems with Beanshell (http://beanshell.org) which this technique solved. This assumes, though, that you're using a 1.5 or greater Java compiler -- I have the sneaking suspicion this error comes from older compiled JARs (e.g., 1.4.x). If that does not clear up your problem, you can try merging the commons.scxml source into your own project's source tree, and try building it as a whole, though I am not certain that will improve matters any. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use SmsManager.sendDataMessage() to send the message
I have just done a test to send a binary messege to a port using this code in 1.0 SmsManager smsManager = SmsManager.getDefault(); short port = 16001; smsManager.sendDataMessage(5556,5554, port, Hola.getBytes(), null, null); I use two emulators, one is launched at 5554 and the other at 5556 and I try to send the binary sms from 5554 to 5556. In the 5556 phone I have launch an application with a BroadcastReceiver in order to receive SMS Messages (but I do not know how to specify the port) The application does not failed. But the 5556 phone does not receive anything. Instead, in the console I receive the following messege every time I do a try [2008-09-24 14:05:06 - ddms]ADB rejected shell command (ls -l /): Strange but it seems that the adb is receiving the request... Does anybody has an example on how to send/receive binary SMS to an application port using sendDataMessage? anywhere, were you able to do it? On 18 sep, 11:11, anywhere [EMAIL PROTECTED] wrote: hi Justin Ithink i have found the answer to the question 2. i think BroadcastReceiver#getResultCode() can get the sms send result. Please help to anwer the following question 1. Thanks (1) Whether Android support sending a text message with a port? If not, whether will be supported in future release? I find SmsManager#sendDataMessage can be used to send a binary message with a port. But not found method for text message with port. Thanks BR On Sep 18, 4:35 pm, anywhere [EMAIL PROTECTED] wrote: hi Justin Thans for your assistance. I still have other two issues to bother you. (1) Whether Android support sending a text message with a port? If not, whether will be supported in future release? I findSmsManager#sendDataMessage can be used to send a binary message with a port. But not found method for text message with port. (2) I noticed when sending a sms message, a result code can be got. So How can i get the result code? I didn't find the method. Thanks br On Sep 18, 6:53 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: Well, sorry this has taken so long to respond to! In the process of trying to write a demonstration I discovered a bug. There is a bug in the emulator code that causesSmsManager.sendDataMessage() to fail due to an infinite loop. A bug has been filed and this should be fixed in a future release of the SDK. At that time, please bring this issue up again to remind me to write a sample. Cheers, Justin Android Team @ Google On Sep 10, 2:28 am, anywhere [EMAIL PROTECTED] wrote: hi Justin Thanks for your help. But i am still confused about how to set the port, as i did not find any method to set a port for listen coming sms binary message in the document. if i write a appliction to receive the binary sms message how should i do? Thanks On Sep 10, 8:18 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: Data messages sent over SMS are limited in length (133 bytes actually), so this is probably the crash that you are running into. The port number is the port on the receiving device that the receiving service is listening on. Presumably your service is bound to this port and waiting for messages. Using SMS data messages might not be really what you want to do because of their small size. This is not really a feasible replacement for GTalk's data messaging functionality. Cheers, Justin Android Team @ Google On Sep 4, 6:08 pm, plusminus [EMAIL PROTECTED] wrote: *bump* I'd like to know that too. How to receive DataMessages then? Btw: your bug may be reated to this one:http://code.google.com/p/android/issues/detail?id=856 Best Regards, plusminus #http://www.anddev.org-WorldslargestAndroidDevelopmentCommunity On 26 Aug., 05:13, anywhere [EMAIL PROTECTED] wrote: hi all I am now trying to write some application about sms on 0.9 beta SDK. The method sendTextMessage ofSmsManagerclass performed well. But when usingsendDataMessageto send message SDK will crash. Would you please explain what's means of destinationPort parameter and how to set it. Thanks- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Ocultar texto de la cita - - Mostrar texto de la cita - --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem when running SoundRecordingAPISample of Megha
hey, I've just tried the sample SOUNDRECORDINGAPISAMPLE, and an error occured: 09-24 15:42:47.059: WARN/ServiceManager(24): Permission failure: android.permission.RECORD_AUDIO from uid=10019 pid=5373 09-24 15:42:47.059: ERROR/AudioFlinger(24): Request requires android.permission.RECORD_AUDIO I've put a line with a permission in the manifest but it doesn't make anything. Does anyone know permission RECORD_AUDIO? 2008/9/24 Baonq86 [EMAIL PROTECTED] Does anyone record the different format (not .amr) ?? On Sep 24, 3:10 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: I've not played the .amr from the SOUNDRECORDINGAPISAMPLE. I've converted an .mp3 in .amr with software and try to play it. And it woks. maybe the probleme comes from the recorded .amr 2008/9/24 ZIN [EMAIL PROTECTED] can u show me the way to play the .amr format? i can't run it on Android. On Sep 23, 6:04 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: sorry,it works 2008/9/23 De San Nicolas Jean Philippe [EMAIL PROTECTED] another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to read with the mediaplayer the sound that we'we recorded? 2008/9/23 Megha Joshi [EMAIL PROTECTED] Yes...the sample is intended to be used for 0.9 sdk, it wont work correct for m5. 2008/9/22 De San Nicolas Jean Philippe [EMAIL PROTECTED] me again... I think Ive resolved the problem with sdcard but I have another problem... the error message in red ERROR/AudioHardware(518): Error 16 opening record channel ERROR/AudioFlinger(518): openRecord returned error 16 ERROR/AudioHardware(518): Attempt to close without open I run the sample with the m5 version of the emulator. Could it be the reason of the failure? regards 2008/9/22 jphdsn [EMAIL PROTECTED] Hello, I try the same sample and I have nearly the same result. have you installed an sdcard and try another time? Have you a positive result? I try to install an sdcard but I've always the same line In the logcat: sdcard access error I think I've an error in the path but don't arrive to resolve it. If you have the solution can you guide me. Thank's On Sep 17, 11:18 am, ZIN [EMAIL PROTECTED] wrote: I have downloaded this project, and try running it in Android Emulator. When i click on the StopRecording Button, an alert appears : process com.android.samples.audio has stopped unexpectedly . I wonder there is a problem in this project. Can someone help me to fix that? Thanks, --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: v0.9, TabActivity, communicate between tabs with intents.
But if my activity in the tab is at the top of the history stack (jump from tab one to itself, yes it's useless, it's just a test), even if its launching mode is singleTop, a new activity is launched full screen. On 22 sep, 10:52, hackbod [EMAIL PROTECTED] wrote: That is behaving as expected -- startActivity() launches a new top- level activity. You need to explicitly add tabs just like you put your first in the tab host. On Sep 22, 1:09 am, Guillaume Perrot [EMAIL PROTECTED] wrote: Ok, here is a sample project:http://tinyurl.com/test-tabs Two tabs, each tab is an activity. There is one menu item in each tab that allow to jump to the other via an intent. The problem is, instead of jumping into the expected tab, a new activity is launched full screen. I tried different combinations of intent flags and manifest flags but in all cases I tested, the activity is launched full-screen instead of reusing the one in tabs... Hopefully I have a workaround (which is quite a hack) to implement this jump feature (by sending a custom intent to the main activity, which call setCurrentTab) but I would like to know if what I am trying to with tabs is possible an how... On 20 sep, 14:01, Mark Murphy [EMAIL PROTECTED] wrote: I am still looking for the answer ;) Personally, I haven't used the particular part of Android you are inquiring about. Generally, providing source code demonstrating your problem tends to yield more responses on lists like this. Can you give us a sample project that shows where things are going wrong for you? -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting android multimodal - org.apache.commons.scxml
Jakob Sachse wrote: Mark Murphy wrote: If that does not clear up your problem, you can try merging the commons.scxml source into your own project's source tree well, basicly thats what i have done so far Oh. Sorry, missed that. though, i will try to build the jar as you recommended. Even if the problem, as far as i see it comes mainly from the javax.xml package which seems to collide with the Android SDK in some way. Do you have all the source code to all the commons-scxml dependencies? If not -- meaning you have commons-scxml source but are still using third-party JARs -- start trying to introduce those, either fully into your project, or simply recompiling them using your own Java compiler. Or, get rid of dependencies that may collide with what is in the Android SDK/ For example, according to the dependency chart: http://commons.apache.org/scxml/dependencies.html commons-scxml depends upon Xalan, which depends upon xml-apis. If you are including xml-apis in your build, that might conflict with existing DOM and SAX implementations in Android. Try removing xml-apis from the build and see what happens. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ksoap2 terminology
If you are planning to consume .NET web services on the server side, here is an article about it. http://java.codeproject.com/KB/mobile/CallWebServiceFromkSOAP.aspx Regards, sacoskun On Sep 24, 5:42 am, amishera [EMAIL PROTECTED] wrote: Hi, I finally figured out how to set the values of the variables by looking at the codes and wsdls in the group for ksoap2. Probably I should write a wiki on this :) About the net connection problem I entered a hypothetical IP such as 10.0.2.2 and then I had to set the user permission on the manifest file. And I got it worked!!! I greatly appreciate your help. On Sep 21, 3:48 am, maennel [EMAIL PROTECTED] wrote: Hi amishera, Maybe, try to connect to your Web Service using the IP of your PC and not localhost nor 127.0.0.1. If that doesn't work, verify the namespace!!! I had the problem that I forgot to put a / (slash) in the end of the string. Without the slash there was no way to make it function. After putting it on, everything worked fine. I think you should be able to find the correct string of your Web Service's namespace in its source code. Best, maennel On Sep 21, 5:35 am, amishera [EMAIL PROTECTED] wrote: The problem is I could not find any server side example. So how am I supposed to know the meaning of say SOAP_ACTION? I published my web service using apache cxf, so I know what should I write in my client side code. But in this case I am completely in the dark and there is obviously no documentation here. On Sep 20, 6:14 pm, adityaw [EMAIL PROTECTED] wrote: Hello, I think you need to change localhost to the actual ip address of your machine. I read about this somewhere but I couldn't find it right now. But you should try it. On Sep 20, 11:17 am, amishera [EMAIL PROTECTED] wrote: The thing is that their website does not have much documentaion. I saw multiple posts related to ksoap2 here. So I was hoping there are members of this group who are quite familiar wit these concepts. I have done the following: SOAP_ACTION=helloWorld NAMESPACE=http://localhost:9000; METHOD_NAME=sayHi URL=http://localhost:9000/helloWorld; but I got Socekt timeout exception. then I tried to use URL=http://localhost:9000/helloWorld?wsdl; but the problem persists. So I request you for help. Thanks in advance. On Sep 19, 1:30 pm, Mark Murphy [EMAIL PROTECTED] wrote: I was trying to create a soap client on android using ksoap2. snip Please help here. Additional support for ksoap2 probably can be found at the ksoap2 site: http://ksoap2.sourceforge.net/ -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem when running SoundRecordingAPISample of Megha
I've resolved the problem but I've another one now. Does anyone have read an .amr issued from the audiorecorder? 2008/9/24 De San Nicolas Jean Philippe [EMAIL PROTECTED] hey, I've just tried the sample SOUNDRECORDINGAPISAMPLE, and an error occured: 09-24 15:42:47.059: WARN/ServiceManager(24): Permission failure: android.permission.RECORD_AUDIO from uid=10019 pid=5373 09-24 15:42:47.059: ERROR/AudioFlinger(24): Request requires android.permission.RECORD_AUDIO I've put a line with a permission in the manifest but it doesn't make anything. Does anyone know permission RECORD_AUDIO? 2008/9/24 Baonq86 [EMAIL PROTECTED] Does anyone record the different format (not .amr) ?? On Sep 24, 3:10 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: I've not played the .amr from the SOUNDRECORDINGAPISAMPLE. I've converted an .mp3 in .amr with software and try to play it. And it woks. maybe the probleme comes from the recorded .amr 2008/9/24 ZIN [EMAIL PROTECTED] can u show me the way to play the .amr format? i can't run it on Android. On Sep 23, 6:04 pm, De San Nicolas Jean Philippe [EMAIL PROTECTED] wrote: sorry,it works 2008/9/23 De San Nicolas Jean Philippe [EMAIL PROTECTED] another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to read with the mediaplayer the sound that we'we recorded? 2008/9/23 Megha Joshi [EMAIL PROTECTED] Yes...the sample is intended to be used for 0.9 sdk, it wont work correct for m5. 2008/9/22 De San Nicolas Jean Philippe [EMAIL PROTECTED] me again... I think Ive resolved the problem with sdcard but I have another problem... the error message in red ERROR/AudioHardware(518): Error 16 opening record channel ERROR/AudioFlinger(518): openRecord returned error 16 ERROR/AudioHardware(518): Attempt to close without open I run the sample with the m5 version of the emulator. Could it be the reason of the failure? regards 2008/9/22 jphdsn [EMAIL PROTECTED] Hello, I try the same sample and I have nearly the same result. have you installed an sdcard and try another time? Have you a positive result? I try to install an sdcard but I've always the same line In the logcat: sdcard access error I think I've an error in the path but don't arrive to resolve it. If you have the solution can you guide me. Thank's On Sep 17, 11:18 am, ZIN [EMAIL PROTECTED] wrote: I have downloaded this project, and try running it in Android Emulator. When i click on the StopRecording Button, an alert appears : process com.android.samples.audio has stopped unexpectedly . I wonder there is a problem in this project. Can someone help me to fix that? Thanks, --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ContentHandler.startElement(..) and ContentHandler.endElement(..) won't be called in 1.0 rc1
Following scenario: SAXParser saxParser = saxParserFactory.newSAXParser(); XMLReader xmlReader = saxParser.getXMLReader(); xmlReader.setContentHandler(handler); xmlReader.parse(someImputStream); where handler implements ContentHandler. xmlReader.parse(..) calls handler.characters(..) but neither handler.startElement(..) nor handler.endElement(..). This worked well in 0.9. Can this regression be reproduced by anybody? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BufferedReader.readLine() undocumentedly discards #! prefix
Sorry. I want to recall this false bug report. The issue is not there. It is a problem of my logging code ^_^ On Sep 24, 4:12 am, Mark Murphy [EMAIL PROTECTED] wrote: Nickname wrote: I just found that BufferedReader.readLine() undocumentedly and silently discards those input lines that starts with #! substring. I checked with java.sun.com documentation and found nothing about #! prefix at all. Is it a bug in Android implementation of BufferedReader class?? That feels like a bug. You probably should just post it on the issue tracker, with sample code and file -- the Android team will reply on the issue tracker if, indeed, this is (somehow) expected behavior. http://code.google.com/p/android/issues/list -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Mock Location Providers in 1.0
Hi! I have downloaded SDK 1.0 this morning, so I have tried to migrate some code I have to this version. When trying to migrate MockLocationProvider I found that some methods have dissapeared from LocationManager: setTestProviderEnabled addTestProvider It seems that it not possible to create a Mock Provider by code any more... I have also checked DDMS Location controls, but they seem to not be working either in this version. Maybe I am doing something wrong, but I have tried kml and gpx. In both cases my kml/gpx files loads ok, but when I click on play button, my application does not receive the locations. I have test the geo command, and it works...so by the moment I am using this, although it is a little hard to write every point in order to do tests... Has anybody managed to make DDMS locations tools to work in 1.0? Is it possible to create a mock location provider by code in this version? Is there any other way to automate this? maybe an script that calls geo utility? Thanks in advance --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] qemu emulator flag not supported anymore in the 1.0 SDK?
In the 1.0 SDK, trying to run: emulator.bat -qemu -m 256 on Windows XP does not work - I get this error: w: invalid option -- '-qemu' This used to work in the beta (0.9) SDK and the emulator's usage hint in the 1.0 SD indicates that the option is valid: -qemu args... pass arguments to qemu -qemu -hdisplay qemu help Please advise. Thanks, Cheryl --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Providers in 1.0
Unfortunately I don't have a good answer for you, but we've been discussing the same question here: http://groups.google.com/group/android-developers/browse_thread/thread/7005933e731de0f3# Professonal Android Application Development http://www.amazon.com/gp/product/0470344717?tag=interventione-20 On Sep 24, 4:22 pm, Cristina [EMAIL PROTECTED] wrote: Hi! I have downloaded SDK 1.0 this morning, so I have tried to migrate some code I have to this version. When trying to migrate MockLocationProvider I found that some methods have dissapeared from LocationManager: setTestProviderEnabled addTestProvider It seems that it not possible to create a Mock Provider by code any more... I have also checked DDMS Location controls, but they seem to not be working either in this version. Maybe I am doing something wrong, but I have tried kml and gpx. In both cases my kml/gpx files loads ok, but when I click on play button, my application does not receive the locations. I have test the geo command, and it works...so by the moment I am using this, although it is a little hard to write every point in order to do tests... Has anybody managed to make DDMS locations tools to work in 1.0? Is it possible to create a mock location provider by code in this version? Is there any other way to automate this? maybe an script that calls geo utility? Thanks in advance --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Test Location Providers in 1.0
The test-location-provider-thing was unnecessary form the start. You have to do just one thing: implement a service that continiously updates you current location. Thats all. On 24 Sep., 11:21, Guillaume Perrot [EMAIL PROTECTED] wrote: I was wondering too, I had to disable this function from my application... It seems we can only use DDMS or telnet to simulate location now. On 24 sep, 08:34, Reto Meier [EMAIL PROTECTED] wrote: The ability to create and configure mock location providers that was added in Beta 0.9 doesn't seem available in 1.0. Has this functionality been moved / renamed or has it been dropped entirely for version 1? If the latter, how do we now mock the status and availability of Location Providers? Cheers Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android:label
Hi, are we allowed to change android:label of AndroidManifest.xml via program dynamically? Thank you so much --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Test Location Providers in 1.0
That might force the emulator to turn on the GPS (this was insufficient for me in 0.9, I still needed to enable and activate the GPS provider in code first). I haven't had a chance to test in 1.0 yet. Either way, it still only covers part of the problem. The test-location-provider-thing also lets you emulate the GPS being turned on / off, mock it's availability, and programatically modify the current location. It also lets you experiment with alternative location services that have different capabilities than the built-in GPS and Network providers. All that stuff was useful, it would be a shame if it's gone now. Cheers Reto Professinal Android Application Development http://www.amazon.com/gp/product/0470344717?tag=interventione-20 On 24 Sep, 16:48, Stefan Handschuh [EMAIL PROTECTED] wrote: The test-location-provider-thing was unnecessary form the start. You have to do just one thing: implement a service that continiously updates you current location. Thats all. On 24 Sep., 11:21, Guillaume Perrot [EMAIL PROTECTED] wrote: I was wondering too, I had to disable this function from my application... It seems we can only use DDMS or telnet to simulate location now. On 24 sep, 08:34, Reto Meier [EMAIL PROTECTED] wrote: The ability to create and configure mock location providers that was added in Beta 0.9 doesn't seem available in 1.0. Has this functionality been moved / renamed or has it been dropped entirely for version 1? If the latter, how do we now mock the status and availability of Location Providers? Cheers Reto- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Providers in 1.0
I do not have a problem playing GPX files from DDMS and my code continues to work ok with 1.0. The only change required was to remove the calls to the two methods you mention when subscribing to location updates. (I am running on Vista, just in case this is a platform issue) Ludwig 2008/9/24 Cristina [EMAIL PROTECTED] Hi! I have downloaded SDK 1.0 this morning, so I have tried to migrate some code I have to this version. When trying to migrate MockLocationProvider I found that some methods have dissapeared from LocationManager: setTestProviderEnabled addTestProvider It seems that it not possible to create a Mock Provider by code any more... I have also checked DDMS Location controls, but they seem to not be working either in this version. Maybe I am doing something wrong, but I have tried kml and gpx. In both cases my kml/gpx files loads ok, but when I click on play button, my application does not receive the locations. I have test the geo command, and it works...so by the moment I am using this, although it is a little hard to write every point in order to do tests... Has anybody managed to make DDMS locations tools to work in 1.0? Is it possible to create a mock location provider by code in this version? Is there any other way to automate this? maybe an script that calls geo utility? Thanks in advance --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Developing Wi-Fi applications in the emulator
Hello Guys, have you already tried the Wifi capabilities of the new release (android-sdk-windows-1.0_r1)?! Have you managed to enable the Wifi in the emulator by calling setWifiEnabled(true) ? The call of the isWifiEnabled()-method returns false... any ideas?! Best regards, Ilya. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Test Location Providers in 1.0
That looks to be the case. It never made sense to me that we would have TestProvider code all through the app anyway. To test Location aware apps now, don't do anything special in your code (code it like you would for a real production application), but in Eclipse, open the Emulator Control view to send GPS lat and long. The docs say you can use a 'geo' app in the tools folder in the SDK, but it doesn't seem to exist yet. http://code.google.com/android/toolbox/apis/lbs.html On Sep 24, 5:21 am, Guillaume Perrot [EMAIL PROTECTED] wrote: I was wondering too, I had to disable this function from my application... It seems we can only use DDMS or telnet to simulate location now. On 24 sep, 08:34, Reto Meier [EMAIL PROTECTED] wrote: The ability to create and configure mock location providers that was added in Beta 0.9 doesn't seem available in 1.0. Has this functionality been moved / renamed or has it been dropped entirely for version 1? If the latter, how do we now mock the status and availability of Location Providers? Cheers Reto --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Physical Device Keypad Events.
Hi, Does someone know how to send events to keypad of an Android physical device (a real device) ? if so, can you please publish this part of the code (I'm willing to simulate press-key during my application)? 10x Yorgen Valune --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Devices for testing?
Hi, Will there ever be a way of getting hold of a G-1, or another Android phone, just for application testing? It would seem very awkward to be required to pay a monthly fee to T- Mobile, especially if it is not for actual use as a phone.. Thanks! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Market Place
They also seemed to imply during the presentation that the App Market would only accept free apps at first. Any idea on when they'll start allowing for pay apps? How the Market charge the user? (Charge on the cell bill or via Google Checkout?) On Sep 23, 7:05 pm, Mark Murphy [EMAIL PROTECTED] wrote: how do you get your app uploaded to the MarketPalce The App Market is not yet available. The beta of the Market is supposed to be available at the time the T-Mobile G1 ships in October. Whether developers will have an opportunity to put their apps in the Market before then is unclear at this time, based on the public statements I have seen. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] G1 for developers in Europe
Hello, I was wondering, is there any way for developers in Europe to get their hands on T-Mobile G1 in October? I understand G1 will be available in UK in November, but other countries have to wait until 2009. There should be a special offer for developers so that they can buy it online from anywhere in the world with no subscription, so they can test their apps on the real thing. That would really speed things up and make Android better much faster. Thanks, Octavian --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Attach a webcam to the emulator
Hi, I want to know is it possible to hook a webcam to the new emulator in Android 1.0? If so, does anybody know how this work? Best regards, Christian Wiesbauer --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] IPC (by domain socket) between Android's LocalSocket and Linux kernel's PF_LOCAL socket
Dear all, I try to create the communication between Android Application and Linux kernel Process by IPC domain socket (using abstract namespace mode), but when I try to creaste new LocalSocketAddress, it always casued the exception lsited below, : E/me ( 372): java.io.IOException: Connection refused E/me ( 372): at android.net.LocalSocketImpl.connectLocal(Native Method) E/me ( 372): at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238) E/me ( 372): at android.net.LocalSocket.connect(LocalSocket.java:95) : When i try to create local socket and connect from linux kernel to my LocalSocketServer, it also arised the same problem, : Unix socke, connect failed: Connection refused(errno is 111) : is it possible to build bi-directed connection domain socket for exchanging data between dalvik vm and linux kernel ? Thanks! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Access to GSM Modem
Hello, are there any examples how to access the phones GSM modem and is it possible to place a DataCall using Android? I would like to write an application which creates a two-way data connection between two Android phones using a GSM or UMTS DataCall. It has to be a real data call (i.e. using a telephone number) and not an Internet based data transfer (so no WLAN, WAP, Bluetooth etc). I would appreciate any pointers you can give me. With kind regards Matthew --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator Skins for HTC Dream / T-Mobile G1
nice! On Sep 24, 9:41 am, Olaf Encke [EMAIL PROTECTED] wrote: Hello Android fans and developers. I just finished building the first HTC Dream/T-Mobile G1 skins for the Android emulator and would like to share them with you. Right now I have done the black version of the phone in portrait as well as in landscape mode. They are tested to work with the latest Android SDK version 1.0r1 (they also work with the 0.9beta). You can get them here:http://www.android.encke.net/(preview screenshots available) I hope you like them and can put them to good use. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to order T-Mobile G1?
More interestingly, buyers would be able to have access to a contract free G1 (with a price point of $399), and could unlock the device with T-Mobile's blessing after 90 days From http://www.engadget.com/2008/09/23/t-mobiles-cto-on-g1-unlocking-and-tethering-plus-a-few-detai/ On Sep 23, 8:23 pm, Johntron [EMAIL PROTECTED] wrote: Yeah, is there an unsubsidized price? On Sep 23, 5:56 pm, Casey Borders [EMAIL PROTECTED] wrote: That's a good question. Can developers who are not with T-Mobile get devices? On Tue, Sep 23, 2008 at 6:55 PM, PowerGUI [EMAIL PROTECTED] wrote: T-Mobile G1---The First Android Phone has announced,I am very excited. I don't know how to order the android phone,can somebody talk about such related things in details? 1) the price is $179, but plus taxes and fees; two-year agreement requiredd,how about ethe actual price? how about the price for the developers outside USA? 2)i am not t-mobile member from china,I use china mobile network,how to order and use? Thanks in advane. PowerGUI - Android DotPhone Team http://www.dotphone.org/english/ http://groups.google.com/group/android-dotphone/- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Market Place
They also seemed to imply during the presentation that the App Market would only accept free apps at first. I'm presuming that's part of the beta aspect of the initial App Market. Any idea on when they'll start allowing for pay apps? How the Market charge the user? (Charge on the cell bill or via Google Checkout?) They haven't said one way or the other. With luck, they'll have more info on this when the App Market beta is available. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Developing Wi-Fi applications in the emulator
The emulator doesn't support Wi-Fi, so WifiManager won't tell you anything useful. 2008/9/15 Bradley Kite [EMAIL PROTECTED] On 13/09/2008, Bradley Kite [EMAIL PROTECTED] wrote: On 11/09/2008, Bradley Kite [EMAIL PROTECTED] wrote: Hi all, I would like to develop an application that makes use of the wifi API (android.net.wifi.*). Is there any way that I can test my application within the emulator? At the moment I am getting this error: E/WifiService( 46): Failed to load Wi-Fi driver. Which I kind of expected, as the emulator doesn't actually contain any wifi hardware. Are there any hacks/tweaks I can make to QEMU that can make it present an emulated piece of wifi hardware to the android device driver? Is any body else also trying to use the wifi API's and has solved this problem? Many thanks in advance -- Brad Hi all, I've come to the assumption that I wont be able to get wifi working within the emulator, so I'm trying to come up with some dummy data to pretend that its come from the wpa_supplicant. With this in mind, I'm trying to spoof some ScanResult structures, as returned by the WifiManager.getScanResult(). However, it would seem like this API is still in a state of flux - for example ScanResult.capabilities is documented as returning a String, but with a TODO note saying that it should be parsed into a WifiConfiguration object. Does this mean that the API will change so that it returns the WifiConfiguration object, or is it expected of the user to parse the string? Would any body be able to clarify the situation with regards to how I should be able to detect the parameters of a wifi network? If somebody has access to a real device, could they please send me some example strings as returned by ScanResult.capabilities? In particular, what would a free/open-access wifi network capabilities string look like? I'd really appreciate the help/guidance that any one has to offer. Kind Regards -- Brad. Guys, I'm really having trouble with the wifi API - even to the point where I am unable to create any dummy data to work with. My code is as follows: WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE); Log.d(TAG, Scanning for WIFI Networks); ListScanResult scan = wm.getScanResults(); WifiConfiguration apConfigs[] = new WifiConfiguration[3]; if (scan == null) { Log.d(TAG, No Networks Found. Falling back to debug mode); // Set up the dummy AP Configurations (WifiConfiguration classes) Log.d(TAG, About to set BSSID); apConfigs[0].BSSID = 00:40:05:a5:88:0d; Log.d(TAG, BSSID is now set); [...snip...] return; } The only output I get from this, however, is as shown below: D/HotSpotWatcher( 596): Scanning for WIFI Networks D/HotSpotWatcher( 596): No Networks Found. Falling back to debug mode D/HotSpotWatcher( 596): About to set BSSID D/dalvikvm( 116): GC freed 3 objects / 72 bytes in 66ms D/dalvikvm( 90): GC freed 1138 objects / 55512 bytes in 82ms It would seem like attempting to set the BSSID is making the function return early, because it never actually prints out BSSID is now set. Can any body help please? Kind regards -- Brad. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: G1 for developers in Europe
Octavian Voicu wrote: [...] There should be a special offer for developers so that they can buy it online from anywhere in the world with no subscription, so they can test their apps on the real thing. That would really speed things up and make Android better much faster. Yeah, but that would provide an easy way for people to get their hands on an unlocked device and so avoid the 2-year T-Mobile contract, so I doubt it will happen. (I'd love one. Not on that contract.) -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: G1 for developers in Europe
I launch the same discussion earlier Especially to provide an access to G1 for ADC participant in Europe... See discussion there: http://groups.google.fr/group/android-discuss/browse_thread/thread/e3831f8a2899765e# regards On 24 sep, 18:51, David Given [EMAIL PROTECTED] wrote: Octavian Voicu wrote: [...] There should be a special offer for developers so that they can buy it online from anywhere in the world with no subscription, so they can test their apps on the real thing. That would really speed things up and make Android better much faster. Yeah, but that would provide an easy way for people to get their hands on an unlocked device and so avoid the 2-year T-Mobile contract, so I doubt it will happen. (I'd love one. Not on that contract.) -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Google support for developers
We are really excited to see Android move forward. We believe that the openness of this platform is crucial to buisness development. Two questions: 1. Will there be a discount price for developers? 2. Are there possibilities that Google will support Android-based businesses with VC funding or marketing collaborations? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Survey: One G1 for each ADC entrance
Please, Could you answer to this survey? I would like that european Android developers aren't forgotten by Google Android, HTC and T-Mobile. http://spreadsheets.google.com/viewform?key=pBxgcXvOI-GXYJ4UoYyEpAA Thanks all! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google support for developers
2. Are there possibilities that Google will support Android-based businesses with VC funding or marketing collaborations? There are the Android Developer Challenges. ADC II is supposed to be announced in the fourth quarter of 2008. Also, getting applications into the App Market will give you exposure to all(?) Android users, just as getting into Apple's App Store gives you exposure to all (non-jailbroken?) iPhone users. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Bug with Ellipsize in ListView?
I was implementing a view this morning with Ellipsize and noticed some characters appearing after the ... http://dl.getdropbox.com/u/26335/ellipsize.png Notice the middle two lines have a box like it has an unrenderablecharacter. Is this a bug, or am I doing something strange? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] XML-RPC
Hello I am looking for a way to use XML-RPC with Android. Is there anyone who has succesfully done this? Thankful for any advice Regards Goluef --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: google sdk and eclipse plugin
Great thanks, Markos. Manual installation from local place works. 2008/9/4 Marcos Hack [EMAIL PROTECTED] It seems to be a problem in the ADT update site. The ADT update site URL isn't working (https nor http). You can try to install the ADT plugin using the Archive Site as described in the section Troubleshooting ADT Installation on [1]. Regards, Marcos Hack. [1] http://code.google.com/android/intro/installing.html#installingplugin On Sep 4, 5:16 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I wanted to try to develop some application for Android and downloaded SDK and wanted to get Eclipse Android plugin. But locationhttps://dl-ssl.google.com/android/eclipse/wasn'thttp://dl-ssl.google.com/android/eclipse/wasn%27tfound. And from Eclipse Software Updates, and from http-browser. Can somebody help me to resolve this problem? -- Maxim Novikov --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Need help getting started! Mships.com benevolent themes.
Mships.com is new to Android and programming in general. I want to have a simple clean interface for many Mships.com themes. They're positive, benevolent and friendly games like ILoveNerds!, Ukons (daily good deeds), PetGhosts!, Groovyz!, PeaceSignz! + many more. Mships games are REAL-LIFE games, not traditional games. They want you to do fun things in the real world based on the game and to coordinate moves with players around the world, creating something fun, new + cool in the world. Basically, I want to have a simple interface that updates once every ten minutes with a new message for players around the world. I'd love for a lot of other functionality that's a natural extension of the game. What I am hoping for is some smart fun benevolent programmer out there to help set me up with a basic interface I can edit to replace the artwork and specifics for each theme. It's a pretty cool game we're setting up. Hoping to get someone's help + attention. Thanks a lot. Jonathan Mships.com --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] GPS Power Consumption Questions
Our app uses the LocationManager to request ongoing updates from the onboard GPS service. GPS is notoriously power-hungry, and I'd love to gain some insight from Google Engineers on how to best use GPS in our app to prevent too much battery waste in usage on the actual G1 device. Can a Google Engineer comment on: a) How much difference it makes (if any) to power consumption whether the minimum time between GPS update requests (i.e. 1 sec between updates vs. 20 secs between updates) is short or long? Will that make a difference to an application running for example, over a few hours? Or is the power consumption the same as long as the relevant LocationProvider is enabled? b) How you can actually turn off the GPS, in terms of its power consumption. Will a call to to removeUpdates() or removeProximityAlerts() be enough, or must the relevant LocationProvider be disabled (ie through System.Settings)? Thanks! Jeff --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android 1.0 SDK Released
Congrats! This is bigger than the G1. ..My Emulator is very stable. - Juan T. On Sep 23, 6:09 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-... SDK Download: http://code.google.com/android/download.html Overview of Changes since 0.9 SDK: http://code.google.com/android/migrating/0.9-1.0/changes-overview.html Android Developer Guide: http://code.google.com/android/documentation.html Thanks for using the Android SDK and Happy coding! Cheers, The Android Team. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Eclipse plugin update
Has everyone been successful installing the newest eclipse plugin or just updating the plugin? I am trying to update and getting the following error with ganymede on osx: Cannot complete the request. See the details. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/ [3.2.201.R34x_v20080709,3.2.201.R34x_v20080709]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.equinox.preferences/ [3.2.200.v20080421-2006,3.2.200.v20080421-2006]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/ [3.4.1.M20080910-0800,3.4.1.M20080910-0800]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/ [3.4.0.I20080610-1200,3.4.0.I20080610-1200]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/ [3.4.2.R34x_v20080826-1230,3.4.2.R34x_v20080826-1230]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/ [3.4.0.v20080605-1900,3.4.0.v20080605-1900]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/ [3.4.1.M20080827-0800a,3.4.1.M20080827-0800a]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.ui.workbench/[3.4.0.I20080606-1300,3.4.0.I20080606-1300]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.1.v3449c,3.4.1.v3449c]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.swt/[3.4.0.v3448f,3.4.0.v3448f]] can be satisfied. etc --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] replacing incoming call and outgoing call screens
The incoming call and outgoing call screens (when you call someone/ receive someone's call) are currently default screens launched by the Dialer, or some other built-in Android app. Is it possible to replace these screens? --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Google isn't going to do billing for mobile apps? Confirm?
Saw this: http://www.moconews.net/entry/419-g1-live-the-android-market-is-no-app-store/ ...when Android Market does allow apps to be sold, Google won’t take a cut of revenues, unlike Apple (NSDQ: AAPL). It will purely be an arrangement between the carrier and the mobile app developer. It is unknown what the revenue-share agreement will be between the carrier and a developer. This is a smart move. If applications can be sold through the carrier and appear on a phone bill, rather than being charged to a credit card, none of the parties involved will have to pay the credit card companies. It’s unlikely Google won’t get a take somewhere, such as advertising on its own services, or others. If true this COULD be bad news. Here's why: 1. Carriers typically take 45% to 50% of the revenue, with net 60-90 day terms. 2. Developers who want to sell apps across multiple territories will have to make separate agreements with the carriers in each of the countries. 3. Carrier approval process for billing agreements and apps can be expensive and time consuming. My company currently sells mobile content with carrier billing and it is a far more complex and difficult thing than having a single billing point of contact. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Developing Wi-Fi applications in the emulator
Hi Megha Joshi, In the 1.0 SDK, WifiManager.getScanResults() returns a list of ScanResult objects, each of which contains a capabilities String. Please could you provide an example of what form this string might be? I'm trying to get an understanding of how I might have to parse this information in order to construct my own class to represent the authentication, key management, and encryption schemes of wifi networks. Many thanks in advance -- Brad. On 24/09/2008, Megha Joshi [EMAIL PROTECTED] wrote: The emulator doesn't support Wi-Fi, so WifiManager won't tell you anything useful. 2008/9/15 Bradley Kite [EMAIL PROTECTED] On 13/09/2008, Bradley Kite [EMAIL PROTECTED] wrote: On 11/09/2008, Bradley Kite [EMAIL PROTECTED] wrote: Hi all, I would like to develop an application that makes use of the wifi API (android.net.wifi.*). Is there any way that I can test my application within the emulator? At the moment I am getting this error: E/WifiService( 46): Failed to load Wi-Fi driver. Which I kind of expected, as the emulator doesn't actually contain any wifi hardware. Are there any hacks/tweaks I can make to QEMU that can make it present an emulated piece of wifi hardware to the android device driver? Is any body else also trying to use the wifi API's and has solved this problem? Many thanks in advance -- Brad Hi all, I've come to the assumption that I wont be able to get wifi working within the emulator, so I'm trying to come up with some dummy data to pretend that its come from the wpa_supplicant. With this in mind, I'm trying to spoof some ScanResult structures, as returned by the WifiManager.getScanResult(). However, it would seem like this API is still in a state of flux - for example ScanResult.capabilities is documented as returning a String, but with a TODO note saying that it should be parsed into a WifiConfiguration object. Does this mean that the API will change so that it returns the WifiConfiguration object, or is it expected of the user to parse the string? Would any body be able to clarify the situation with regards to how I should be able to detect the parameters of a wifi network? If somebody has access to a real device, could they please send me some example strings as returned by ScanResult.capabilities? In particular, what would a free/open-access wifi network capabilities string look like? I'd really appreciate the help/guidance that any one has to offer. Kind Regards -- Brad. Guys, I'm really having trouble with the wifi API - even to the point where I am unable to create any dummy data to work with. My code is as follows: WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE); Log.d(TAG, Scanning for WIFI Networks); ListScanResult scan = wm.getScanResults(); WifiConfiguration apConfigs[] = new WifiConfiguration[3]; if (scan == null) { Log.d(TAG, No Networks Found. Falling back to debug mode); // Set up the dummy AP Configurations (WifiConfiguration classes) Log.d(TAG, About to set BSSID); apConfigs[0].BSSID = 00:40:05:a5:88:0d; Log.d(TAG, BSSID is now set); [...snip...] return; } The only output I get from this, however, is as shown below: D/HotSpotWatcher( 596): Scanning for WIFI Networks D/HotSpotWatcher( 596): No Networks Found. Falling back to debug mode D/HotSpotWatcher( 596): About to set BSSID D/dalvikvm( 116): GC freed 3 objects / 72 bytes in 66ms D/dalvikvm( 90): GC freed 1138 objects / 55512 bytes in 82ms It would seem like attempting to set the BSSID is making the function return early, because it never actually prints out BSSID is now set. Can any body help please? Kind regards -- Brad. --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Transparent Buttons Focus
I have some buttons without backgrounds ( produced either by setBackgroundDrawable(null) or setBackgroundColor(0x) ) -- that part works fine. However, when the button does not have a background it never gets the orange focus highlight and hence is not navigable via trackball. It does actually get focus since my focus callback is invoked. My question is: is there some method I can use to cause the button to highlight when it's focused or alternatively what's the android.R.drawable resource for the orange background highlighting (I can do the focus-handling myself with that). Thanks. SPT --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Eclipse plugin update
Uninstall everything then try again and see if that helps. I had a few teething problems too but just uninstalled/reinstalled. On Sep 24, 7:19 pm, mistapony [EMAIL PROTECTED] wrote: Has everyone been successful installing the newest eclipse plugin or just updating the plugin? I am trying to update and getting the following error with ganymede on osx: Cannot complete the request. See the details. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/ [3.2.201.R34x_v20080709,3.2.201.R34x_v20080709]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.equinox.preferences/ [3.2.200.v20080421-2006,3.2.200.v20080421-2006]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/ [3.4.1.M20080910-0800,3.4.1.M20080910-0800]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/ [3.4.0.I20080610-1200,3.4.0.I20080610-1200]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/ [3.4.2.R34x_v20080826-1230,3.4.2.R34x_v20080826-1230]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/ [3.4.0.v20080605-1900,3.4.0.v20080605-1900]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/ [3.4.1.M20080827-0800a,3.4.1.M20080827-0800a]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.ui.workbench/[3.4.0.I20080606-1300,3.4.0.I20080606-1300]] can be satisfied. Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.1.v3449c,3.4.1.v3449c]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.swt/[3.4.0.v3448f,3.4.0.v3448f]] can be satisfied. etc --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Do services run in their own processes
I have a services that registers itself for boot completed event and when started by the phone creates two new services in a thread using startService function. My question is wthere the two newly created services run in the same process as the servivce that created them or in separate processes. When I run ps command on the ADB shell I see separatre entries for each of the three services. I am confused because I found this text in the descrption of Service class Note that a new thread is not created for each Activity, BroadcastReceiver, Service, or ContentProvider instance: these application components are instantiated in the desired process (all in the same process unless otherwise specified), in the main thread of that process Please help me undretsand the concept. Thanks, -Anshul --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---