[android-developers] How to active the other item in PreferenceActivity’XML

2012-05-19 Thread Perry168
Hi, Following is my XML for PreferenceActivity to use. PreferenceCategory android:title=* Settings* CheckBoxPreference android:key=*key1* android:title=*key1 test* android:defaultValue=*false*

Re: [android-developers] How to active the other item in PreferenceActivity’XML

2012-05-19 Thread TreKing
On Sat, May 19, 2012 at 1:28 AM, Perry168 perry...@gmail.com wrote: When the user clicks the key1 to ‘true’ , the key2 will be active for use. Otherwise key2 will keep in not selectable. Can anyone tell me how doing it?

[android-developers] Re: Linux Commands in Android

2012-05-19 Thread Meryeme
but I am working for now in Emulator how can I do that. and I am developing an application and use strace inside it so will it be easy to use it if I install this software? On 19 mai, 03:12, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Sat, May 19, 2012 at 3:18 AM, Meryeme Ayache

[android-developers] Adjusting Spinner click area.

2012-05-19 Thread Harri Smått
Hey All, I'm facing an annoying problem with Spinners. I'm having a few spinners with max -value set to around 10 but the problem is that it seems very difficult to select the maximum value using touchscreen. I played around with them and it seems so that Spinner value is simply rounded down

[android-developers] Adjusting Spinner click area.

2012-05-19 Thread Harri Smått
Hey All, I'm facing an annoying problem with Spinners. I'm having a few spinners with max -value set to around 10 but the problem is that it seems very difficult to select the maximum value using touchscreen. I played around with them and it seems so that Spinner value is simply rounded down

[android-developers] Re: Adjusting Spinner click area.

2012-05-19 Thread Harri Smått
Oh dear…. It's SeekBar quite obviously I had in mind.. Whoops.. -- H On May 19, 2012, at 12:37 PM, Harri Smått wrote: Hey All, I'm facing an annoying problem with Spinners. I'm having a few spinners with max -value set to around 10 but the problem is that it seems very difficult to

[android-developers] Adjusting SeekBar selection click area.

2012-05-19 Thread Harri Smått
Hey All, I'm facing an annoying problem with SeekBars. I'm having a few of them with max -value set to around 10 and the problem is that it seems very difficult to select the maximum value using touchscreen. I played around with them and it seems so that SeekBar progress -value is simply

Re: [android-developers] How to active the other item in PreferenceActivity’XML

2012-05-19 Thread Perry168
TreKing, Thanks a lot!! TreKing於 2012年5月19日星期六UTC+8下午4時15分26秒寫道: On Sat, May 19, 2012 at 1:28 AM, Perry168 perry...@gmail.com wrote: When the user clicks the key1 to ‘true’ , the key2 will be active for use. Otherwise key2 will keep in not selectable. Can anyone tell me how doing

Re: [android-developers] Re: Linux Commands in Android

2012-05-19 Thread Nikolay Elenkov
On Sat, May 19, 2012 at 6:26 PM, Meryeme meryemeaya...@gmail.com wrote: but I am working for now in Emulator how can I do that. and I am developing an application and use strace inside it so will it be easy to use it if I install this software? Did you bother to read the first few lines of

[android-developers] Re: surface (identity=xxxxx) is invalid, err=-19 (no such device)

2012-05-19 Thread Tamás Kovács
It happens exclusively when I suddenly turn off the display when my app is started again, i.e. the sequence is something like: Activity.onStart() - Activity.onResume() - GLSurfaceView.onResume() - Activity.onPause() - GLSurfaceView.onPause() - Surface is invalid (no such device) in log An

[android-developers] Alarm BroadcastReceiver fog

2012-05-19 Thread Bill Michaelson
I've placed the stub of some new logic into a Service that will rely on AlarmManager to periodically goose the service. I've been using adb shell dumpsys alarm and logcat to trace it, and it seems that I have been able to set the alarm and I see evidence that the alarm is tripped. But I don't

[android-developers] Bluetooth Peer to Peer network in Android..

2012-05-19 Thread sudheesh ap
Hi Friends, Any idea about a p2p protocol to implement on Android? What about the chord protocol? Can we use it on Android Bluetooth API? Can we make an Android Game based on this p2p platform? Please reply if anyone have the idea about this. Thanks in advance, Sudheesh A P

Re: [android-developers] Alarm BroadcastReceiver fog

2012-05-19 Thread Mark Murphy
On Sat, May 19, 2012 at 10:14 AM, Bill Michaelson wmmichael...@gmail.com wrote: In the startup logic of my service is the code which instantiates an inner class (Alarm) which serves as the BroadcastReceiver and also provides the utility function to set the alarm...      if (!pulse.isAlive())

[android-developers] Re: Problem with Emulator

2012-05-19 Thread ASHISH
On May 19, 10:32 am, akash khandare akashsap...@gmail.com wrote: hi, dear, pl. check for the size of the screen , then give size of the screen and the emulator automatically takes the resolution whichever is supported. shrinivas 9890369077 Hi Akash Thanks For your reply, But i had checked

[android-developers] Re: Alarm BroadcastReceiver fog

2012-05-19 Thread Bill Michaelson
Bingo. My fog enveloped the precise use of Intents, as you undoubtedly inferred. The alarm is being caught in the receiver now. I thank you for your very direct, clear identification of the problem and the equally clear solution, Further to the broader scope of the application: The application

Re: [android-developers] Re: Alarm BroadcastReceiver fog

2012-05-19 Thread Mark Murphy
On Sat, May 19, 2012 at 11:45 AM, Bill Michaelson wmmichael...@gmail.com wrote: For one, would the notification icon remain? Only between your calls to startForeground() and when the service goes away. Also, would it be advantageous in the event that my Service is in a period of short

Re: [android-developers] Linux Commands in Android

2012-05-19 Thread Kristopher Micinski
Note that no matter what most of this will probably require a rooted device. Why do you want to include linux apps? To be able to use them from your programs (that's a *bad* idea), or to be able to turn your device into a linux box for fun (much more acceptable idea, as it implies you aren't

[android-developers] Re: AccessibilityEvent in monkey

2012-05-19 Thread Carl H.
how did you initialize the variable? On Thursday, 2 February 2012 00:31:22 UTC, avi wrote: I found out the problem. sConnectionId variable has to be initialized to -1 instead of 0 On Feb 1, 9:43 am, avi avinanku...@gmail.com wrote: I would really appreciate it if someone could help me

[android-developers] FTP for android!

2012-05-19 Thread Talha Qamar
Hi i need some assistance on android apps development.I wanna make/ write a simple file transfer protocol(ftp) for android devicesUser simply selects some files from his smart phones and then ftp transfer these files to specific web server.Please i need some help...If you do have some ideas,

[android-developers] protected static boolean

2012-05-19 Thread Kristoffer
Hello. Iam trying to create a If statment based on thsi protected static boolean. protected static boolean isProInstalled(Context context) { PackageManager manager = context.getPackageManager(); if (manager.checkSignatures(context.getPackageName(),

Re: [android-developers] FTP for android!

2012-05-19 Thread Raghav Sood
Your question has already been answered before, and there is still no need to cross post to so many lists. This is standard Java FTP. It has nothing to do with Android itself. Thanks On Sun, May 20, 2012 at 12:12 AM, Talha Qamar talha.kicsi...@gmail.comwrote: Hi i need some assistance on

Re: [android-developers] FTP for android!

2012-05-19 Thread Kristopher Micinski
Please quit cross posting and sending your question multiple times... kris On Sat, May 19, 2012 at 2:42 PM, Talha Qamar talha.kicsi...@gmail.com wrote: Hi i need some assistance on android apps development.I wanna make/ write a simple file transfer protocol(ftp) for android devicesUser

Re: [android-developers] FTP for android!

2012-05-19 Thread Talha Qamar
actually i couldn't get the right solution of my problem. On Sat, May 19, 2012 at 11:47 PM, Kristopher Micinski krismicin...@gmail.com wrote: Please quit cross posting and sending your question multiple times... kris On Sat, May 19, 2012 at 2:42 PM, Talha Qamar talha.kicsi...@gmail.com

Re: [android-developers] FTP for android!

2012-05-19 Thread Kristopher Micinski
Right, but you posted to at least two lists, three times... kris On Sat, May 19, 2012 at 3:00 PM, Talha Qamar talha.kicsi...@gmail.com wrote: actually i couldn't get the right solution of my problem. On Sat, May 19, 2012 at 11:47 PM, Kristopher Micinski krismicin...@gmail.com wrote:

Re: [android-developers] protected static boolean

2012-05-19 Thread Jason Teagle
And that will throw me a NullPointerException. I guess that its something simple, but maybe somebody could point me in the right direction here? This is the variable you have declared as the parameter: protected static boolean isProInstalled(Context __context__) { This is what you then

[android-developers] Re: protected static boolean

2012-05-19 Thread Kristoffer
Well the problem is that iam trying to make somthing happen that iam not really understand (iam trying to learn) So what i wanna do is to grabb the return true or the return false so that i could create my if statement. On 19 Maj, 21:09, Jason Teagle teagle.ja...@gmail.com wrote: And that will

Re: [android-developers] Bluetooth Peer to Peer network in Android..

2012-05-19 Thread Kristopher Micinski
On Sat, May 19, 2012 at 10:34 AM, sudheesh ap hellosud...@gmail.com wrote: Hi Friends,           Any idea about a p2p protocol to implement on Android? What about the chord protocol? Can we use it on Android Bluetooth API? Can we make an Android Game based on this p2p platform?     Please

Re: [android-developers] Re: protected static boolean

2012-05-19 Thread Jason Teagle
Well the problem is that iam trying to make somthing happen that iam not really understand (iam trying to learn) So what i wanna do is to grabb the return true or the return false so that i could create my if statement. In that respect - using the static function call to grab the result for an

[android-developers] Re: protected static boolean

2012-05-19 Thread Kristoffer
Thanks for clearing this up for me, Now i understand what i did, and offcourse i did send null to context and that will not work. now i do like this: if (isProInstalled(this) and then it will be PackageManager manager = this.getPackageManager(); I have to say that your answer was very good,

Re: [android-developers] Re: protected static boolean

2012-05-19 Thread Jason Teagle
and then it will be PackageManager manager = this.getPackageManager(); Not quite. In a static method, there is no 'this' because the method does not belong to an instance of the class - but to the class as a whole. You will find that it won't compile. Inside your isProInstalled() method,

[android-developers] forcing a view to refresh.

2012-05-19 Thread James Taber
This one has me stumped. I am using a pl.polidea.treeview.AbstractTreeViewAdapter to create a collapsible table of overlay contents displayed in a sliding drawer object. Every object that has a child node has a button to collapse or expand the node. When I first populate the view, my