[android-beginners] Re: Navigation bar in an application
Two techniques can help, sub-class controls and layout fragments. You probably only need to use the 1st one if you navigation is dynamic. Create sub-classes for some or all of the controls in your navigation bar (which classes depends on your design). This lets you move the code for the navigation bar out of each activity. http://developer.android.com/intl/fr/guide/topics/ui/custom-components.html Create a layout fragment for your navigation bar using a combination of your sub-classed controls and normal controls. Then use the include / statement to insert your layout fragement into the each of your activities. http://developer.android.com/intl/fr/resources/articles/layout-tricks-reuse.html /Richard On Jul 9, 2:53 am, Emmen Farooq farooq.em...@gmail.com wrote: I need to include a navigation bar at bottom of my application , now my application has several activities and I want the navigation bar to be stay across the whole app , so would I include the code for it in every single activity or is there a more optimal way, -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Passing an int value from one activity to another
What 'putIntExtra'? There is a getIntExtra, there is a putExtra, but I don't see a 'putIntExtra'. Besides: surely the type conversion rules of Java guarantee that he is calling putExtra(String, int) here. On Jul 7, 9:38 pm, Yousuf Faheem yousuf.syed@gmail.com wrote: Hi, Use putIntExtra instead of putExtra() Thanks Regards, Yousuf Syed On Wed, Jul 7, 2010 at 7:44 PM, Traveler jadkins...@gmail.com wrote: I am a relative newbie to Android and am trying to learn how to pass an int value to another activity. Main activity uses a ListView. The following onitemClick method is supposed to communicate the position value to the playalphabet activity. public void onItemClick(AdapterView? a, View v, int position, long id) { Intent intent = new Intent(v.getContext(), playalphabet.class); intent.putExtra(selections, position); startActivityForResult(intent, 0); } When a button click is detected in the playalphabet activity, it is supposed to retrieve the position value, but position is always zero. Any advice is appreciated. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Passing an int value from one activity to another
How are you retrieving the int extra in the PlayAlphabet activity? The way you start the activity with the extra seems fine.. On Thu, Jul 8, 2010 at 1:44 AM, Traveler jadkins...@gmail.com wrote: I am a relative newbie to Android and am trying to learn how to pass an int value to another activity. Main activity uses a ListView. The following onitemClick method is supposed to communicate the position value to the playalphabet activity. public void onItemClick(AdapterView? a, View v, int position, long id) { Intent intent = new Intent(v.getContext(), playalphabet.class); intent.putExtra(selections, position); startActivityForResult(intent, 0); } When a button click is detected in the playalphabet activity, it is supposed to retrieve the position value, but position is always zero. Any advice is appreciated. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Navigation bar in an application
Thnk you ! On Fri, Jul 9, 2010 at 12:00 PM, RichardC richard.crit...@googlemail.com wrote: Two techniques can help, sub-class controls and layout fragments. You probably only need to use the 1st one if you navigation is dynamic. Create sub-classes for some or all of the controls in your navigation bar (which classes depends on your design). This lets you move the code for the navigation bar out of each activity. http://developer.android.com/intl/fr/guide/topics/ui/custom-components.html Create a layout fragment for your navigation bar using a combination of your sub-classed controls and normal controls. Then use the include / statement to insert your layout fragement into the each of your activities. http://developer.android.com/intl/fr/resources/articles/layout-tricks-reuse.html /Richard On Jul 9, 2:53 am, Emmen Farooq farooq.em...@gmail.com wrote: I need to include a navigation bar at bottom of my application , now my application has several activities and I want the navigation bar to be stay across the whole app , so would I include the code for it in every single activity or is there a more optimal way, -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: SharedPreferences.getFloat throwing ClassCastException
You provide default value as 100.0 or 100F On Jul 9, 4:26 am, Bret Foreman bret.fore...@gmail.com wrote: In the above post, please replace how can I tell getFloat to parse the user input as a long? with how can I tell getFloat to parse the user input as a float? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] new application-My holidays
hello all I have launched my new application My holidays. Please visit the link given and give your valuable comments,reviews and suggestions, so that I can enhance it further and make it more useful before launching it on Android market. http://andappstore.com/AndroidApplications/apps/My_Holidays *My Holidays 1.0* An application which allows a user to see all the holidays of U.S, U.K, Canada and India. Save time by viewing holidays of current month on opening the application. Search and view holiday of any country filtered by year, month and religion. View details related to each holiday. Features: - Available for Android 1.5+ - Handpicked data of 5 years of all countries - Includes an exhaustive list of all public, religious and general holidays - Slick easy to use interface - Possibility to filter holidays by countries, religion and year - Free from Ads - No permissions required -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: adb shell command gives very inconsistent results
Get the latest SDK: http://developer.android.com/sdk/index.html Get the latest tools: http://developer.android.com/sdk/tools-notes.html -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Jul 8, 2010 at 10:17 PM, c...@comcast.net wrote: Thank you very much for your response. I will try your suggestions. Making sure I have an up-to-date version of adb and all of the other tools is a good idea. Can you please tell me how to go about doing that? -Chris - Original Message - From: Indicator Veritatis mej1...@yahoo.com To: Android Beginners android-beginners@googlegroups.com Sent: Thursday, July 8, 2010 5:48:42 PM Subject: [android-beginners] Re: adb shell command gives very inconsistent results This sounds somewhat different from the problems I have seen with adb. So I am not sure how helpful my advice will be, but what I would do is: before ever even entering the shell of adb, make sure that adb can see the emulator with adb devices. Yes, unlike the distinction between emulator and device for the -e and -d options, adb devices will list both real hardware devices (of which you have none) and emulator instances (all of them). If you don't see the emulator instance even after launching the emulator and seeing the home screen, then try adb kill-server followed by adb restart. If that gets adb to see the emulator instance, then go on to adb shell. The one other suggestion I have is to make sure that you are using an uptodate version of adb -- and for that matter, of all the tools. On Jul 8, 5:55 am, Chris c...@comcast.net wrote: I do not own an Android phone and am working exclusively in the Eclipse/emulator environment on my laptop. When I type in the adb shell cmd from the tools directory I get very inconsistent results. Sometimes it says error: device not found. Sometimes it says error: device offline. If I start a small application and continue to type in the adb shell command until the emulator starts I get the 2 errors I just mentioned in that order and then the adb shell command actually works and I can see the # prompt, and type in commands such as ls -l and see the results. Then as I'm working in the shell it suddenly ends and I'm back at the Windows prompt. I am running on Windows XP Pro Version 2002 Service Pack 3. Thank You in advance to anyone who would like to offer some help with this situation. -Chris -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: SharedPreferences.getFloat throwing ClassCastException
Changing it to 100F didn't make any difference. It still throws. I also note that getInt is throwing the same exception when I try to access the value of a ListPreference key where no default is set. Any other ideas? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Consolidating two SharedPreferences issues.
I've got two different threads going here and it looks like the two issues are related. There's something fundamentally broken in my implementation of SharedPreferences. One thread is entitled SharedPreferences.getFloat throwing ClassCastException and the other is Default values for ListPreference . Here are the symptoms: First SharedPreferences.getInt and SharedPreferences.getFloat are both throwing ClassCastException. SharedPreferences.getBoolean is working fine. In addition, ListPreference is stopping with an uncaught exception when I attempt to set the preference from the screen, but only if there is a defaultValue set. Is it possible that I've left off some SharedPreferences housekeeping? Here's how I get the SharedPreferences object (in Service.onCreate) when I'm setting up to call getInt, getFloat, etc: myPreferences = PreferenceManager.getDefaultSharedPreferences( getApplicationContext() ); Here's how I launch the preferences editor from my main Activity screen: startActivity( new Intent( Intent.ACTION_VIEW ).setClass(getApplicationContext(),Preferences.class) ); Is there anything I'm missing that might be causing these behaviors? Here's preferences.xml: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; PreferenceCategory android:title=Event Settings android:summary=Enable/Disable Events android:key=EventSettings CheckBoxPreference android:key=enableDrop android:defaultValue=true android:summary=Detect Dropped Package android:title=Drop android:persistent=true/ CheckBoxPreference android:defaultValue=true android:title=Tip android:summary=Detect Upset Package android:key=enableTip android:persistent=true/ CheckBoxPreference CheckBoxPreference android:key=enableFix android:defaultValue=false android:title=Fix android:summary=Generate Position Fixes android:persistent=true/ CheckBoxPreference CheckBoxPreference android:key=enableOvertemp android:defaultValue=false android:title=Too Hot android:summary=Detect excessive heat android:persistent=true/ CheckBoxPreference CheckBoxPreference android:key=enableUndertemp android:defaultValue=false android:title=Too Cold android:summary=Detect excessive cold android:persistent=true/ CheckBoxPreference CheckBoxPreference android:key=enableOpen android:defaultValue=false android:title=Open android:summary=Detect package opened android:persistent=true/ CheckBoxPreference /PreferenceCategory PreferenceCategory android:title=Basic Parameters android:key=BasicParameters EditTextPreference android:key=maxForceGs android:summary=Maximum G-force loading android:title=Max Force android:persistent=true android:inputType=numberDecimal android:defaultValue=10F/ EditTextPreference EditTextPreference android:key=maxTipDegrees android:summary=Maximum tip angle android:title=Max Tip android:persistent=true android:inputType=numberDecimal android:defaultValue=45F/EditTextPreference EditTextPreference android:key=maxTempDegrees android:summary=Maximum temperature android:title=Max Temp android:persistent=true android:inputType=numberDecimal android:defaultValue=100F/EditTextPreference EditTextPreference android:key=minTempDegrees android:summary=Minimum temperature android:title=Min Temp android:persistent=true android:inputType=numberDecimal android:defaultValue=35F/EditTextPreference ListPreference android:entryValues=@array/tempUnitsInts android:entries=@array/tempUnitsNames android:title=Units android:key=TempUnits android:summary=Temperature Units android:persistent=true/ListPreference EditTextPreference android:key=fixPeriod android:summary=Seconds between location fixes android:title=Fix Period android:persistent=true android:inputType=numberDecimal android:defaultValue=1800F/EditTextPreference /PreferenceCategory PreferenceCategory android:title=Advanced Parameters android:key=AdvancedParameters EditTextPreference android:key=maxForceHystPercent android:summary=G-force hysteresis android:title=Force Hyst android:persistent=true android:inputType=numberDecimal android:defaultValue=20F/EditTextPreference EditTextPreference android:key=maxTipHystDegrees android:summary=Maximum tip angle hysteresis android:title=Tip Hyst android:persistent=true android:inputType=numberDecimal android:defaultValue=10F/EditTextPreference EditTextPreference android:key=tempHystDegrees android:summary=Over/undertemp hysteresis android:title=Temp Hyst android:persistent=true android:inputType=numberDecimal android:defaultValue=5F/EditTextPreference EditTextPreference android:key=maxLightHystPercent android:summary=Percentage of hysteresis in light sensor android:title=Light Hyst android:persistent=true android:inputType=numberDecimal android:defaultValue=20F/ EditTextPreference EditTextPreference android:key=maxTempHystPercent android:title=Max Temp Hyst android:persistent=true android:inputType=numberDecimal
Re: [android-beginners] Consolidating two SharedPreferences issues.
On Fri, Jul 9, 2010 at 1:58 PM, Bret Foreman bret.fore...@gmail.com wrote: First SharedPreferences.getInt and SharedPreferences.getFloat are both throwing ClassCastException. That is because the preferences in question are not integers or floats. The ClassCastException will tell you what the actual type of data is that you are dealing with (probably a string). Retrieve the preference in its native format, then convert it as needed in Java code. In addition, ListPreference is stopping with an uncaught exception when I attempt to set the preference from the screen, but only if there is a defaultValue set. AFAIK, you cannot have a ListPreference of an integer-array. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Calling localhost web service from emulator
Hi all. I faced a weird problem the last days. I had to call a restful web service from the emulator. The web service was deployed on the localhost application server and when i tried to access it via the browser everything was fine. When i tried to access is from the emulator with the following IP (127.0.0.1/) it did not work. Then i changed the IP to my actual network's IP and it worked. Does anybody know why this is happening? Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Creating a populated sqlite database
Hi, I am trying to create a pre-populated sqlite database to be shipped with my application. The database is to contain three columns. | ID | Name | URL | and possibly several hundred rows. Is there a way I can create this in /res or java code smartly ? Forgive me I am fairly new to Java and have little experience with SQL. Thanks very much in advance for you help Rodney -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Calling localhost web service from emulator
127.0.0.1 is the loopback (local address) for the emulator. 127.0.0.1 is the local system; so when you are on the emulator it is the emulator, when you are on your host it is the host. 127.0.0.1 can never cross a system boundary (for a given value of never). /Richard On Jul 9, 1:04 pm, NIK nikolaos.katsa...@gmail.com wrote: Hi all. I faced a weird problem the last days. I had to call a restful web service from the emulator. The web service was deployed on the localhost application server and when i tried to access it via the browser everything was fine. When i tried to access is from the emulator with the following IP (127.0.0.1/) it did not work. Then i changed the IP to my actual network's IP and it worked. Does anybody know why this is happening? Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Making option menu background non-translucent
So, it's impossible then??? On Jul 7, 1:46 pm, DonFrench dcfre...@gmail.com wrote: The optionsmenuappears to have a translucent background by default. Is there a way to change that to non-translucent, non-transparent. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Making option menu background non-translucent
*So, it's impossible then???* Not necessarily, it just means that no one on this group knows the answer. You can try stackoverflow or the android developers group as well. Or you can also try googling and seeing if anyone has a tutorial or something about this... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jul 9, 2010 at 12:18 PM, DonFrench dcfre...@gmail.com wrote: So, it's impossible then??? On Jul 7, 1:46 pm, DonFrench dcfre...@gmail.com wrote: The optionsmenuappears to have a translucent background by default. Is there a way to change that to non-translucent, non-transparent. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Default values for ListPreference
On Thu, Jul 8, 2010 at 9:29 PM, Bret Foreman bret.fore...@gmail.com wrote: However, as soon as I put 1 in for the default value, I get the following exception and stack trace. Hmmm. Strange. Comparing you layout to my own, I realized that I always use string-array, even for ints, and then just parse to the appropriate type, though your way seems to be more correct. Perhaps try string-array and parsing the values to see if that works? If so, might be bug ... I'd double check the bug database to see if one exists for this. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Consolidating two SharedPreferences issues.
If not an integer-array, what should be the type of the parallel array for the ListPreference? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Consolidating two SharedPreferences issues.
string-array On Fri, Jul 9, 2010 at 2:37 PM, Bret Foreman bret.fore...@gmail.com wrote: If not an integer-array, what should be the type of the parallel array for the ListPreference? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] changing the shape of buttons
is it possible to make a button appear non-rectangular in android ? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] changing the shape of buttons
Not the default button AFAIK... You would need to make your own to do that. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jul 9, 2010 at 1:20 PM, Emmen Farooq farooq.em...@gmail.com wrote: is it possible to make a button appear non-rectangular in android ? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] changing the shape of buttons
thnk u On Sat, Jul 10, 2010 at 12:29 AM, Justin Anderson janderson@gmail.com wrote: Not the default button AFAIK... You would need to make your own to do that. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jul 9, 2010 at 1:20 PM, Emmen Farooq farooq.em...@gmail.com wrote: is it possible to make a button appear non-rectangular in android ? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] changing the shape of buttons
On Fri, Jul 9, 2010 at 2:29 PM, Justin Anderson janderson@gmail.comwrote: You would need to make your own to do that. Or simply change the image shown on it to make it appear that way ... - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] changing the shape of buttons
On Fri, Jul 9, 2010 at 5:51 PM, TreKing treking...@gmail.com wrote: On Fri, Jul 9, 2010 at 2:29 PM, Justin Anderson janderson@gmail.com wrote: You would need to make your own to do that. Or simply change the image shown on it to make it appear that way ... Actually, it would have to be the background that is changed, to make it appear non-rectangular. Since the background is a StateListDrawable defined via an XML drawable resource, this is eminently doable, but not something you can do in five minutes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Consolidating two SharedPreferences issues.
I'm all fixed on these issues. Thanks for the help. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: SharedPreferences.getFloat throwing ClassCastException
This issue is resolved. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] framelay out
why does removing framelayout block from the main.xml in the following app crashes it http://developer.android.com/resources/tutorials/views/hello-tabwidget.html , thanks in advance for any help -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] framelay out
Because TabHost expects a FrameLayout to hold the contents of the tabs. On Fri, Jul 9, 2010 at 7:21 PM, Emmen Farooq farooq.em...@gmail.com wrote: why does removing framelayout block from the main.xml in the following app crashes it http://developer.android.com/resources/tutorials/views/hello-tabwidget.html , thanks in advance for any help -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] framelay out
ohh kii , never would have figured that out on my own , thanks On Sat, Jul 10, 2010 at 4:29 AM, Mark Murphy mmur...@commonsware.com wrote: Because TabHost expects a FrameLayout to hold the contents of the tabs. On Fri, Jul 9, 2010 at 7:21 PM, Emmen Farooq farooq.em...@gmail.com wrote: why does removing framelayout block from the main.xml in the following app crashes it http://developer.android.com/resources/tutorials/views/hello-tabwidget.html , thanks in advance for any help -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] setting age
Im making an app which would have to get users age , now what would be the appropriate control ? I have to make something like a scroll with numbers in it , but the user shouldnt enter from the keyboard , he should have something to select from , many thanks indeed -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] App installation
On Jul 7, 2010, at 6:52 PM, Varun Khanduja wrote: I asked a question yesterday about a application I am trying to make based on OCR and some other points. I tried to look for applications which have individual elements like current location finder, Camera capture etc. I tried to install individual elements after modifying some source codes, but I am not sure how I can install on my phone. I just plug my phone in to my computer via the USB cable that came with it, and then when I run the application from inside Eclipse (with the emulator off) the application is loaded on to my phone. Mark -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Making option menu background non-translucent
Yeah, I spent quite a few hours searching and researching with no luck but I did not try stackoverflow. Will do so. Thanks. On Jul 9, 11:22 am, Justin Anderson janderson@gmail.com wrote: *So, it's impossible then???* Not necessarily, it just means that no one on this group knows the answer. You can try stackoverflow or the android developers group as well. Or you can also try googling and seeing if anyone has a tutorial or something about this... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jul 9, 2010 at 12:18 PM, DonFrench dcfre...@gmail.com wrote: So, it's impossible then??? On Jul 7, 1:46 pm, DonFrench dcfre...@gmail.com wrote: The optionsmenuappears to have a translucent background by default. Is there a way to change that to non-translucent, non-transparent. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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