[android-beginners] Re: prting procedure for Android on SMDK2440 board
thanks for the reply but can u tell me to which mail id i need to port this query as i snd to the mail id android-port...@googlegroups.com but it is gvn no reply i.e no group like that exits... plz make me clear to post this query... On Tue, Aug 11, 2009 at 11:09 AM, Jack Ha jack...@t-mobile.com wrote: This question is more suitable for the android-porting group. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 10:04 pm, prasad NSRS prasad.9...@gmail.com wrote: Hi with reference to the posting on the google group of android-beginners@googlegroups.com, Internet Access on ANDROID as it is mentioned like* am working on SMDK2440 board. Android is up and running on the target platform*. and as iam also working for the same but i want some support like how to make to work android on the SMDK2440 boardcan anyone please provide me the *Procedure to Load ANDROID OS on to the SMDK2440 board*.?and supported links if any..and is there any toolchains specific for doing this...? please help me in this regard... -- Regards, prasadNSRS +91 9393858787 -- Regards, prasadNSRS +91 9393858787 now u can mail me @ prasad.narikanabi...@honeywell.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Let a view bigger than screen
Thank you~~ On 8月10日, 下午9时00分, Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de wrote: I use a ScrollView to do things like that. I don't know what type of view you use so this is an example for a TextView: ScrollView android:layout_height=fill_parent android:layout_width=fill_parent TextView android:layout_height=500px android:layout_width=500px /TextView /ScrollView Hope that works for you Am 10.08.2009 um 12:15 schrieb whitech: Hi~ I've met a problem now. I've got a view that must be bigger than 480*320, like 500*500, and using finger to move it so i can see all of the view. How should i set the LayoutParams of this view ? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Cache the event of soft-keyboard pop up
Hi there, I've met a problem here. I've got a control bar align-bottom at the screen, when I click a editText, the soft-keyboard popup and push the control bar up. But I don't want it like that. How can I catch the event of soft-keyboard popup? Or let the control bar invisible when the keyboard popup and visible when it down? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cache the event of soft-keyboard pop up
And there is another problem. If I want to input something into a non- edittext view, how should I call up the soft-keyboard(virtual keyboard) and get the message input from the keyboard? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK
You have not downloaded the Android SDK. You have downloaded some random Java applet called Anfy that has something to do with manipulating images. Please download the *Android* SDK from here: http://developer.android.com/sdk/1.5_r3/index.html Regards, Sean On Fri, Aug 7, 2009 at 9:07 PM, Jana Bandev_don...@hotmail.com wrote: It is supposed to be a simple task to download the SDK. I downloaded the SDK for the windows XP. After unzipping the SDK, all I see is AnFade.class, anfy.class, Lware.class and METS-INF. I do not see any other software along with it. What I am doing wrong? I do not know how to proceed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: prting procedure for Android on SMDK2440 board
prasad NSRS wrote: thanks for the reply but can u tell me to which mail id i need to port this query as i snd to the mail id android-port...@googlegroups.com mailto:android-port...@googlegroups.com but it is gvn no reply i.e no group like that exits... http://groups.google.com/group/android-porting -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] String.xml
Hi! Is posible to get,fom code, value of a string from string.xml? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: String.xml
Thank you! Do you know how to set value of a string in string.xml?i want to share a string between 2 activities because if the first activity will open the second and when i press back button to go back to the first i want to start a function...thank you! On Aug 11, 2009 12:57 PM, Naveen Krishna Ch naveenkrishna...@gmail.com wrote: 2009/8/11 Liviu Ungureanu smartli...@gmail.com Hi! Is posible to get,fom code, value of a string from string.xml? getText(The ID of the string); Should be helpful. Thank you! -- Shine bright, (: Naveen Krishna Ch :) ~~Forgiveness is the economy of the heart... forgiveness saves the expense of anger, the cost of hatred, the waste of spirits.~~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: String.xml
2009/8/11 Liviu Ungureanu smartli...@gmail.com Hi! Is posible to get,fom code, value of a string from string.xml? getText(The ID of the string); Should be helpful. Thank you! -- Shine bright, (: Naveen Krishna Ch :) ~~Forgiveness is the economy of the heart... forgiveness saves the expense of anger, the cost of hatred, the waste of spirits.~~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: String.xml
Liviu Ungureanu wrote: Thank you! Do you know how to set value of a string in string.xml? You cannot change string resources from within your application. want to share a string between 2 activities because if the first activity will open the second and when i press back button to go back to the first i want to start a function... Use SharedPreferences. Or, use an ordinary text file. Or, use a database. Or, use a static public data member. Or, use a service. Or, use a content provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: String.xml
Thank you very much..finally i used and bundle with an intent...but when the activity is show after i press back button on other activity ,is not call onCreate or on resume?thank you! On Aug 11, 2009 1:12 PM, Mark Murphy mmur...@commonsware.com wrote: Liviu Ungureanu wrote: Thank you! Do you know how to set value of a string in string.xml? You cannot change string resources from within your application. want to share a string between 2 activities because if the first activity will open the second ... Use SharedPreferences. Or, use an ordinary text file. Or, use a database. Or, use a static public data member. Or, use a service. Or, use a content provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are sub... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Struggling with google maps
NoClassDef always points me to think about Classpath, or inconsistencies between packages on your system (perhaps you are running a different version of Android out of eclipse, and linking to a different library package on your system). Maybe not that helpful, but something I was thinking about that may point you to examine your system configuration, which is likely the problem (as your code looks simple from what you have posted). On Aug 9, 2:47 pm, Jack Ha jack...@t-mobile.com wrote: Which line in the code that caused the exception? Can you post the complete stack trace here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 9, 2:20 pm, trostum tros...@gmail.com wrote: Hi. I was following this tutorial:http://mobiforge.com/developing/story/using-google-maps-android on creating map activities, Now i am unable to understand why my application crashes. I get a NoClassDefFoundError and that exception is caused by a Caused by: java.lang.IllegalAccessError: cross-loader access from pre-verified class. Now i have added the uses-library android:name=com.google.android.maps / as a child element to my aplication and uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission and uses-permission android:name=android.permission.INTERNET/ as children of the Manifest element. My avd is running on api level 4 with the google apis. What is wrong? i have searched the web, but nnot found a solution to my problem. Appreciate any thoughts or comments on what might be wrong --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Automatic Import causes crash ?
org.example.sudoko/android.provider.Settings I'm not sure how it got there, but I had an Import for android.provider.Settings which was causing problems in the Sudoko program in Hello Android (excellent so far) book. It was giving a crash when the settings menu was chosen. The clue came in the debugger log where the problem was logged as Intent not found. Then I thought that the android.provider...was new, I'd not seen it before. I found the Import and removed it and Hey Presto! As you can see I'm just starting out with Android. What are the rules for automatic (Ctrl Shift O) imports? Is it that I did the automatic import before building the class, or the manifest.xml? John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] WifiReceiver not part of SDK 1.5???
I don't see this in the list of WiFi classes on the latest documentation found here http://developer.android.com/reference/android/net/wifi/package-summary.html I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Using ExpandableListView inside a Dialog
Hi, I am new to Android and Java. The answer is not obvious (to me) I have been using ExpandableListView inside an activity quite happily. so... public class PaymentList extends ExpandableListActivity{ ExpandableListAdapter mAdapter; ... mAdapter = new MyExpandableListAdapter(); setListAdapter(mAdapter); registerForContextMenu(getExpandableListView()); ...etc I now want PaymentList to be a Dialog so:- public class PaymentList extends Dialog{ cannot resolve setListAdapter or getExpandableListView. How do I get over this (provide the getExpandableListView functionality inside the Dialog) ??? Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to access Response / Request objects in WebView
Hi, I am using webview for showing HTML pages and communication with my client. But somehow, i need to have access to the response object in order to analyze it and making proper decisions. Could you help me how I can do that. Or is any other method to handle such problems. In fact, I would like to avoid writing another class like webview to show my pages. Thank you, Mahsa, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Operating Systems supported by Android Apps
What operating systems are supported by Android Operating Systems? On what platforms we can deploy Android apps Thanks Maxood --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Using ExpandableListView inside a Dialog
Steve, setListAdapter() and getExpandableListView() are methods that belong to the ExpandableListActivity class hence are not available when you extend the Dialog class. You could create a Custom Dialog and Use the ExpandableListView as its view. http://developer.android.com/reference/android/widget/ExpandableListView.html http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog Hope this helps, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 7:30 am, Steve Hall st...@milkroundsoftware.co.uk wrote: Hi, I am new to Android and Java. The answer is not obvious (to me) I have been using ExpandableListView inside an activity quite happily. so... public class PaymentList extends ExpandableListActivity{ ExpandableListAdapter mAdapter; ... mAdapter = new MyExpandableListAdapter(); setListAdapter(mAdapter); registerForContextMenu(getExpandableListView()); ...etc I now want PaymentList to be a Dialog so:- public class PaymentList extends Dialog{ cannot resolve setListAdapter or getExpandableListView. How do I get over this (provide the getExpandableListView functionality inside the Dialog) ??? Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Automatic Import causes crash ?
If your logcat output for the crash indicated that an Intent was not found, then your problem is in the AndroidManifest.xml file. You were trying to access an Intent that you hadn't declared in the manifest file. I use automatic imports (cmd-shift-o or ctrl-shift-o) all the time and it works nicely for me :) Using them just before building the class should not cause a problem. The only problem I have seen is if there are two classes by the same name in two difference packages and you inadvertently pick the wrong one for your import like Log class or Camera class or sometimes the R.java class if it was a eclipse version for an older version of Android. Later, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 6:19 am, jbrohan jbro...@gmail.com wrote: org.example.sudoko/android.provider.Settings I'm not sure how it got there, but I had an Import for android.provider.Settings which was causing problems in the Sudoko program in Hello Android (excellent so far) book. It was giving a crash when the settings menu was chosen. The clue came in the debugger log where the problem was logged as Intent not found. Then I thought that the android.provider...was new, I'd not seen it before. I found the Import and removed it and Hey Presto! As you can see I'm just starting out with Android. What are the rules for automatic (Ctrl Shift O) imports? Is it that I did the automatic import before building the class, or the manifest.xml? John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Multi-threading
Does Android support multi-threading? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Multi-threading
Yes. http://developer.android.com is a good place to find information such as this. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 8:05 am, Maxood maqs...@salsoft.net wrote: Does Android support multi-threading? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: AppWidget Initialization. How to do it properly.
Any views? :) On Aug 8, 4:51 am, alkar alcarlo...@gmail.com wrote: I'm trying to figure out how to do some initialization for a widget I'm developing. What I want to do is perform some actions as soon as the device boots. The preferable means would be to do it just before the phone shuts down, but from the research I've done there's no way to do that with the current API. So I would like to ask how would you suggest it be done. The initialization process consists of reading/writing some SharedPreference values. I've thought about employing a activity that does the initialization onCreate(), set as android:configure in the AppWidgetProvider xml, but that is not a good solution, since adding a second widget of the same kind would mean that initialization is done again, something I don't want happening. I've also read about BroadcastReceiver and BOOT_COMPLETED, but would that ensure that the initialization is done prior to the widgets' first onUpdate() call? I still have to try this. If there's any other means of performing that initialization prior to the widgets' first update on boot, I'd like to hear about it. As a sidekick here, I'd like to ask you one more thing. Currently, I'm saving two Preference values onUpdate() because I couldn't do it onPause() with a widget. Maybe I'm being too noob here and haven't understand how stuff work, but is that a bad solution? Is it too stressing for the device? Is there a better way to ensure the most recent data prior to shutdown are being saved? Should I employ a service? Thank you very much in advance :) alkar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] RuntimeException -
Hi All, Everything was going great, then all of a sudden this morning, I am getting this -- ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord) line: 2194 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord) line: 2284 ActivityThread.access$1800(ActivityThread, ActivityThread$ActivityRecord) line: 112 ActivityThread$H.handleMessage(Message) line: 1692 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 3948 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 782 ZygoteInit.main(String[]) line: 540 NativeStart.main(String[]) line: not available [native method] I have not changed anything, and yesterday everything was working fine. I set a breakpoint at the first line in my main and it never hits it. Any ideas? -phil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Operating Systems supported by Android Apps
Maybe I'm missing something, but... your Android apps run on the Android operating system. While there are some experimental releases of 'live Android' CDs that allow you to boot up a regular PC into the Android OS, up to now the only commercially available devices that run Android are cellphones. Soon however there will be Android-powered 'smartbooks', i.e. devices that are somewhere between netbooks (small, internet-focused notebooks) and cellphones. On Aug 11, 9:01 am, Maxood maqs...@salsoft.net wrote: What operating systems are supported by Android Operating Systems? On what platforms we can deploy Android apps --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Automatic Import causes crash ?
This problem was also discussed in the on-line forum for the book Hello, Android. As Balwinder says, doing an automatic import can be a problem when your class has the same name as a built-in class. Ed Burnette, the book author, says he will change the name of Settings to something like MySettings for the next edition of his book in order to avoid the imports problem. S On Aug 11, 7:19 am, jbrohan jbro...@gmail.com wrote: org.example.sudoko/android.provider.Settings I'm not sure how it got there, but I had an Import for android.provider.Settings which was causing problems in the Sudoko program in Hello Android (excellent so far) book. It was giving a crash when the settings menu was chosen. The clue came in the debugger log where the problem was logged as Intent not found. Then I thought that the android.provider...was new, I'd not seen it before. I found the Import and removed it and Hey Presto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Is there a simple way to...
Sorry, the design requirements of the problem are not very clear from the description of the post. Do you want to run the loop for a finite for every push down or only while the button is pushed down. Here are some ideas if they help solve your issue. You can add View.OnKeyListener and View.OnTouchListener (if you want to touch enable the button) Implement the onKey method with something like this public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN){ while (myVariable != 0){ myVariable--; audioAlert(); } myVariable = 1000; // re-initialize return true; }else if (event.getAction() == KeyEvent.ACTION_UP){ return true; } return false; } If this is not what you are looking for, kindly give more details. Also, for the audioAlert you may want to initialize it only once and then just play a sound in the loop. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 10:59 pm, Hugh lordhornb...@googlemail.com wrote: Anyone? It's just that the code posted i think will only sound once and you will have to click it again for it to sound again? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Operating Systems supported by Android Apps
There was already a thread about this topic http://groups.google.com/group/android-developers/browse_thread/thread/800057cdc8bcc299/a08a9e68fdd9bc5a?lnk=raot If you download the Android source you can find the compiler for x86 and arm environment under ./prebuilt/linux-x86/toolchain or ./prebuilt/darwin-x86/toolchain -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 8:01 am, Maxood maqs...@salsoft.net wrote: What operating systems are supported by Android Operating Systems? On what platforms we can deploy Android apps Thanks Maxood --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: RuntimeException -
I don't see an error in your call stack, did it not mention one? the problem could be anything, but when I read a call stack that says, SDK can't start running an app perhaps your SDK was corrupted. I suggest reinstalling it. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 9:01 am, phil.pellouch...@gmail.com wrote: Hi All, Everything was going great, then all of a sudden this morning, I am getting this -- ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord) line: 2194 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord) line: 2284 ActivityThread.access$1800(ActivityThread, ActivityThread$ActivityRecord) line: 112 ActivityThread$H.handleMessage(Message) line: 1692 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 3948 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 782 ZygoteInit.main(String[]) line: 540 NativeStart.main(String[]) line: not available [native method] I have not changed anything, and yesterday everything was working fine. I set a breakpoint at the first line in my main and it never hits it. Any ideas? -phil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to display icon in status pane.
Hi, I am trying to display an icon in status pane. How I can do this? Regards, Ramesh A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ArrayIndexOutOfBoundsException in maps API
Hi Zied Hamdi, did you call the populate method after adding your Overlays? thats what caused this exception for me, Regards, Aracos On Aug 10, 4:38 pm, Zied Hamdi zhamdi.i...@gmail.com wrote: Hi, I'm realy frustrated to see this error without being able to see what's happening in sources. It happens sometimes I don't know in which conditions and politely shoots off my app. When will google release the maps API sources? Or am I doing sth wrong (I downloaded the cupcake image to avoid debugging in code that's potentially not accurate, are the maps api sources available in newer images?). 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): java.lang.ArrayIndexOutOfBoundsException 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.ItemizedOverlay.maskHelper (ItemizedOverlay.java:562) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.ItemizedOverlay.setFocus(ItemizedOverlay.java: 365) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.ItemizedOverlay.focus(ItemizedOverlay.java: 539) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.ItemizedOverlay.onTap(ItemizedOverlay.java: 455) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.OverlayBundle.onTap(OverlayBundle.java:83) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.MapView$1.onSingleTapUp(MapView.java:346) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.GestureDetector.onTouchEvent(GestureDetector.java:503) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.google.android.maps.MapView.onTouchEvent(MapView.java:623) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.View.dispatchTouchEvent(View.java:3368) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1197) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.app.Activity.dispatchTouchEvent(Activity.java:1993) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.os.Handler.dispatchMessage(Handler.java:99) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.os.Looper.loop(Looper.java:123) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at android.app.ActivityThread.main(ActivityThread.java:3948) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at java.lang.reflect.Method.invokeNative(Native Method) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at java.lang.reflect.Method.invoke(Method.java:521) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 08-10 16:30:44.318: ERROR/AndroidRuntime(1053): at dalvik.system.NativeStart.main(Native Method) Best Regards, Zied Hamdihttp://nextstreet.eu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] AVD extremely slow...
Dear Developpers, I created a 'Hello-World'-application on my PC and saw that the AVD is very slow. When I type text in the simulation, it takes several seconds until the text appears in the text field. Also mouse interactions are very slow. Possibly my PC is too slow. it's a single core AMD with 1.6 GHz Are the simulations on your PCs running reasonably fast ? I just want to make sure it's my PC. Regards, Walter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] MediaPlayer and rtsp streaming problems
Hi I have difficulties with rtsp streaming in MediaPlayer. The code is quite straightforward: android.media.MediaPlayer player = new android.media.MediaPlayer(); player.setDataSource(rtsp://stream.xxx.xxx.xxx/link.sdp); //this link is not alive, only for demo player.prepare(); Prepare() throws an exception: 08-09 09:54:20.156: ERROR/PlayerDriver(35): Command PLAYER_PREPARE completed with an error or info PVMFFailure 08-09 09:54:20.168: ERROR/MediaPlayer(396): error (1, -1) 08-09 09:54:20.198: WARN/System.err(396): java.io.IOException: Prepare failed.: status=0x1 08-09 09:54:20.218: WARN/System.err(396): at android.media.MediaPlayer.prepare(Native Method) Has anybody else faced similar problems with MediaPlayer on android 1.5 (emulator and G1 developer's phone)? btw: rtsp link works ok, cause I have tried it also from the web browser in android, and it plays well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Need way to to auto-switch layout designs
I don't know a lot about *.properties files, but i think that is what I'm looking for. I'm creating a project that will first be released under one company name, and then later under another company name. I have been asked to design the project in a way that all i have to do is switch out a value and the images/styling will update accordingly. So let's say I have a file (not sure what type of file) that contains: product=ob Then I could set up my *.java and layout *.xml files something like this: JAVA: setContentView(R.layout.login_${product}) Layout: ImageView android:src=@drawable/logo_${product} /, TextView style=@style/FormText${product} / Styles: style name=Theme.AppBackground parent=android:Themeitem name=android:windowBackground@drawable/back_theme_${product}/ item/style Then all i do is change the value of 'product' in one file and everything updates for the next build. Does anyone know how to do this? Are there separate methods for doing it in JAVA files vs XML files? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] 3D positioned sound
Is there any way to use 3D positioned sound in Android apps? Ive found Java3D (https://java3d.dev.java.net/) but it has native libraries in addition to jars. Thx in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Accessing somekind of audio device from JNI?
Hi Is it possible to access some audio-device or getting some lower level access to the media framework from within a JNI library, for generating lower latency audio? perhaps using something like alsa? couldn't find any audio/media references in the NDK.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] trying to download latest, but the downloaded doc reports it's not the latest
Hi all, excuse the doutbless newbie question .. but a quick scan of the FAQ didn't turn up a pertinent answer. I've downloaded 2 version of the dev kit now: http://developer.android.com/sdk/1.5_r2/index.html http://developer.android.com/sdk/1.5_r3/index.html When I download and unpack, and look at RELEASE_NOTES.html in the top level directory there's a big screaming message that goes like: Android 1.1 SDK, Release 1 February 2009 This is NOT the current Android SDK release. Download the current Android SDK The sections below provide an overview of the SDK package. For more information on this SDK release, read the Release Notes. Is this message just incorrect and needs fixing, or are the files I'm downloading with 1.5 in the title really just 1.1 dev kits? yours confusedly.. Curtis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Layout does not show AutoCompleteTextView
So , until the next version, there is no way to use autocompete text widget with this sdk? On Aug 5, 8:58 pm, Xavier Ducrohet x...@android.com wrote: This is a known issue which should be fixed in the next version. Xav On Wed, Aug 5, 2009 at 1:26 AM, Phill Perrymanphill.perry...@googlemail.com wrote: When I create a simple xml layout with a linear layout and add an auto complete text viewer all I get is a NullPointerException: null on the screen. This also happens when I open theautocompletesamples. I am using Eclipse Galileo and the latest android sdk. Am I doing something wrong or is this a bug. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ksoap2
I want to download org.ksoap2 for Android in order to design a soap envelope to access a published web service. Can anyone tell me the best / latest version of ksoap2 for Android and where to go to download it ? I'm using the Android plug-in with Eclipse Ganymede. I get rather confused with all the versions of ksoap2 that seem to be available and don't know which is the one to use. Is there a .zip version ? Thanks in advance for your help Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Camera Preview on Emulator
Hi, I want to preview my camera on emulator. I have also written small app for that. But it only show black and white squares and gray square moving. Does anybody has any idea about this ? Thanks in advance, Swapnil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Urgent Dialog probleme
Hi Guys, I got the following prob: -I have to implement an interface -in most methods its like show dialog and get the selected result -afaik in android there is no way to wait for such a result [short: the code should NOT proceed to the return-statement until a button is clicked!] so... that's the base; [syntax=java]public int showDlg() { int iSelectedChoice = -1; //show Dlg //wait for Dlg to be finished (ok or cancel is clicked, DO NOT PROCEED until it is clicked) ) return iSelectedChoice; //return selected choice }[/syntax] and my current implementation: [syntax=java]public int AskQuestion(String[] choices, String strQuestion, int preSelect) { Dialog oDlg = null; Builder oBuilder = new AlertDialog.Builder(this); oBuilder.setIcon(R.drawable.cortado_icon); oBuilder.setTitle(Question); oBuilder.setSingleChoiceItems(choices, 0, this); oBuilder.setPositiveButton(ok, this); oBuilder.setNegativeButton(cancel, this); oDlg = oBuilder.create(); oDlg.show(); while(m_fBool == false) //m_fBool is set true when a button is clicked (in the onClicklistener) { try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } return m_iResult; }[/syntax] In my implementation I can't see the Dialog anyway =( Please help me, its urgent!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Cached GPS info?
Hi there, I'm thinking about buying an HTC Hero for usage in the US. I don't plan to use it with 3G so I guess I'm fine. However, then I'm wondering, can I use the GPS feature only when I'm connected via WiFi? Is there a way to download GPS maps of a certain city to have them cached in the SD card for its usage when there's no data connection? Thanks, Andres -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Camera Preview on Emulator
The emulator doesn't support camera emulation. You may want to check out this link: http://www.tomgibara.com/android/camera-source -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 5:23 am, swapnil kamble swap.kam...@gmail.com wrote: Hi, I want to preview my camera on emulator. I have also written small app for that. But it only show black and white squares and gray square moving. Does anybody has any idea about this ? Thanks in advance, Swapnil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
Hi Jack, posting my reply again... dunno where my previous post went. I have the complete code now but the app force closes on my emulator. Is it because the emulator doesn't support WiFi apps? and force closes when it tries to scan for networks? I thought the emulator would just get stuck at the Starting Scan phase but wouldn't crash... correct? Abhi On Aug 11, 11:41 am, Jack Ha jack...@t-mobile.com wrote: WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Layout does not show AutoCompleteTextView
Well, you can use it. it's just not supported by the layout editor in ADT. Xav On Tue, Aug 11, 2009 at 1:02 AM, fra111fra...@gmail.com wrote: So , until the next version, there is no way to use autocompete text widget with this sdk? On Aug 5, 8:58 pm, Xavier Ducrohet x...@android.com wrote: This is a known issue which should be fixed in the next version. Xav On Wed, Aug 5, 2009 at 1:26 AM, Phill Perrymanphill.perry...@googlemail.com wrote: When I create a simple xml layout with a linear layout and add an auto complete text viewer all I get is a NullPointerException: null on the screen. This also happens when I open theautocompletesamples. I am using Eclipse Galileo and the latest android sdk. Am I doing something wrong or is this a bug. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: trying to download latest, but the downloaded doc reports it's not the latest
There is already a bug report filed against it. http://code.google.com/p/android/issues/detail?id=3424 -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 4:46 pm, Curtis. drum...@gmail.com wrote: Hi all, excuse the doutbless newbie question .. but a quick scan of the FAQ didn't turn up a pertinent answer. I've downloaded 2 version of the dev kit now: http://developer.android.com/sdk/1.5_r2/index.htmlhttp://developer.android.com/sdk/1.5_r3/index.html When I download and unpack, and look at RELEASE_NOTES.html in the top level directory there's a big screaming message that goes like: Android 1.1 SDK, Release 1 February 2009 This is NOT the current Android SDK release. Download the current Android SDK The sections below provide an overview of the SDK package. For more information on this SDK release, read the Release Notes. Is this message just incorrect and needs fixing, or are the files I'm downloading with 1.5 in the title really just 1.1 dev kits? yours confusedly.. Curtis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cached GPS info?
Hi, The GPS band and data bands are separate, so you can get GPS information for free even if you don't have any carrier data plans. Even if you don't have wifi, you can still pickup GPS information. Note that accessing websites such as Google Maps requires data plan or wifi connection. However, if you had mapping software that can interpret the GPS signals, then you can have mapping + location app without any internet connection. Key example is GPS navigation system on cars -- they don't have internet connections (well, some may, but they're not necessary for the GPS nav system). To relate to your case, I have a dev G1 phone that I can setup to use on wifi to use Google Maps and GPS for location information. In this scenario, it doesn't use my ATT data plan. On Aug 11, 1:16 pm, Andrés G. Aragoneses kno...@gmail.com wrote: Hi there, I'm thinking about buying an HTC Hero for usage in the US. I don't plan to use it with 3G so I guess I'm fine. However, then I'm wondering, can I use the GPS feature only when I'm connected via WiFi? Is there a way to download GPS maps of a certain city to have them cached in the SD card for its usage when there's no data connection? Thanks, Andres -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
Make sure you have the following line in your AndroidManifest file. uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 10:55 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Jack, posting my reply again... dunno where my previous post went. I have the complete code now but the app force closes on my emulator. Is it because the emulator doesn't support WiFi apps? and force closes when it tries to scan for networks? I thought the emulator would just get stuck at the Starting Scan phase but wouldn't crash... correct? Abhi On Aug 11, 11:41 am, Jack Ha jack...@t-mobile.com wrote: WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Using ExpandableListView inside a Dialog
Thanks for the prompt reply but the complexity of defining ContextMenus and setting up the GetViews associated with the ExpandableList within a Custom Dialog are currently beyond me. However I have got Intent i = new Intent(GetFlagSet.this, PaymentList.class); startActivityForResult(i, 0); working so I can put back the time when I need to crack creating a more complex Custom Dialog. Many thanks Steve On Aug 11, 4:03 pm, Balwinder Kaur (T-Mobile) balwinder.k...@t- mobile.com wrote: Steve, setListAdapter() and getExpandableListView() are methods that belong to the ExpandableListActivity class hence are not available when you extend the Dialog class. You could create a Custom Dialog and Use the ExpandableListView as its view.http://developer.android.com/reference/android/widget/ExpandableListV...http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog Hope this helps, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 7:30 am, Steve Hall st...@milkroundsoftware.co.uk wrote: Hi, I am new to Android and Java. The answer is not obvious (to me) I have been using ExpandableListView inside an activity quite happily. so... public class PaymentList extends ExpandableListActivity{ ExpandableListAdapter mAdapter; ... mAdapter = new MyExpandableListAdapter(); setListAdapter(mAdapter); registerForContextMenu(getExpandableListView()); ...etc I now want PaymentList to be a Dialog so:- public class PaymentList extends Dialog{ cannot resolve setListAdapter or getExpandableListView. How do I get over this (provide the getExpandableListView functionality inside the Dialog) ??? Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Two questions
Hello, This will sound like a dumb question, but what is the return type for Button? Second question is If I have an Application with one main activity and multiple sub-activities, The intent I have in the manifest for the main activity is: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter But what is the correct intent to have for a sub-activity when you want it to launch on a specific event (such as onClick)?: intent-filter category android:name=android.intent.category.LAUNCHER / /intent-filter Thanks for any help. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
tinyang wrote: This will sound like a dumb question, but what is the return type for Button? Button is a class. Classes do not have return types, methods do. But what is the correct intent to have for a sub-activity when you want it to launch on a specific event (such as onClick)?: intent-filter category android:name=/android.intent.category.LAUNCHER/ / /intent-filter Generally, you do not need an IntentFilter for that situation. Just reference the class directly when building the Intent you pass to startActivity(): startActivity(new Intent(this, MyNextActivity.class)); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
Hi!first if you have 2 activities on a app and you put one intent for each one on the phone will find 2 apps with same name but which run different activity..i think is enought to put just on intent in the main activity:today i had tried that and it worked. Hope i help.you... On Aug 11, 2009 11:20 PM, tinyang tiny...@earthlink.net wrote: Hello, This will sound like a dumb question, but what is the return type for Button? Second question is If I have an Application with one main activity and multiple sub-activities, The intent I have in the manifest for the main activity is: intent-filter action android:name=*android.intent.action.MAIN* / category android:name=*android.intent.category.LAUNCHER* / /intent-filter But what is the correct intent to have for a sub-activity when you want it to launch on a specific event (such as onClick)?: intent-filter category android:name=*android.intent.category.LAUNCHER* / /intent-filter Thanks for any help. -- J P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ksoap2
I heartily recommend ksoap2-android : http://code.google.com/p/ksoap2-android/ Caveat: I've not actually used it. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 5:48 am, AndyAndroid43 leebooks.academic...@talktalk.net wrote: I want to download org.ksoap2 for Android in order to design a soap envelope to access a published web service. Can anyone tell me the best / latest version of ksoap2 for Android and where to go to download it ? I'm using the Android plug-in with Eclipse Ganymede. I get rather confused with all the versions of ksoap2 that seem to be available and don't know which is the one to use. Is there a .zip version ? Thanks in advance for your help Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to display icon in status pane.
http://developer.android.com/reference/android/app/NotificationManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 4:11 am, Ramesh Anandhan anandhan.ram...@gmail.com wrote: Hi, I am trying to display an icon in status pane. How I can do this? Regards, Ramesh A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Operating Systems supported by Android Apps
Also FWIW, Ubuntu plans to be able to run Android apps in their upcoming Karmic Koala release this fall. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 9:33 am, midtoad stewart.midwin...@gmail.com wrote: Maybe I'm missing something, but... your Android apps run on the Android operating system. While there are some experimental releases of 'live Android' CDs that allow you to boot up a regular PC into the Android OS, up to now the only commercially available devices that run Android are cellphones. Soon however there will be Android-powered 'smartbooks', i.e. devices that are somewhere between netbooks (small, internet-focused notebooks) and cellphones. On Aug 11, 9:01 am, Maxood maqs...@salsoft.net wrote: What operating systems are supported by Android Operating Systems? On what platforms we can deploy Android apps --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to display icon in status pane.
Here is a good link which gives you an idea what to do http://developer.android.com/guide/topics/ui/notifiers/notifications.html -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 4:11 am, Ramesh Anandhan anandhan.ram...@gmail.com wrote: Hi, I am trying to display an icon in status pane. How I can do this? Regards, Ramesh A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
Thanks Mark. So is this similar to how I should start my subActivity? public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, August 11, 2009 4:47 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Two questions tinyang wrote: This will sound like a dumb question, but what is the return type for Button? Button is a class. Classes do not have return types, methods do. But what is the correct intent to have for a sub-activity when you want it to launch on a specific event (such as onClick)?: intent-filter category android:name=/android.intent.category.LAUNCHER/ / /intent-filter Generally, you do not need an IntentFilter for that situation. Just reference the class directly when building the Intent you pass to startActivity(): startActivity(new Intent(this, MyNextActivity.class)); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/10/2009 6:19 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
tinyang wrote: Thanks Mark. So is this similar to how I should start my subActivity? public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } Well, the startActivity() statement seems OK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
Well my problem now is that I am trying to start the SubActivity on the button click, but when I run it in the emulator, it does not Launch the SubActivity, and I can't figure out why. Here is all of my code: public class MainMenu extends Activity { /** Called when the activity is first created. */ Button guidebtn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //xml file that has the layout needed guidebtn = (Button) findViewById(R.id.guide); //find the button from the xml layout } public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } } What am I missing? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, August 11, 2009 5:41 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Two questions tinyang wrote: Thanks Mark. So is this similar to how I should start my subActivity? public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } Well, the startActivity() statement seems OK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/11/2009 6:27 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: trying to download latest, but the downloaded doc reports it's not the latest
thankyou! On Aug 11, 11:09 am, Jack Ha jack...@t-mobile.com wrote: There is already a bug report filed against it. http://code.google.com/p/android/issues/detail?id=3424 -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cached GPS info?
John P. wrote: Hi, The GPS band and data bands are separate, so you can get GPS information for free even if you don't have any carrier data plans. Even if you don't have wifi, you can still pickup GPS information. Note that accessing websites such as Google Maps requires data plan or wifi connection. However, if you had mapping software that can interpret the GPS signals, then you can have mapping + location app without any internet connection. Key example is GPS navigation system on cars -- they don't have internet connections (well, some may, but they're not necessary for the GPS nav system). Ok, so my question is, can I do this with the GoogleMaps software built-in in the phone? If not, is there any extension/addin or new software that can save GoogleMaps service data to use as a cache when there's no internet connection? If not, any other software installable on the android that contains all this data? To relate to your case, I have a dev G1 phone that I can setup to use on wifi to use Google Maps and GPS for location information. In this scenario, it doesn't use my ATT data plan. You say on wifi, but I'm not referring to non-3G situations only, just if I can use the GPS function when I have no internet connection at all (thanks to the data was collected when I had internet connection). Thanks, Andres On Aug 11, 1:16 pm, Andrés G. Aragoneses kno...@gmail.com wrote: Hi there, I'm thinking about buying an HTC Hero for usage in the US. I don't plan to use it with 3G so I guess I'm fine. However, then I'm wondering, can I use the GPS feature only when I'm connected via WiFi? Is there a way to download GPS maps of a certain city to have them cached in the SD card for its usage when there's no data connection? Thanks, Andres -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android UI related:
Hi, I'm new to Android development. I want to create Two rectangle button on my application. I want to apply swapping logic for that two buttons. For ex: When i press first button it should move to second button and second button will come to first button place. How to do that in Android? Can anyone please provide me the links where i can go and directly catch that logic? Note: I know about developer.android.com website already. thanks. Calve. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android Developer's Guide
So I just started out and I am still reading through the Developer's guide. However I will be taking a flight later on and I will not have access to the internet while flying. I was curious if there was an offline version of the guide, such as a PDF or some other file. Thanks Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: AVD extremely slow...
I am using a very slow old Gateway single core with almost no RAM and it still responds reasonably. I have slow boot up times for the emulator, but it runs fine once started. I am developing using eclipse on ubuntu, that may be part of the difference. On Aug 10, 11:36 am, WaltFromBavaria walter.sperm...@gmx.net wrote: Dear Developpers, I created a 'Hello-World'-application on my PC and saw that the AVD is very slow. When I type text in the simulation, it takes several seconds until the text appears in the text field. Also mouse interactions are very slow. Possibly my PC is too slow. it's a single core AMD with 1.6 GHz Are the simulations on your PCs running reasonably fast ? I just want to make sure it's my PC. Regards, Walter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
tinyang wrote: Well my problem now is that I am trying to start the SubActivity on the button click, but when I run it in the emulator, it does not Launch the SubActivity, and I can't figure out why. Here is all of my code: public class MainMenu extends Activity { /** Called when the activity is first created. */ Button guidebtn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //xml file that has the layout needed guidebtn = (Button) findViewById(R.id.guide); //find the button from the xml layout } public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } } What am I missing? I think you need to spend some more time with some tutorials, such as: http://developer.android.com/guide/tutorials/notepad/index.html 1. You have not connected a View.OnClickListener to your Button 2. Your guide class is unused, and probably should not be there, with your onClick() implementation being moved to the View.OnClickListener you have not set up The Notepad tutorial, linked to above, will demonstrate how to use a Button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android Developer's Guide
Sure, download the SDK and it's at $SDK/docs/guide/. On Aug 11, 5:53 pm, Thomas tot...@gmail.com wrote: So I just started out and I am still reading through the Developer's guide. However I will be taking a flight later on and I will not have access to the internet while flying. I was curious if there was an offline version of the guide, such as a PDF or some other file. Thanks Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Two questions
Wonderful! Thanks a million :) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, August 11, 2009 5:59 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Two questions tinyang wrote: Well my problem now is that I am trying to start the SubActivity on the button click, but when I run it in the emulator, it does not Launch the SubActivity, and I can't figure out why. Here is all of my code: public class MainMenu extends Activity { /** Called when the activity is first created. */ Button guidebtn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //xml file that has the layout needed guidebtn = (Button) findViewById(R.id.guide); //find the button from the xml layout } public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } } What am I missing? I think you need to spend some more time with some tutorials, such as: http://developer.android.com/guide/tutorials/notepad/index.html 1. You have not connected a View.OnClickListener to your Button 2. Your guide class is unused, and probably should not be there, with your onClick() implementation being moved to the View.OnClickListener you have not set up The Notepad tutorial, linked to above, will demonstrate how to use a Button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/11/2009 6:27 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] saving data to text file using eclipse
Hi everyone, I am trying to save data to my google phone G1. I am able to create the text file in sdcard by using the following code in eclipse : //++ try { FileWriter f = new FileWriter(/sdcard/test.txt); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } //+ but I am not able to save any data to the created file. I found this code from http://www.anddev.org/working_with_files-t115.html; which says I can write to text file by running this code. //+++ try { // catches IOException below final String TESTSTRING = new String(hello); FileOutputStream fOut = openFileOutput(/sdcard/test.txt, MODE_WORLD_READABLE); OutputStreamWriter osw = new OutputStreamWriter(fOut); // Write the string to the file osw.write(TESTSTRING); // ensure that everything is // really written out and close osw.flush(); osw.close(); } catch (IOException ioe) { ioe.printStackTrace(); } //+ I run it but I do not see any change in my file. first, I thought my problem is permission to file. The permission setting on my phone is: data: drwxrwx--x sdcard: d---rwxrwx system: drwxr-xr-x would you please help me in either in correcting the code or finding a way to save data into text file (saved in sdcard or the phone) in eclipse environment thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android Developer's Guide
Thanks alot. On Tue, Aug 11, 2009 at 7:01 PM, John P. johnny.d.p...@gmail.com wrote: Sure, download the SDK and it's at $SDK/docs/guide/. On Aug 11, 5:53 pm, Thomas tot...@gmail.com wrote: So I just started out and I am still reading through the Developer's guide. However I will be taking a flight later on and I will not have access to the internet while flying. I was curious if there was an offline version of the guide, such as a PDF or some other file. Thanks Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: saving data to text file using eclipse
Context.openFileOutput() opens a private file associated with this Context's application package for writing and the name of the file to open can not contain path separators. Try this: try { File root = Environment.getExternalStorageDirectory(); if (root.canWrite()){ File f = new File(root, test.txt); FileWriter fw = new FileWriter(f); BufferedWriter out = new BufferedWriter(fw); out.write(Hello world); out.close(); } } catch (IOException e) { } -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 1:57 pm, Saeed saeed.pourbagh...@gmail.com wrote: Hi everyone, I am trying to save data to my google phone G1. I am able to create the text file in sdcard by using the following code in eclipse : //++ try { FileWriter f = new FileWriter(/sdcard/test.txt); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } //+ but I am not able to save any data to the created file. I found this code from http://www.anddev.org/working_with_files-t115.html; which says I can write to text file by running this code. //+++ try { // catches IOException below final String TESTSTRING = new String(hello); FileOutputStream fOut = openFileOutput(/sdcard/test.txt, MODE_WORLD_READABLE); OutputStreamWriter osw = new OutputStreamWriter(fOut); // Write the string to the file osw.write(TESTSTRING); // ensure that everything is // really written out and close osw.flush(); osw.close(); } catch (IOException ioe) { ioe.printStackTrace(); } //+ I run it but I do not see any change in my file. first, I thought my problem is permission to file. The permission setting on my phone is: data : drwxrwx--x sdcard : d---rwxrwx system : drwxr-xr-x would you please help me in either in correcting the code or finding a way to save data into text file (saved in sdcard or the phone) in eclipse environment thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: AVD extremely slow...
Make sure that you have not too much running on your system. It is not necessarily the speed of your processor but the memory of your system. -- don't use firefox -- Eclipse might slow down y system (close it ... may be it helps) -- run emulator via command line -- if you run on Windows use the task manager to find out what else is using a lot of memory -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 9:36 am, WaltFromBavaria walter.sperm...@gmx.net wrote: Dear Developpers, I created a 'Hello-World'-application on my PC and saw that the AVD is very slow. When I type text in the simulation, it takes several seconds until the text appears in the text field. Also mouse interactions are very slow. Possibly my PC is too slow. it's a single core AMD with 1.6 GHz Are the simulations on your PCs running reasonably fast ? I just want to make sure it's my PC. Regards, Walter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cached GPS info?
Andrés G. Aragoneses wrote: John P. wrote: Hi, The GPS band and data bands are separate, so you can get GPS information for free even if you don't have any carrier data plans. Even if you don't have wifi, you can still pickup GPS information. Note that accessing websites such as Google Maps requires data plan or wifi connection. However, if you had mapping software that can interpret the GPS signals, then you can have mapping + location app without any internet connection. Key example is GPS navigation system on cars -- they don't have internet connections (well, some may, but they're not necessary for the GPS nav system). Ok, so my question is, can I do this with the GoogleMaps software built-in in the phone? If not, is there any extension/addin or new software that can save GoogleMaps service data to use as a cache when there's no internet connection? If not, any other software installable on the android that contains all this data? I mean, something like a TomTom navigator or an openstreetmap.org viewer? I'm wondering if this is the correct list to ask this, sorry if not! To relate to your case, I have a dev G1 phone that I can setup to use on wifi to use Google Maps and GPS for location information. In this scenario, it doesn't use my ATT data plan. You say on wifi, but I'm not referring to non-3G situations only, just if I can use the GPS function when I have no internet connection at all (thanks to the data was collected when I had internet connection). Thanks, Andres On Aug 11, 1:16 pm, Andrés G. Aragoneses kno...@gmail.com wrote: Hi there, I'm thinking about buying an HTC Hero for usage in the US. I don't plan to use it with 3G so I guess I'm fine. However, then I'm wondering, can I use the GPS feature only when I'm connected via WiFi? Is there a way to download GPS maps of a certain city to have them cached in the SD card for its usage when there's no data connection? Thanks, Andres -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] App crashes when creating UI
Hi there. I'm just starting out with android and have two questions: 1) I'm trying to invoke a UI using the following method: public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); new BasicUI( ).myView( ); } } public class BasicUI extends Activity { public void myView( ) { setContentView(R.layout.main); // etc... } } but it crashes with: Application has stopped unexpectedly. What am I doing wrong? 2) How do I debug problems like this. I've tried the adb logcat but there weren't any standard Java stack traces from the app crash. I guess android does something different, what should I be doing or looking for? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---