Re: [android-beginners] Re: "adb shell" command gives very inconsistent results

2010-07-08 Thread ca44
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" To:

[android-beginners] Re: Unable to ping host from app but can otherwise

2010-07-08 Thread -DC-
Apparently isReachable doesn't work reliably on Android (needs root?) I ended up using the method described here: http://stackoverflow.com/questions/2935325/android-debugging-inetaddress-isreachable/2935468#2935468 On Jul 4, 10:13 am, -DC- wrote: > Here's my code: > >             InetAddress addr

[android-beginners] Re: Default values for ListPreference

2010-07-08 Thread Bret Foreman
That's exactly what I thought should be done. However, as soon as I put 1 in for the default value, I get the following exception and stack trace. Without a default value set, everything runs fine. I/ActivityManager( 53): Displayed activity com.shipmate/.Preferences: 1158 ms (total 1158 ms) D/da

[android-beginners] Navigation bar in an application

2010-07-08 Thread Emmen Farooq
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 becau

Re: [android-beginners] Default values for ListPreference

2010-07-08 Thread TreKing
On Wed, Jul 7, 2010 at 5:33 PM, Bret Foreman wrote: > I can't understand from the Preferences and ListPreference documents > whether the defaultValue attribute in preferences.xml should be the > text choice displayed in the list, the Integer corresponding to that > choice, or the index of the cho

[android-beginners] Re: Regarding language support

2010-07-08 Thread Indicator Veritatis
If you follow the localization procedures advised in http://developer.android.com/guide/topics/resources/localization.html (especially under "Using Resources for Localization", the system will automatically make sure that unsupported languages will not be displayed in the UI. You do not need to acc

[android-beginners] Re: "adb shell" command gives very inconsistent results

2010-07-08 Thread Indicator Veritatis
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 de

[android-beginners] Re: SharedPreferences.getFloat throwing ClassCastException

2010-07-08 Thread Bret Foreman
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 yo

[android-beginners] Re: GridView not taking focus/selection

2010-07-08 Thread Ribcakes
Unfortunately, removing those attributes and adding/removing declarations in code did nothing. On Jul 8, 5:32 pm, Justin Anderson wrote: > I've never used GridView before so I am not certain about this, but have you > tried taking out the focusable and focusableInTouchMode attributes from your >

[android-beginners] SharedPreferences.getFloat throwing ClassCastException

2010-07-08 Thread Bret Foreman
My preference is described in preferences.xml like this: This behaves very nicely in the preferences view, only allowing the user to enter valid decimal numbers. However, when I call SharedPreferences.getFloat with the "maxTempDegrees" key, it throws a ClassCastException. Beyond the inputType k

[android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-08 Thread Bret Foreman
Just to follow up, you were right, the problem is in SharedPreferences.getFloat. I'm starting a new thread to ask about how that method works exactly. Thanks, Bret -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging

Re: [android-beginners] GridView not taking focus/selection

2010-07-08 Thread Justin Anderson
I've never used GridView before so I am not certain about this, but have you tried taking out the focusable and focusableInTouchMode attributes from your XML? What may be happening is that the GridView itself is stealing focus away from the items that are actually placed inside it... This may not

[android-beginners] GridView not taking focus/selection

2010-07-08 Thread Ribcakes
Hi, In my application, i have a grid view. It is defined by the following xml: I am trying to get the items in the grid view to be focusable, but no matter what i do, isFocusable() always returns false. I am using a custom adapter in it that extends base adapter, but i do not think th

[android-beginners] 2.2 SDK refresh

2010-07-08 Thread Xavier Ducrohet
Developers, We've just released an updated version of the 2.2 SDK. Besides the updated system image to match FRF91, we've put back the search widget that was missing, and we fixed an issue with the backup manager that prevented it from working on the emulator. More info: http://developer.android

Re: [android-beginners] Screen problem

2010-07-08 Thread Mark Murphy
On Thu, Jul 8, 2010 at 2:48 PM, Saket Srivastav wrote: > i want them to appear in landscape as well as portrait view. Use onSaveInstanceState() and onRestoreInstanceState(), or use onRetainNonConfigurationInstance() and getLastNonConfigurationInstance() to propagate your data from the old activi

Re: [android-beginners] Screen problem

2010-07-08 Thread Saket Srivastav
i want them to appear in landscape as well as portrait view. Regards Saket Srivastav On Fri, Jul 9, 2010 at 12:06 AM, Joel Salas wrote: > Do you want them to appear in landscape view? If not, then you can suppress > screen rotation? > > On Thu, Jul 8, 2010 at 11:27 AM, Saket Srivastav < > sa

Re: [android-beginners] Screen problem

2010-07-08 Thread Joel Salas
Do you want them to appear in landscape view? If not, then you can suppress screen rotation? On Thu, Jul 8, 2010 at 11:27 AM, Saket Srivastav wrote: > When i tilt my android screen to horizontal view, the result output that i > show on screen disappear. how can i retain those results? > > Rega

[android-beginners] Screen problem

2010-07-08 Thread Saket Srivastav
When i tilt my android screen to horizontal view, the result output that i show on screen disappear. how can i retain those results? Regards Saket Srivastav -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your

[android-beginners] Re: Access to Download Manager?

2010-07-08 Thread Florp
Unfortunate. :( Are there any third-party libraries available for this? I wrote my own downloader, but don't relish the thought of adding all the features I would like (queueing, notifications, background progress, etc.). Thanks for the response. On Jul 8, 4:42 am, Mark Murphy wrote: > On Wed

[android-beginners] Re: iPhone , Android and Mobile Web, Making friends and looking for coorperation

2010-07-08 Thread Maxood
Hi Robert, Avenue Social is a firm dedicated to design e-business strategies for people like you. We specialize in developing software for the Social Media. Having developed applications for Facebook and smartphones, we have a number of apps in the iPhone and Android app store. Feel free to search

Re: [android-beginners] Play video in resource path

2010-07-08 Thread Carmen Delessio
You can refer to video resource as a string and use it for the path. If your package name is "com.mypackagename", then the resource in the raw directory will be: "android.resource://com.mypackagename/raw/myvideosample" Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com htt

[android-beginners] Re: How to access xml layout

2010-07-08 Thread Connie
Oh yes, I forgot that I hit that one as well. For the people who find this thread in the future, you can also not have underscores in the xml name. Connie On Jul 7, 5:05 pm, Amit Sood wrote: > Connie, > > This was happening because you cannot use letter in caps in the filenameOn > Thu, Jul 8, 2

[android-beginners] Play video in resource path

2010-07-08 Thread Victor Hugo
hi, how do i to play a video in format .3gp with VideoView R.raw.myvideosample the video from my resource path ty -- 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://

[android-beginners] "adb shell" command gives very inconsistent results

2010-07-08 Thread Chris
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

[android-beginners] Regarding language support

2010-07-08 Thread ameya dandekar
Hi, I am currently working on application in which i need to display lists in different languages, so , is there any API to get the supported language list for android ? I am currently using sdk 1.5. And it is observed that Hindi and Hebrew are not supported. So , i need to avoid su

Re: [android-beginners] Access to Download Manager?

2010-07-08 Thread Mark Murphy
On Wed, Jul 7, 2010 at 6:07 PM, Florp wrote: > The Market and Web-Browser apps seem to share a nice download manager; > is there a way to use that in my own Apps? No, sorry, that is not part of the Android SDK at this time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.c

Re: [android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-08 Thread Mark Murphy
Agreed. When you get an exception, scan down the stack trace and look for the "Caused by:" stanza, as that is where the real problem lies. On Thu, Jul 8, 2010 at 12:35 AM, Yousuf Faheem wrote: > I guess its because you are either using String for some other data type or > using some other data ty