[android-developers] Re: How to Handle the Duak Sim Settings

2012-10-22 Thread 钟佳兴
We have many China cell phones dual SIM card support, say, aliyun system (according to Android modifications), you can go to research -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@g

[android-developers] Re: How to handle the key and mouse events for remote desktop?

2012-06-29 Thread RichardC
Have a look at "2X Client RDP/Remote Desktop" on the Google Play and see what they have done, use virtual keyboards and mice. I have nothing to do with the development or marketing of the above application I just use it. On Friday, June 29, 2012 2:24:29 PM UTC+1, mini wrote: > > Hi, > > I am tr

[android-developers] Re: How to handle dismiss of DialogFragment (support lib) while app is in background

2012-05-30 Thread Chuck Krutsinger
By the way, I'm using your "Programming Android" book as I develop. On Sunday, May 27, 2012 8:20:39 PM UTC-6, G. Blake Meike wrote: > > I think this problem may be more complex than you imply. In general, the > Activity may be in a pretty inconsistent state (Stopped, OS thinks it is > dead) whe

[android-developers] Re: How to handle dismiss of DialogFragment (support lib) while app is in background

2012-05-30 Thread Chuck Krutsinger
I already have a solid way to handle if the activity is stopped. What I'm struggling with is how to handle if the activity is paused due to being in the background. If the Activity is paused, then calling Android Compatibility Package's (ACP) DialogFragment.dismiss() triggers an InvalidStateE

[android-developers] Re: How to handle dismiss of DialogFragment (support lib) while app is in background

2012-05-27 Thread G. Blake Meike
I think this problem may be more complex than you imply. In general, the Activity may be in a pretty inconsistent state (Stopped, OS thinks it is dead) when your AsyncTask returns. I can't imagine anything that you could do, in that circumstance, that would work. Is there a way to attach the

Re: [android-developers] Re: How to handle the volume keys??

2012-05-06 Thread pishgaman it
I have same problem and I had read all reply. but, if it's not possible how some App like real player can handle volume keys to control out put voice while screen off ? thank you in advance, On Friday, February 18, 2011 9:20:34 PM UTC+3:30, Dianne Hackborn wrote: > > Sorry no it is not. > > On F

Re: [android-developers] Re: How to handle the volume keys??

2012-05-06 Thread pishgaman it
I have same problem and I read all reply but, if it's not possible so how some App like *real player* can handle volume keys while screen off to control out put voice? thank you. On Friday, February 18, 2011 9:20:34 PM UTC+3:30, Dianne Hackborn wrote: > > Sorry no it is not. > > On Fri, Feb 18,

[android-developers] Re: How to handle unicode expression included in String

2012-03-24 Thread Jaden Pak
I found the solution. Unicode expressions like """ can be regarded as one of HTML string. So, I made the function which convert html string into a normal String. public static String convertHtmlTagInString(String orignalString) { Spanned spanned = Html.fromHtml(orignalStr

[android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread Amit
Can't you set id as per array index and when button pressed, you can get id and do processing as per that. Thanks, -A On Aug 25, 9:28 pm, Drezden wrote: > Can you create a List and add a reference onto it for > each of your buttons, then run a loop to assign the onClickListener? > Then within th

[android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread Drezden
Can you create a List and add a reference onto it for each of your buttons, then run a loop to assign the onClickListener? Then within the onClick(View v) figure out which button was pressed based on the v value and handle it accordingly? I've done this before when I only want one button selected

[android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread hoyski
On Aug 25, 8:34 am, Hitendrasinh Gohil wrote: > There are 9 buttons in one box.I m repeating this box 9 times.There are 9 > different ids assign to 9 diff buttons. > > But how to determine button is clicked from which box as there are 9 same > boxes? > There are a couple of different ways. One

Re: [android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread Hitendrasinh Gohil
There are 9 buttons in one box.I m repeating this box 9 times.There are 9 different ids assign to 9 diff buttons. But how to determine button is clicked from which box as there are 9 same boxes? On Thu, Aug 25, 2011 at 5:48 PM, hoyski wrote: > On Aug 25, 7:47 am, Hitendrasinh Gohil > wrote: >

[android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread hoyski
On Aug 25, 7:47 am, Hitendrasinh Gohil wrote: > Hi, > > I am having 3x3 array which contains 3x3 imagebuttons array.I am > repeating 3x3 imagebuttons 9 times. > how can i handle click events for that? Assign a unique ID to each button. Assign the same OnClickListener to each button. In the OnClic

[android-developers] Re: How to handle sequential touches?

2011-08-22 Thread Indicator Veritatis
How? That is a logic problem. You now have the Android specific information you need to solve it; only you can be 100% sure of what the logic problem lying before you is. I emphasize this because the description you give in another post of a proposed method for solving this is really quite differe

Re: [android-developers] Re: How to handle sequential touches?

2011-08-21 Thread TreKing
On Sun, Aug 21, 2011 at 11:36 AM, Zwiebel wrote: > If I make a variable with number 0 and when the user clicks on the first > image, I increase it with one, then I check the variable and if it is 1 I > make the click for the second picture, It will be good? > That should work.

[android-developers] Re: How to handle sequential touches?

2011-08-21 Thread Zwiebel
If I make a variable with number 0 and when the user clicks on the first image, I increase it with one, then I check the variable and if it is 1 I make the click for the second picture, It will be good? On aug. 19, 21:26, Zwiebel wrote: > Thanks, I think that it will help me a lot. And yes how d

[android-developers] Re: How to handle sequential touches?

2011-08-19 Thread Zwiebel
Thanks, I think that it will help me a lot. And yes how did you say I'm not English :) One more question : How I can "check these flags to see whether or not the user is selecting in the ORDER I want? On aug. 19, 20:29, Indicator Veritatis wrote: > You also replied so briefly, if as a non-native

[android-developers] Re: How to handle sequential touches?

2011-08-19 Thread Indicator Veritatis
You also replied so briefly, if as a non-native English speaker, he was uncertain how you meant each word, he would not GET that "general idea". So I will restate it in a manner that should be more clear: 1) make each separate touchable thing a separate View 2) write one touch listener for each Vi

Re: [android-developers] Re: How to handle sequential touches?

2011-08-19 Thread TreKing
On Fri, Aug 19, 2011 at 4:51 AM, Zwiebel wrote: > Thanks for the answer. Can you give me a short example please? I'm only > beginner in android and... ok I'm beginner :) > I *could*, but that would rob you of valuable experience. I gave you the general idea - now just try something. If it doesn'

[android-developers] Re: How to handle sequential touches?

2011-08-19 Thread Zwiebel
Thanks for the answer. Can you give me a short example please? I'm only beginner in android and... ok I'm beginner :) On aug. 19, 01:15, TreKing wrote: > On Thu, Aug 18, 2011 at 3:06 PM, Zwiebel wrote: > > But I don't know how I can handle multiple touch events. I know that I need > > an on touc

[android-developers] Re: How to handle unknow host exception?

2011-07-26 Thread Jan
If the "piece of code" throws the exception you want - then you must simply catch it - and then display the result: String err; bollean error_set; try{ error_set=false; //piece of code }catch(UnknowHostException uh){ err=new String(uh.getMessage()); error_set=true; // now if err is set

[android-developers] Re: how to handle web service respose

2011-04-01 Thread gjs
Hi, Response looks like JSON, read up on http://developer.android.com/reference/android/util/JsonReader.html and other JSON classes in Android. Maybe find out how it is intended to be parsed in .NET and mimic that in Android. Regards On Apr 1, 6:27 pm, Pinkesh Gupta wrote: > hi > > i am new to

Re: [android-developers] Re: How to handle the volume keys??

2011-02-18 Thread Dianne Hackborn
Sorry no it is not. On Fri, Feb 18, 2011 at 6:14 AM, Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com> wrote: > Thanks! I managed to do that, but actually I was expecting to be able > to receive the keys while the phone has it's screen off. Is that > possible? > > thanks, > Felipe

[android-developers] Re: How to handle the volume keys??

2011-02-18 Thread Felipe Monteiro de Carvalho
Thanks! I managed to do that, but actually I was expecting to be able to receive the keys while the phone has it's screen off. Is that possible? thanks, Felipe -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] Re: How to handle?

2011-02-16 Thread Hari Edo
You don't respond to the HOME key, it is handled by the OS and only by the OS. Add android:clearTaskOnLaunch to your top-level tag in the manifest, and the OS does what you describe. http://developer.android.com/guide/topics/manifest/activity-element.html On Feb 16, 7:00 am, Abhilash baddam w

[android-developers] Re: How to handle major revisions to OpenGL game in Android Market

2010-11-19 Thread scott19_68
On Nov 14, 11:18 am, Jeff Boody wrote: > If your app specifies that it uses OpenGL ES 2.0 in the Android > manifest then it will only show up on the Market for devices which > support it. As long as there is no software renderer that supports OpenGL ES 2.0 which I hope is the case. I did find

[android-developers] Re: How to handle major revisions to OpenGL game in Android Market

2010-11-14 Thread Jeff Boody
>What version of Android guarantees a hardware accelerated OpenGL ES 2.0 >context? If your app specifies that it uses OpenGL ES 2.0 in the Android manifest then it will only show up on the Market for devices which support it. For example: >I would like to limit limit these devices to

[android-developers] Re: How to handle Home Button

2010-10-26 Thread mort
On 26 Okt., 08:55, Kumar Bibek wrote: > I am a bit confused as to under what circumstances one would like to handle > the Home Screen button. As said, the most common use I stubled upon are lock screen "widgets" (usually rather Activities with FLAG_SHOW_WHEN_LOCKED). Esp. if such a screen actuall

Re: [android-developers] Re: How to handle Home Button

2010-10-25 Thread Kumar Bibek
I am a bit confused as to under what circumstances one would like to handle the Home Screen button. On Tue, Oct 26, 2010 at 12:22 PM, mort wrote: > On 25 Okt., 20:11, Miguel Morales wrote: > > Try overriding your onFinish() or onPause(), you might be able to do > > what you're trying to do ther

[android-developers] Re: How to handle Home Button

2010-10-25 Thread mort
On 25 Okt., 20:11, Miguel Morales wrote: > Try overriding your onFinish() or onPause(), you might be able to do > what you're trying to do there. onFinish() is only invoked for the back button, unless you finish() in onPause(). Handling the Home button is only possible if you app's the selected

Re: [android-developers] Re: How to handle Home Button

2010-10-25 Thread TreKing
On Mon, Oct 25, 2010 at 7:47 AM, channa kad wrote: > I tried for KEYCODE_HOME, its not working.. Are you are it works? On Mon, Oct 25, 2010 at 8:56 AM, TreKing wrote: > No - you can't handle the Home key. That's reserved by the system and not > propagated to apps, AFAIK.

Re: [android-developers] Re: How to handle Home Button

2010-10-25 Thread Miguel Morales
Try overriding your onFinish() or onPause(), you might be able to do what you're trying to do there. On Mon, Oct 25, 2010 at 5:47 AM, channa kad wrote: > I tried for KEYCODE_HOME, its not working.. Are you are it works? > > On Mon, Oct 25, 2010 at 6:11 PM, AJ wrote: >> >> Same as I told you in m

Re: [android-developers] Re: How to handle Home Button

2010-10-25 Thread channa kad
I tried for KEYCODE_HOME, its not working.. Are you are it works? On Mon, Oct 25, 2010 at 6:11 PM, AJ wrote: > Same as I told you in my previous post. Match the keycode with > event.KEYCODE_HOME > > > Thanks, > AJ > > On Oct 25, 5:08 pm, "RKJ (Android developer)" > wrote: > > Hi All, > > > > I

Re: [android-developers] Re: How to handle Home Button

2010-10-25 Thread TreKing
On Mon, Oct 25, 2010 at 7:41 AM, AJ wrote: > Same as I told you in my previous post. Match the keycode with > event.KEYCODE_HOME > No - you can't handle the Home key. That's reserved by the system and not propagated to apps, AFAIK. ---

[android-developers] Re: How to handle Home Button

2010-10-25 Thread AJ
Same as I told you in my previous post. Match the keycode with event.KEYCODE_HOME Thanks, AJ On Oct 25, 5:08 pm, "RKJ (Android developer)" wrote: > Hi All, > > I need to handle home button, redirection of home button on customize > way.. wt to do. -- You received this message because you are

[android-developers] Re: how to handle back buttton

2010-10-25 Thread AJ
Hi RKJ, Overload the function @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(event.KEYCODE_BACK == keyCode) { //Do what you want } return super.onKeyDown(keyCode, event); }

Re: [android-developers] Re: How to handle Home Key in our Activity

2010-09-11 Thread Sebastián Treu
FAQ is a great idea, but will not solve the issue with repeated questions. Simply, the won't read it. They won't google. And it's something we need to live with. I consider myself a beginner and always try to find out myself a way, reading, googling, and so on. And when I find that's not obvious, I

[android-developers] Re: How to handle Home Key in our Activity

2010-09-11 Thread Indicator Veritatis
The FAQ itself is easy to find. But as you say, it is not comprehensive. Like so many FAQs in so many other forums, it seems nobody is keeping it up to date. On Sep 10, 10:15 am, Pent wrote: > > How many times will you be asking that question again and again? > > Speaking of which: there are abou

[android-developers] Re: How to handle Home Key in our Activity

2010-09-10 Thread Pent
> How many times will you be asking that question again and again? Speaking of which: there are about 30 questions that come up again and again*, a comprehensive FAQ would really unclutter this board. If there is one already it should be highlighted. Pent * possibly including 'where's the FAQ'

[android-developers] Re: How to handle Home Key in our Activity

2010-09-10 Thread skink
On 9 Wrz, 05:50, AnnuDroid wrote: > How to handle Home keyPlzz Help me outWe can handle Home > button you CAN NOT handle Home key in your Activity. Period. How many times will you be asking that question again and again? pskink -- You received this message because you are subscr

[android-developers] Re: How to handle Home Key in our Activity

2010-09-09 Thread Paul Turchenko
+1 On Sep 9, 9:58 pm, TreKing wrote: > On Wed, Sep 8, 2010 at 10:50 PM, AnnuDroid wrote: > > How to handle Home keyPlzz Help me out > > Plzz take two seconds to spell "please" correctly. > > > I want the Answer. > > 42. > > > No one in this Blog has any idea how to handle it. > > This is

[android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-10 Thread doug
Thanks! That answered my question. doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@

Re: [android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-10 Thread Dianne Hackborn
On Tue, Aug 10, 2010 at 10:55 AM, doug wrote: > "...so the system keeps them running unless there's not enough memory > to retain them along with all foreground and visible processes". > > But are you implying that OutofMemoryError will not occur *before* a > service is killed in a low memory sit

Re: [android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-10 Thread Kostya Vasilyev
Doug, What I was getting at, is that Android has certain rules when killing applications in a low memory situation, as well as mechanisms to keep applications functioning. - If your service needs to do work from time to time, on its own schedule, set an Alarm using AlarmManager. Alarms are p

[android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-10 Thread doug
Thanks for the suggestions. What I was looking for is a defensive programming technique to guard my service against memory exhaustion caused by other services/activities running on the device. The SDK has this to say about a service process: "...so the system keeps them running unless there's no

[android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-09 Thread Soumya
I would investigate the "root cause" of out of memory error instead of finding a way to restart your service/activity. On Aug 10, 12:34 am, doug wrote: > Hello, > > If my service encounters an OutofMemoryError when creating new > objects, what can I do to tell Android to restart my service later

Re: [android-developers] Re: How to handle accents in XML encoded as utf-8??

2010-05-19 Thread Frank Weiss
Well, we got the easy things out of the way. The error message you get is "Invalid token(unicode 0x12) exception". It would be very helpful if you post or send me the URL. As I mentioned, I've found debugging encoding issues more productive at the binary level. Just as a wild guess, I'm expecting

[android-developers] Re: How to handle accents in XML encoded as utf-8??

2010-05-18 Thread Samuh
Thanks for your reply Frank. >>1) The encoding given in the HTTP response The charset of the response is UTF-8 >>2) The encoding given in the XML prologue XML prolog says UTF-8 >>3) The encoding setting of the Reader underlying the XPP. When doing a setInput on the parser I said: parser.setInput

[android-developers] Re: How to handle phone low memory situation more efficiently?

2010-05-16 Thread Wang He
No one care about android performance or No one ever encounter performance issue? Could Google guys give me some ideas? On 5月14日, 下午12时28分, Wang He wrote: > By default, android use low memory killer to try to get out of phone > low memory situation. > > But sometimes, the killer killed process th

[android-developers] Re: How to handle the key events for HOME, MENU, BACK?

2010-05-09 Thread Ian Wong
I don't think SDK cares whether it is a hard key or soft key. To your program, they are all KeyDown and KeyUp events. On 5月10日, 上午11時13分, "manis.droid" wrote: > Hi John Coryat > > Thanks a lot for ur reply. > > By pressing the Hard keys and for a single application, I can handle > the BACK key us

[android-developers] Re: How to handle the key events for HOME, MENU, BACK?

2010-05-09 Thread manis.droid
Hi John Coryat Thanks a lot for ur reply. By pressing the Hard keys and for a single application, I can handle the BACK key using this key event(KeyEvent.KEYCODE_BACK) and for MENU key using onOptionsItemSelected in that particular Activity. But how to handle the key events for the soft keys for

[android-developers] Re: How to handle the key events for HOME, MENU, BACK?

2010-05-09 Thread Maps.Huge.Info (Maps API Guru)
Handling of the menu and back keys is very easy, you can't intercept the home key. Search the examples provided with the SDK for code to handle menu and back keys. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] Re: How to handle plural with resources

2010-04-09 Thread Streets Of Boston
http://groups.google.com/group/android-developers/browse_thread/thread/815f7c18da64e0f4 Use "plurals" element in your strings.xml. On Apr 9, 11:40 pm, jfbaro wrote: > Hi, > > Is there any "best practice" to deal with plural messages? > >         %d files successfully > deleted >         1 file s

[android-developers] Re: How to handle plural with resources

2010-04-09 Thread Streets Of Boston
Just google this On Apr 9, 11:40 pm, jfbaro wrote: > Hi, > > Is there any "best practice" to deal with plural messages? > >         %d files successfully > deleted >         1 file successfully > deleted >         No files deleted > > How could that be done? > > Cheers -- You received this mes

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-03-02 Thread Posri
You could use a license solution like licmax (http://www.licmax.com). You just check the license type for your app on that device, and enable what features you want. One code base, one build. HTH On Feb 26, 9:39 am, Moto wrote: > I would like to make my life easier by having one common code bas

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-03-02 Thread Posri
You could use a licensing solution like licmax (http://www.licmax.com) and check the license type at runtime (either dynamically via http or locally using hashed license key). All the decision for enabled features is contained within one code base, and there is only one build of your app necessary

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-02-26 Thread Bob Kerns
What I've come up with: * I have *three* versions -- a dev version, and two release versions (free, pro). This helps keep things straight, and helps ensure that the release ones are built via a common transformation. * The dev version is what is checked in, and is what I build and test via Eclips

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-02-26 Thread Moto
Hi St. of Boston! That's great feedback! It's really nice to know what other developers are doing! I'll look into that... -Moto! On Feb 26, 3:39 pm, Streets Of Boston wrote: > This is not optimal, but this is what i did. > > Implement your service, aidl and related java classes in one of your

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-02-26 Thread Streets Of Boston
This is not optimal, but this is what i did. Implement your service, aidl and related java classes in one of your apps (either the free or the paid one) in your Android project. Make sure that your service is up to snuff at some point and all runs well. Be sure to put the aid and all related java

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-02-26 Thread Moto
Ok, any recurring answers? On Feb 26, 1:24 pm, Frank Weiss wrote: > This is a recurring question. I think it should be added to the Android dev > docs. > > On Feb 26, 2010 9:39 AM, "Moto" wrote: > > I would like to make my life easier by having one common code base for > my service for both paid

Re: [android-developers] Re: How to handle simultaneous key press

2009-12-15 Thread zhangjun
you can do the cache yourself, but it is not safe because you should eat the first down key, so you must care the key eating and mending On Mon, 2009-12-14 at 17:55 -0800, onceaweek wrote: > Thank you for reply. > > I'd like to know how to catch previous key press information. > Is there any me

[android-developers] Re: How to handle simultaneous key press

2009-12-14 Thread onceaweek
Thank you for reply. I'd like to know how to catch previous key press information. Is there any method in KeyEvent class or somewhere ? On 12월15일, 오전1시53분, Nightwolf wrote: > You should try it. > At least combinations like "w+a+space" work. I haven't try with > special keys though. > My app tha

[android-developers] Re: How to handle simultaneous key press

2009-12-14 Thread Nightwolf
You should try it. At least combinations like "w+a+space" work. I haven't try with special keys though. My app that needs to handle multiple key presses has boolean array for each action (turn left or right, fire etc.). Corresponding array elements are set in onKeyDown and onKeyUp event handlers.

[android-developers] Re: How to handle person extensions in Android 2.0

2009-12-04 Thread romain dereumaux
Nobody has an idea ? Thanks On Dec 3, 3:47 pm, romain dereumaux wrote: > I have as a lot a people troubles with the new ContactsContract class. > > My problem is like in 1.5 and 1.6 devices, we can add a key to a > contact with the Contacts.People.Extensions class. But now there is a > problem w

[android-developers] Re: How to handle this kind of situation within my code

2009-08-25 Thread Dianne Hackborn
Also in the original scenario, your service was NOT running in the background -- its onDestroy() was called, and you ignored it and continued doing stuff. :) Your process will happen to stick around for some time after that in case it is needed again, but the system will fairly aggressively kill a

[android-developers] Re: How to handle this kind of situation within my code

2009-08-25 Thread Streets Of Boston
Use the 'startService' method as well. Just bind your activity to your service as you did before, but in addition, call 'startService' to start your service. When your activity exits and unbinds from your service, your service remains alive because it was called by a 'startService'. When you call

[android-developers] Re: How to handle this kind of situation within my code

2009-08-25 Thread Shany
anyone got an idea? On Aug 23, 11:28 am, Shany wrote: > Hey guys, > I was wondering on this for quite a bit but couldn't find any > solution! > > 1. My app bind to a service (through AIDL interface) > 2, The service runs in the backround and send to my activity a value > every now and than (and

[android-developers] Re: How to handle widget's "Long Click" event on home screen?

2009-08-19 Thread Julian Chu
The code is in Launcher.java 1526 public boolean onLongClick(View v) { 1527 if (mDesktopLocked) { 1528 return false; 1529 } 1530 1531 if (!(v instanceof CellLayout)) { 1532 v = (View) v.getParent(); 1533 } 1534 ...(skip) -

[android-developers] Re: How to handle widget's "Long Click" event on home screen?

2009-08-19 Thread Jimmy Huang
Anyone know this ? Thanks On Aug 10, 3:20 pm, Jimmy Huang wrote: > Thanks for your quick reply. > But if I develop one myself's Home, then I can define the Long press > event on myself widget on Home? > > Thanks, > Jimmy > > On Aug 10, 3:01 pm, Romain Guy wrote: > > > > > You cannot do this. Lo

[android-developers] Re: How to handle widget's "Long Click" event on home screen?

2009-08-10 Thread Jimmy Huang
Thanks for your quick reply. But if I develop one myself's Home, then I can define the Long press event on myself widget on Home? Thanks, Jimmy On Aug 10, 3:01 pm, Romain Guy wrote: > You cannot do this. Long press on Home is reserved to drag and drop. > > On Sun, Aug 9, 2009 at 11:15 PM, Jimmy

[android-developers] Re: How to handle widget's "Long Click" event on home screen?

2009-08-10 Thread Romain Guy
You cannot do this. Long press on Home is reserved to drag and drop. On Sun, Aug 9, 2009 at 11:15 PM, Jimmy Huang wrote: > > Dear All, > > Does anyone know how to handle widget's "Long Click" event on home > screen? I want to implement: long click one widget on home screen then > one menu will be

[android-developers] Re: How to handle complex objects from webservice.

2009-08-05 Thread Yusuf T. Mobile
Other alternatives are XML, JSON and protobuf. 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 5, 11:05 am, Roman

[android-developers] Re: How to handle complex objects from webservice.

2009-08-05 Thread Roman
You might want to check out how to do object serialization in Java. http://java.sun.com/developer/technicalArticles/Programming/serialization/ In general want you do is to convert your object in a binary format and convert it back on the received end. -- Roman Baumgaertner Sr. SW Engineer-OSDC

[android-developers] Re: How to handle complex objects from webservice.

2009-07-30 Thread Lex
How exactly are you receiving the data from the webservice (HTTP POST method, TCP connection, UDP connection..)? If you are receiving your complex object in parts, write a method that will process the input and put the parts together to recreate your object. Lex On Jul 30, 2:52 pm, Ram wrote: >

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-13 Thread Moto
Thanks guys all those are great tips. As of now I'm going to stick with 2 listviews. The only problem is that you loose the list scroll position :( **I wonder if having 8 adapters and two listViews would be just as efficient when having a listView for every adapter. About the slide in slide out

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-12 Thread Alexey Krasnoriadtsev
If you would like to animate your transitions, where one list slides out and second slides in, all you need is two listviews. And in your activity, you would need to keep track of one that is currently visible, and the other one, that is invisible. When there comes a point that you need to switch

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Christine
The alternative would be, if I understand your question correctly, to have one listadapter that takes data from various sources, depending on some variable that is set. Your app would prepare the various sources of data independently, and the getView in your listadapter determines which of the sou

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Moto
The reason for this post was to use one ListView for multiple adapters because I thought it would help decrease the level of complexity my xml layout would have, therefore starting my activity much faster. Apparently it's not such a good idea. As of now, if this matters anyways, my fatty Activity

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Mark Murphy
Moto wrote: > Currently my lists can contain max 60 items and the > elements are fairly complex, about 5 TextViews no backgrounds. > > So multiple ListViews is not good for one activity? "Good" versus "not good" is a binary statement. In reality, it is more a continuum of increasing "not good" a

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Moto
Hey Mark, Let me explain a little better the situation: I only have one ListView and I'm displaying only one list at a time. The reason that I'm doing all this work inside one activity is that it gives me better flexibility when animating. If I could animate activities in and out on top of my gr

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-09 Thread Mark Murphy
> Giving a little bump here... > Please help? If you're going to bump, quote yourself -- it makes it easier to answer questions. I saw your original post, didn't really understand your questions, and so I let it go. Since you're asking again, here are my weak answers: "1. Is this a proper appro

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-09 Thread Moto
Giving a little bump here... Please help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gr

[android-developers] Re: how to handle HTTP/1.1 416 Requested Range Not Satisfiable

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan <> wrote: hello my friend how are u latest sexy summer fashion & hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: how to handle hardware volume controls

2009-06-05 Thread Mark Murphy
Josh wrote: > I figured out my problem. I was overriding onKeyDown. I removed the > override and it works as it should. For keys you do not handle, call and return the result from super.onKeyDown(). This will allow Android to process keys you are not directly interested in, while still allowing y

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Josh
I figured out my problem. I was overriding onKeyDown. I removed the override and it works as it should. On Jun 4, 9:10 pm, Josh wrote: > That did not work for me either. Once my app starts and I press the > hardware volume controls i see nothing on the screen. but if i press > it before i start

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Josh
That did not work for me either. Once my app starts and I press the hardware volume controls i see nothing on the screen. but if i press it before i start the app i see the ringer volume indicator. On Jun 3, 11:16 pm, Saurav Mukherjee wrote: > hi, > try to get the instance of AudioManager by usi

[android-developers] Re: how to handle hardware volume controls

2009-06-03 Thread Saurav Mukherjee
hi, try to get the instance of AudioManager by using the code: Context.getSystemService(Context.AUDIO_SERVICE) n then try and use the methods given... i guess that'll work... provide appropriate control buttons/graphical interfaces for the same... visit: http://developer.android.com/reference/and

[android-developers] Re: How to handle tall dialogs

2009-05-17 Thread Thomas
Yes, that will work. And indeed it is a much bette approach than my initial solution. Thank you very much... Regards Thomas On 17 Mai, 05:37, Marco Nelissen wrote: > You could try using a different layout for landscape mode, where instead of: > > label > textfield > label > datepicker > > you m

[android-developers] Re: How to handle tall dialogs

2009-05-16 Thread Marco Nelissen
You could try using a different layout for landscape mode, where instead of: label textfield label datepicker you make it: label textfield label datepicker Would that work for your particular layout? On Sat, May 16, 2009 at 9:18 AM, Thomas wrote: > > Hi group. > > I have a standard dialog

[android-developers] Re: How to handle " HTTP/1.1 416 Requested Range Not Satisfiable"

2009-04-01 Thread manoj
Actually I am implementing socket connection, with some range headers. For some urls I am getting the nice response (206), but for some urls I am getting this response. On Apr 1, 9:05 pm, Mark Murphy wrote: > manoj wrote: > > In my app, I am getting this response. I dont know how to handle this.

[android-developers] Re: How to handle " HTTP/1.1 416 Requested Range Not Satisfiable"

2009-04-01 Thread manoj
Actually, I am trying to request some data which is available at remote site. On Apr 1, 8:57 pm, manoj wrote: > Hi friends, > > In my app, I am getting this response. I dont know how to handle this. > > Please can some one suggest me. > > Thanks, > Manoj. --~--~-~--~~~---

[android-developers] Re: How to handle " HTTP/1.1 416 Requested Range Not Satisfiable"

2009-04-01 Thread Mark Murphy
manoj wrote: > In my app, I am getting this response. I dont know how to handle this. That would probably be best answered by whoever is running the server you are trying to download data from. If you can give us more information, such as which HTTP client library you are using, we might be able

[android-developers] Re: How to handle orientation changing of VideoView/MediaPlayer?

2009-03-03 Thread Andres Calvete
did you ever find the answer for this?? Im trying to use the onRetainNonConfigurationInstance() but Im not sure how to handle that. On Jan 17, 12:40 am, Urakagi wrote: > Hi, I'm writting aVideoPlayer, and I wonder how can I handle > orientation changing of VideoView/MediaPlayer. > I wrote it wit

[android-developers] Re: How to handle ini file in android?

2009-02-03 Thread Paranoia
> > > specifically so you then might want to create your own class to > > > > > represent an > > > > > ini file > > > > > > - Original Message - > > > > > From: "Paranoia" > > > > > To: "

[android-developers] Re: How to handle ini file in android?

2009-02-02 Thread Emmanuel
might want to create your own class to > > > > represent an > > > > ini file > > > > > - Original Message - > > > > From: "Paranoia" > > > > To: "Android Developers" > > > > Sent: Frida

[android-developers] Re: How to handle ini file in android?

2009-02-01 Thread Paranoia
t; > > InputStream is = Context.getResources().openRawResource(R.raw.config) > > > But then, I guess, there's no API in android dealing with ini files > > > specifically so you then might want to create your own class to represent > > > an > > > ini file >

[android-developers] Re: How to handle ini file in android?

2009-02-01 Thread Paranoia
ht want to create your own class to represent an > > ini file > > > - Original Message ----- > > From: "Paranoia" > > To: "Android Developers" > > Sent: Friday, January 30, 2009 10:32 AM > > Subject: [android-developers] Re: How to handle

[android-developers] Re: How to handle ini file in android?

2009-01-30 Thread Tote
g) > But then, I guess, there's no API in android dealing with ini files > specifically so you then might want to create your own class to represent an > ini file > > - Original Message - > From: "Paranoia" > To: "Android Developers" > Sen

[android-developers] Re: How to handle ini file in android?

2009-01-29 Thread hmmm
then might want to create your own class to represent an ini file - Original Message - From: "Paranoia" To: "Android Developers" Sent: Friday, January 30, 2009 10:32 AM Subject: [android-developers] Re: How to handle ini file in android? i want to use ini file as my

[android-developers] Re: How to handle ini file in android?

2009-01-29 Thread Paranoia
i want to use ini file as my config files. how to use ini file in android instead of xml file. i mean replace xml with ini in android On Jan 30, 11:48 am, Dianne Hackborn wrote: > Android doesn't do ini files; we generally use XML for these kinds of > things.  You will probably need to find a pa

  1   2   >