[android-developers] Network related
I have a TextView, what I want is whenever my Network comes online/offline.It should get reflected to TextView. How Can I do this. Please suggest. Thanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network related
Sounds like the first thing you need to be able to do is to be able to detect when the network comes online and offline right? http://developer.android.com/reference/android/net/ConnectivityManager.html On Mon, Oct 24, 2011 at 2:01 AM, sourabh sahu souruit...@gmail.com wrote: I have a TextView, what I want is whenever my Network comes online/offline.It should get reflected to TextView. How Can I do this. Please suggest. Thanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Handling asynchronous events and blocking
I can certainly create (say) a LinkedList of events which acts a queue of instructions for my main loop. My issue is that after processing an event, I have to remove it from the queue. According to http://download.oracle.com/javase/1.4.2/docs/api/java/util/LinkedList.html : Note that this implementation is not synchronized. If multiple threads access a list concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more elements; merely setting the value of an element is not a structural modification.). This page then goes on to describe how to force an exception if two threads both try and update a LinkedList simultaneously. This doesn't solve the problem, it just tells you that it has happened. This must be a very common problem, and I would expect a simple standard solution. As I mentioned, on other platforms I have used a guaranteed atomic process (file creation)as a semaphore for synchronisation, but I doubt that is the recommended solution for Android ... On Oct 24, 4:28 pm, Studio LFP studio@gmail.com wrote: I figure you are running a thread that does all the processing as not to block the UI thread. If so, one of the ways I've been doing it is to add something like... public static LinkedListMotionEvent uiEvents; ... to a helper object and then check the length of it every time through the processing loop. You can either call length() on this or you can keep up with the count yourself which might be a bit faster. In whatever view you are catching touches, just insert the MotionEvent into this list. This should leave the UI thread clear and let the processing thread get the touches as time allows. Once I process the first event, I remove the event from the list and continue. I tend to only process one per frame so I don't cause hitching in the movement. If you are running about 30 fps, most people won't be able to touch faster than the ~33ms they have between frames anyways. I use a LinkedList so it keeps the touches in the order I insert them so I don't have to worry about out of order touches. Just one idea, someone else may have a more effective one, but hope that helps. Steven Studio LFPhttp://www.studio-lfp.com On Sunday, October 23, 2011 11:42:50 PM UTC-5, Peter Webb wrote: I don't even know if this is an Android question or a Java question. I am developing a simple game using Lunarlander as a starting point. Input is through OnTouch events. This changes the game's state - eg a touch event may cause some gameplay object to be instantiated. Obviously I don't want this to occur in the middle of processing. How do I best synchronise the OnTouch events with the main game loop? In other environments I have used an atomic event (such as creating a dummy file) as a semaphore to work out when game objects can be safely read and written. What should I do in Android?- Hide quoted text - - Show quoted text - -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Possible to get AppWidget Height?
On Mon, Oct 24, 2011 at 6:44 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Oct 23, 2011 at 6:04 PM, Ash McConnell ash.mcconn...@gmail.com wrote: They must not provide the same amount of space (even if you consider device independent pixels) as all units use dp. There is no such concept as the same amount of space. You have no guarantee over the dp size of an app widget. Your dp values are converted into cells; different home screens on different devices will have different dp sizes for these cells. And, if you support the Honeycomb/ICS resizeable app widget, the user can change the size to whatever they want. Your app widget layouts need to take into account modest changes in the number of available dp for width and height, or more-than-modest changes if you're letting the user resize the widget. Thanks Mark, that has made things a lot more clear. I would like to deal with the most typical scenario where the user will use the normal 4x2 allocation (in my case). If I can get the height in DP I can use removeViews and addView to swap in a layout with smaller font size and less margin (if the height in dp is below a certain limit). I'd like to have the text as big as possible within the constraints, I could always have the smaller size with less margin, but where's the fun in that :) Is there a way to reliably get the height/width? From searching on StackOverflow it seems to be difficult with a widget with the only suggestion being wait for x ms and then measure, which seems a little hacky. Thanks for your help All the best, Ash -- Awesome Widgets http://www.siroccosoftware.com/awesome Online Racing Championship http://onlineracingchampionship.com Twitter http://twitter.com/AshMcConnell -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] No luck with new ICS CalenderContract
I am trying to convert my Calendar code to the new ICS APIs. For starters, I am trying the simplest possible operation -- reading the list of Calendars. I am using the following code: context.getContentResolver().query(CalendarContract.CONTENT_URI, CALENDARS_PROJECTION, CALENDARS_WHERE, null, CalendarContract.Calendars.DEFAULT_SORT_ORDER) but I am getting an unknown URL exception on the ICS emulator, both Standard and Google API images: E/ACRA( 746): Caused by: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar E/ACRA( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 165) E/ACRA( 746): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 135) E/ACRA( 746): at android.content.ContentProviderProxy.query(ContentProviderNative.java: 358) E/ACRA( 746): at android.content.ContentResolver.query(ContentResolver.java:304) Is this supposed to work on the emulator? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Slowdown when debugger is attached
No suggestions at all? There must be a way to do this. My hunch is that debugging slowdown is related to the amount of user code that is being invoked. So the more custom code you execute the more you'll see the slowdown. The android frameworks themselves don't seem to be influenced by this; otherwise more people would be complaining... Pepijn On 21/10/2011 17:36, Pepijn Van Eeckhoudt wrote: In my project I've implemented a custom view that does a substantial amount of processing when rendering itself. When I attach the debugger to my application I'm experiencing so much slowdown that the application is essentially not useable anymore. Due to the increased time taken by certain methods gestures are no longer recognized correctly and interaction with the view no longer works due to this. I've profiled my view with and without the debugger attached and it looks to me like every single method call has at least a fixed amount of method call overhead when the debugger is attached. Since the code in question calls a large number of very short 'getter' methods quite a lot the total slowdown is quite extensive. My hunch is that this type of code suffers the most from the 'attached debugger cost' and since this is probably atypical code most people don't experience this problem in their applications. My question is if there's a way to improve this situation. Changing the code is not really an option; the code in question is part of an API that I cannot easily change. Is there perhaps someway to exclude certain classes from being 'debuggable' or something like that? Pepijn -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to view a pdf file?
dear friends, I need to view a pdf file in my application. Is any widget there for showing pdf in android. Or if any other way to do this... please let me know that... Regards Kalandar . N -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Access to voice/microphone during call
Hi, I am searching for a possibility to access the voice during a call - no recording: I want to change the spoken text live. Is this possible at all? Maybe there is no way... Is there any Android based API for this? I found nothing yet. Thanks in advance! -Danny S. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network related
Thanks, but this thing I figured.main issue is ,there is a need of Thread kind of stuff which loops around whenever network comes online or offline. It should automatically reflect it to view. On Mon, Oct 24, 2011 at 11:47 AM, Kristopher Micinski krismicin...@gmail.com wrote: Sounds like the first thing you need to be able to do is to be able to detect when the network comes online and offline right? http://developer.android.com/reference/android/net/ConnectivityManager.html On Mon, Oct 24, 2011 at 2:01 AM, sourabh sahu souruit...@gmail.com wrote: I have a TextView, what I want is whenever my Network comes online/offline.It should get reflected to TextView. How Can I do this. Please suggest. Thanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to view a pdf file?
Hi, If u have any application installed for viewing pdf file then you can use its intent to view the pdf in your application. For more reference : http://stackoverflow.com/questions/3831019/how-to-read-a-pdf-in-android On Oct 24, 12:02 pm, kalandar kasimk...@gmail.com wrote: dear friends, I need to view a pdf file in my application. Is any widget there for showing pdf in android. Or if any other way to do this... please let me know that... Regards Kalandar . N -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTC and LG haven't implemented Android in the right way
No, I didn't get the sample project, but it would be interested to see it, so could you send it again? Have you tested it on HTC devices? I don't get any black squares around the particles with my Quad approach either. On Oct 22, 12:59 pm, Nightwolf mikh...@gmail.com wrote: Did you get a sample project I sent you earlier? It uses point sprites and has no black squares around particles. On 21 ÏËÔ, 15:20, MobileVisuals eyv...@astralvisuals.com wrote: I solved this problem now for the morphed animation. I used a TreSet for the sorting. I made a Quad class and and added the quads to the treeset for each draw. The TreeSet šthen sorts them in an automatic way. It's not as fast as with real Point sprites and size attenuation, but the speed is OK. This really took a long time to fix. I am still going to write to the HTC support, just to let them know that they haven't implemented Android in the right way. On Oct 14, 10:39šam, MobileVisuals eyv...@astralvisuals.com wrote: The morphed positions for the stars are calculated from some precalculated 3d arrays, one 3d array for each single galaxy shape, like below. positionsM1 and positionsM2 are the two 3d arrays, which get morphed for this frame. The result is the new morphedPositions array, which is drawn later. I can't find any frame-to-frame coherency here. I am considering to start with another 3d animation instead, which doesn't use morphing, because I don't have a clue how to make an effective and fast sorting algorithm for this: for (int i = 0; i morphedPositions.length; i++) { š š š š š š š š š š š š morphedPositions[i] = (morphcount * positionsM1[i]) * mlInv š š š š š š š š š š š š š š š š š š š š + ((morphLength - morphcount) * positionsM2[i]) * mlInv; š š š š š š š š } On Oct 14, 10:17šam, Latimerius l4t1m3r...@googlemail.com wrote: On Wed, Oct 12, 2011 at 7:09 PM, MobileVisuals eyv...@astralvisuals.com wrote: Thanks a lot for the info! The problem is that the positions for the stars change for each new frame. This happens because the positions are morphed.Wouldn't it be very slow to sort all the positions according to their z-value for every frame? I'd take a close look at my positions morphing algorithm. šHow does the z-order change frame-to-frame? šI doubt it can change randomly, there will be some kind of frame-to-frame coherency - perhaps just a bunch of fix-ups are needed from the previous frame? šI'd try to take advantage of that, it should reduce your problem from a general full sorting one to something possibly way smaller. Wouldn't I have to make one drawElements call for each quad if I sorted them? Not necessarily. šTry keeping vertex positions data in system memory (i.e. in normal Java objects). šBefore rendering each frame you recompute positions, reshuffle the data to restore back-to-front order and make a single VBO out of that. šYou could check glBufferSubData() and similar to avoid transferring all of the data over the bus into VRAM each frame. šYou can then issue a single glDrawElements() to render the whole thing. How exactly to do that depends on your particular algorithm but it should be possible. I assume that would be a lot slower than one drawElements call for all of the quads, as it is now. I understand your worries, they are well grounded. šTrying to do a more complex thing will usually mean your performance takes a hit. However, I found out in a surprising amount of cases that a thing I would have expected to be prohibitively slow performed very well. GPUs are complex beasts, they can parallelise, hide latencies and all kinds of stuff. šYou never know until you try. And, above all, remember that you can hardly make your renders look right if you use translucency with depth-buffering but don't sort back-to-front. šSo my strategy would be implement the sorting to make stuff look right, then look into how to restore plausible performance if needed. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] splitVIew on android
How to implement SplitView on android. Can we use fragment, IF yes How to implement Sliding in out feature in it. Thanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unit testing with the sdk tools r14?
Can anyone confirm this? Should I file a bug? Thanks! BoD -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
It must be a bug, as the function does not appear deprecated, removed or otherwise according to the SDK. Ms Hackborn or anyone from Google had a chance to look at this yet? On Oct 22, 3:59 am, String sterling.ud...@googlemail.com wrote: I'm on the fence whether to report this as a bug, or just assume it's by design. Opinions? String -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
The built-in live wallpapers rely on this feature and they seem to be working properly. Do you have a reproducible test case? On Mon, Oct 24, 2011 at 1:03 AM, Dusk Jockeys Android Apps duskjock...@gmail.com wrote: It must be a bug, as the function does not appear deprecated, removed or otherwise according to the SDK. Ms Hackborn or anyone from Google had a chance to look at this yet? On Oct 22, 3:59 am, String sterling.ud...@googlemail.com wrote: I'm on the fence whether to report this as a bug, or just assume it's by design. Opinions? String -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
Romain, There are no built in live wallpapers in the emulator, which is the only environment we have access to. I'll put together a minimal test case and post it to the bug tracker. It's certainly failing on both of my live wallpaper apps; one reason I posted here first was to see if other LWP devs were having the same experience. String -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Text on VideoView
Hi, Is it possible to overlay text on VideoView ? Regards, Sambhav -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC challenge/response
Since I wrote this I've create a test app that listens for an NDEF TECH discovered intent and then, through use of an internal flag variable within the onNewIntent method, either reads or writes to the discovered tag. I've gotten this to work with a normal type 2 tag by performing the first action, then removing the tag from the phone for a moment before bringing it back. Seems to work fine, although I still dont know if it'll work for an active device rather than a normal tag. Would still like to hear from anyone who's done a similar thing between two active devices though. cheers! LS On Oct 21, 5:16 pm, LS lsibbald...@gmail.com wrote: Hi everyone I'm looking in to NFC for a project I have on the table, and one of the requirements is for an NFC message to be sent from a mobile device (nexus) to a non-android device (target), which should process the message and return an NFC response. Now, I understand that under normal circumstances this wouldnt be possible. However, I wondered if some learned person could take a look at my proposal and suggest any obvious problems with it: 1. nexus detects when an nfc connection is made. In this case, when the device is put in front of the non-android (target) device 2. an intent is received and processed in my app and in response the app writes out an ndef payload 3. the target device processes the ndef record and does some mechanical thing at its side 4. in the meantime, having sent its ndef message, the Nexus sets up a listen intent. 5. the target device, having finished doing its thing, *resets its NFC chip* (I assume for the moment the target device is capable of doing this) so that the NFC field is effectively broken and then (presumably) re-established with the nexus 6. the nexus re-detects the NFC connection and, because it is in read mode, receives the ndef message from the target and processes the data. This would all have to be accomplished in the app using the nfc read/ write modes, rather than any P2P capabilities. I have a question mark around using the read/write modes between two active devices (i.e. no passive tags) so if someone could comment on this that'd be real handy. Would this work? I was also thinking of using SNEP in Android 4 but I'm not sure whether this offers any form of challenge/response or if it is just an updated version of the previous P2P implementation (through the addition of a couple of useful callback listeners). SNEP would at least allow me to change modes when I detected my NDEF had been sent, but i'm not sure what else. Would really appreciate any insight. Cheers LS p.s. we are also considering a Bluetooth only approach but for the purposes of this message I'd really like to focus on NFC only solutions. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
Sure, I understand that. I just haven't had time to do that, been too busy trying to get my own apps working on ICS. String -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
I am talking about the live wallpapers that are part of Android 2.3, 3.0 and 4.0. Android 2.3's live wallpaper source code is available for you to try. On Mon, Oct 24, 2011 at 1:22 AM, String sterling.ud...@googlemail.comwrote: Romain, There are no built in live wallpapers in the emulator, which is the only environment we have access to. I'll put together a minimal test case and post it to the bug tracker. It's certainly failing on both of my live wallpaper apps; one reason I posted here first was to see if other LWP devs were having the same experience. String -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to display NDEF message ?
Hallo, as a start I would strongly suggest that you read the NFC Forum's specifications on the NDEF format and the record type definitions (RTDs). You can find them here: http://www.nfc-forum.org/specs/spec_dashboard/ Second I would suggest that you make use of the NDEF helper classes in Android (i.e. NdefMessage and NdefRecord) and avoid handling the whole NDEF message as a byte array. The NdefRecord class divides the record into its header fields (TNF, type, ID) and the payload field. br Michael -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
Off topic: Actually, there is a Live Wallpaper in the emulator -- it's a wireframe spinning cube which spins at about 3 fps... On Oct 24, 4:45 pm, String sterling.ud...@googlemail.com wrote: Sure, I understand that. I just haven't had time to do that, been too busy trying to get my own apps working on ICS. String -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Text on VideoView
I assume you have tried it and having some kinf of problem? On Oct 24, 4:29 pm, Sambhav isamb...@gmail.com wrote: Hi, Is it possible to overlay text on VideoView ? Regards, Sambhav -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Implement an XML-RPC server on Android
On Oct 24, 4:06 am, Weikang Wan weikang@gmail.com wrote: Resolved! Thanks. I found a reversed version from anddev.org forum. Cheers! On Oct 23, 9:00 pm, Weikang Wan weikang@gmail.com wrote: Hello pskink, I have put the TestXMLRPCServer you just checked in with the client codes together. I made some changes: 1. I put following codes in the end of onCreate() of Test Activity class: Intent intent = new Intent(Test.this, XMLRPCService.class); startService(intent); 2. I changed IP address from 10.0.2.2: to 127.0.0.1: The screen of emulator stopped as Calling host 127.0.0.1. When I debugged it, I found that the method called from client; however, it seems that it has not been received by theserverside. What might be the problem of it? Thanks. Vycon On Oct 22, 12:31 pm, skink psk...@gmail.com wrote: On Oct 22, 5:31 pm, Weikang Wan weikang@gmail.com wrote: We know that we can iimplement anXML-RPCclient onAndroid. I am wondering if there is a way to implement anXML-RPCserveronAndroid. Thanks. Hi, See client serverlibrary I created some time ago: http://code.google.com/p/android-xmlrpc/ pskink what do you mean by 'reversed'? pskink -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Newline char
Hi I want to put a newline char in : android:text=Preset Location Alert after Preset I want to put a newline. How to do this? Regards Goutom Roy -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sliding drawer example
Hi friends, I am trying to limit the height of sliding drawer naturally in android. but i am not able to.How to acheive this. Please reply. Thanks :) -- Regards, Vani Reddy -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Possible to get AppWidget Height?
On Mon, Oct 24, 2011 at 2:56 AM, Ashley McConnell ash...@siroccoracing.com wrote: Is there a way to reliably get the height/width? There is no way at all to get the height/width. From searching on StackOverflow it seems to be difficult with a widget with the only suggestion being wait for x ms and then measure, which seems a little hacky. Moreover, those answers are not referring to app widgets. -- 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.6 Available! -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Eclipse, ADT and opening XML files
Yes, Fix Project Properties worked for me too. The thing that actually changed is the project's .classpath: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/ classpathentry kind=src path=gen/ classpathentry kind=con path=com.android.ide.eclipse.adt.ANDROID_FRAMEWORK/ + Added by Fix Project Properties: + + classpathentry kind=con path=com.android.ide.eclipse.adt.LIBRARIES/ ++ classpathentry kind=output path=bin/classes/ /classpath Weird, but it works now. -- Kostya 2011/10/24 Michael A. michael.aki...@gmail.com With a new clean workspace, Fix Project Properties + Closing/Reopening the projects worked to get the layout editor activated again as usual. Thanks. Now I just need to figure out why none of my XML layouts and drawables work + why the apk won't export. :-/ Regards, Michael A. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Possible to get AppWidget Height?
Ashely, You might want to test your widgets in landscape orientation, as that typically also has shortened widget height. If you don't have a phone with sliding keyboard, you can use the emulator for that. This page was updated for 4.0, and is now more clear than before on how widgets are assigned sizes: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html -- Kostya 2011/10/24 Mark Murphy mmur...@commonsware.com On Mon, Oct 24, 2011 at 2:56 AM, Ashley McConnell ash...@siroccoracing.com wrote: Is there a way to reliably get the height/width? There is no way at all to get the height/width. From searching on StackOverflow it seems to be difficult with a widget with the only suggestion being wait for x ms and then measure, which seems a little hacky. Moreover, those answers are not referring to app widgets. -- 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.6 Available! -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] org.xml pull parser exception
my webservice is created in sap server .i want to authenticate to the server and fetch the response.while am doing am getting ORG.XML PULL PARSER EXCEPTION ..am attaching my code and wsdl file ... thanks in advance TextView tv; private String METHOD_NAME = ZemptrackEarnOview; // private static final String URL = http://76.10.226.133:8000/sap/bc/srt/rfc/sap/zemptrack_earn_oview02/800/zemptrack_earn_oview02/zemptrack_earn_oview02;; private static final String URL = http://76.10.226.133:8000/sap/bc/srt/wsdl/bndg_E0EE4EE62A0739F19D0400221969C2CB/wsdl11/allinone/ws_policy/document?sap-client=800;; private String NAMESPACE = urn:sap-com:document:sap:soap:functions:mc-style; private String soapAction = ; private AbstractHttpClient httpclient; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.i(one, track); tv = (TextView) findViewById(R.id.tv); try { UsernamePasswordCredentials creds = new UsernamePasswordCredentials(arun, 12345); ((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials(new AuthScope( http://76.10.226.133:8000/sap/bc/srt/rfc/sap/zemptrack_earn_oview02/800/zemptrack_earn_oview02/zemptrack_earn_oview02,8000 ),creds); } catch (Exception e) { // TODO: handle exception } try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); PropertyInfo propertyInfo = new PropertyInfo(); propertyInfo.setType(PropertyInfo.STRING_CLASS); propertyInfo.setName(Userid); propertyInfo.setValue(SRINIVASUS); request.addProperty(propertyInfo); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = false; envelope.setOutputSoapObject(request); //envelope.getResponse(); envelope.bodyOut=request; HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.debug =true; androidHttpTransport.call(soapAction,envelope); //Object result = envelope.getResponse(); SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); Log.e(httpResponse,Referral_Request +result); System.out.println(Result : + result.toString()); ((TextView) findViewById (R.id.tv)).setText(Tracking : +result.toString()); } catch (Exception E) { E.printStackTrace(); ((TextView) findViewById (R.id.tv)).setText(ERROR: + E.getClass().getName() + : + E.getMessage()); } } wsdl file wsdl:definitions targetNamespace=urn:sap-com:document:sap:soap:functions:mc-style - wsdl:documentation sidl:sidl/ /wsdl:documentation wsp:UsingPolicy wsdl:required=true/ - wsp:Policy wsu:Id=BN_BN_ZEMPTRACK_EARN_OVIEW02 saptrnbnd:OptimizedXMLTransfer uri= http://xml.sap.com/2006/11/esi/esp/binxml; wsp:Optional=true/ saptrnbnd:OptimizedXMLTransfer uri= http://www.w3.org/2004/08/soap/features/http-optimization; wsp:Optional=true/ - wsp:ExactlyOne - wsp:All - sp:TransportBinding - wsp:Policy - sp:TransportToken - wsp:Policy sp:HttpsToken/ /wsp:Policy /sp:TransportToken - sp:AlgorithmSuite - wsp:Policy sp:TripleDesRsa15/ /wsp:Policy /sp:AlgorithmSuite - sp:Layout - wsp:Policy sp:Strict/ /wsp:Policy /sp:Layout /wsp:Policy /sp:TransportBinding /wsp:All /wsp:ExactlyOne /wsp:Policy - wsp:Policy wsu:Id=IF_IF_ZEMPTRACK_EARN_OVIEW02 - sapsession:Session sapsession:enableSessionfalse/sapsession:enableSession /sapsession:Session - sapcentraladmin:CentralAdministration wsp:Optional=true sapcentraladmin:BusinessApplicationIDE050E0E32D50BFF1A3D400221969C2CB/sapcentraladmin:BusinessApplicationID /sapcentraladmin:CentralAdministration /wsp:Policy - wsp:Policy wsu:Id=OP_IF_OP_ZemptrackEarnOview sapcomhnd:enableCommitfalse/sapcomhnd:enableCommit sapblock:enableBlockingtrue/sapblock:enableBlocking saptrhnw05:requiredno/saptrhnw05:required saprmnw05:enableWSRMfalse/saprmnw05:enableWSRM /wsp:Policy - wsdl:types - xsd:schema attributeFormDefault=qualified targetNamespace=urn:sap-com:document:sap:rfc:functions - xsd:simpleType name=char12 - xsd:restriction base=xsd:string xsd:maxLength value=12/ /xsd:restriction /xsd:simpleType - xsd:simpleType name=char4 - xsd:restriction base=xsd:string xsd:maxLength value=4/ /xsd:restriction /xsd:simpleType - xsd:simpleType name=char80 - xsd:restriction base=xsd:string xsd:maxLength value=80/ /xsd:restriction /xsd:simpleType - xsd:simpleType name=cuky5 - xsd:restriction base=xsd:string xsd:maxLength value=5/ /xsd:restriction /xsd:simpleType - xsd:simpleType name=curr15.2 - xsd:restriction base=xsd:decimal xsd:totalDigits value=15/ xsd:fractionDigits value=2/ /xsd:restriction /xsd:simpleType - xsd:simpleType name=numeric4 - xsd:restriction base=xsd:string xsd:maxLength value=4/ xsd:pattern value=\d*/ /xsd:restriction /xsd:simpleType /xsd:schema - xsd:schema attributeFormDefault=qualified
[android-developers] Google Maps do Android
Saudações... Pessoa alguem sabe se da minha aplicação conseguiria passar para aplicação google maps que está instalada no meu aparelho uma coordenada para ele gerar a roda, ou mostrar no mapa esta rota .. -- Ray da Costa The best way to predict the future is to invent it. Alan Kay -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Possible to get AppWidget Height?
Hi Kostya, On Mon, Oct 24, 2011 at 12:00 PM, Kostya Vasilyev kmans...@gmail.comwrote: Ashely, You might want to test your widgets in landscape orientation, as that typically also has shortened widget height. I have a separate layout for landscape orientation, I would have liked to have another one for squashed portrait layouts, oh well, smaller text for all unfortunately :) Thanks for your help! All the best, Ash -- Awesome Widgets http://www.siroccosoftware.com/awesome Online Racing Championship http://onlineracingchampionship.com Twitter http://twitter.com/AshMcConnell -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Airpush SDK
hello Zaid, Send a note to johnp...@airpush.com On Oct 21, 8:43 pm, Zaid zaid.a...@gmail.com wrote: hi guys, i accidentally deleted my old airpush SDK and the 4.0 SDK has some issues. could someone please upload/direct me to where i can get the older SDK? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OEM USB Driver for Pantech
Hi all, I am trying to put my android game onto my hardware for testing. It is a Pantech. The problem is I need to get the OEM USB Driver to do this but the link the android developers site sends me to is a foreign language site. I can't even get Google to translate it for me. This is the link http://www.isky.co.kr/cs/software/software.sky?fromUrl=index . I have also tried Google search to find one with no success. Could someone who knows whatever asian language it is possibly download and send me a copy? I would really appreciate it. Thank you. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help in Activities
I'm new in android, can you give me a site that gives great info in android and gives useful codes which are discuss in the official android site. The site really is great, but I need some codes to apply it to. Thanks. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GPS Location
what is your app? On 10/22/11, John Coryat cor...@gmail.com wrote: GPS doesn't require an internet connection but it does require receiving a very weak signal from a number of GPS satellites. That usually means a view of the sky. -John Coryat -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problems with wificonfiguration ...
Hello, i have a problem with this code: *** WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wc = new WifiConfiguration(); wc.status = WifiConfiguration.Status.ENABLED; wc.SSID = \NewYork2011\; wc.preSharedKey = \12345ok6789\; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); int netId = wifiManager.addNetwork(wc); wifiManager.enableNetwork(netId, true); wifiManager.setWifiEnabled(true); * When I run this code, NewYork2011 is added in the list without problems but can not connect. I think the problem may be. PreSharedKey but I can not fix it. Please, I need someone to help me. Thanks for everything in advance. David. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding profile
I am looking for the same. Anyone plz help us!!! On Sep 23, 1:16 pm, sourabh sahu souruit...@gmail.com wrote: How to create our own profile with custom settings.Please provide some code for it. THanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] speech recording
how to make speech recording application for android please help me my cod is true but ı dont understand application has stopped erorr :S ı folllow this link http://www.brighthub.com/mobile/google-android/articles/40737.aspx and apply my application but take a error please help me !!! -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to make an alphabetic scroll bar like that in contacts
I am new to android developement and have only started to learn the basics. I have been asked to make an alphabetic scroll bar like that in the contacts (or like that in iphone). Can anyone tell me how to approach and perhaps explain it with an example? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] related to android inbuilt camera
i m creating one camera application,in that i have one button ,when i pressed that button the inbuilt camera opens in landscape mode,i want the orientation of camera to be based on the device orientation.How it is possible? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hello Grid View Tutorial
Hi! I've been trying to use the hello grid world tutorial from developer.android.com at this site http://developer.android.com/resources/tutorials/views/hello-gridview.html For some reason, my code debugs, but I get this error at runtime: The application HelloGridView (process com.example.hellogridview) has stopped unexpectedly. Please try again. The code for the HelloGridView.java is package com.example.hellogridview; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import android.widget.Toast; public class HelloGridView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); gridview.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View v, int position, long id) { Toast.makeText(HelloGridView.this, + position, Toast.LENGTH_SHORT).show(); } }); } } class ImageAdapter extends BaseAdapter { private Context mContext; public ImageAdapter(HelloGridView c) { mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return null; } public long getItemId(int position) { return 0; } // create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView; if (convertView == null) { // if it's not recycled, initialize some attributes imageView = new ImageView(mContext); imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView.setPadding(8, 8, 8, 8); } else { imageView = (ImageView) convertView; } imageView.setImageResource(mThumbIds[position]); return imageView; } // references to our images private Integer[] mThumbIds = { R.drawable.pic3, R.drawable.pic4, R.drawable.pic5, R.drawable.pic5, R.drawable.pic6, R.drawable.pic8, R.drawable.pic1, R.drawable.pic2, R.drawable.pic3, R.drawable.pic4, R.drawable.pic5, R.drawable.pic6, R.drawable.pic7, R.drawable.pic8, R.drawable.pic1, R.drawable.pic2, R.drawable.pic3, R.drawable.pic4, R.drawable.pic5, R.drawable.pic5, R.drawable.pic6, R.drawable.pic8, }; } and my code for the main.xml is ?xml version=1.0 encoding=utf-8? GridView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/gridview android:layout_width=fill_parent android:layout_height=fill_parent android:columnWidth=90dp android:numColumns=auto_fit android:verticalSpacing=10dp android:horizontalSpacing=10dp android:stretchMode=columnWidth android:gravity=center / Thanks so much for your 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Play two videos simultaneously
Hi to all, I started learning Android but I'm still just a beginner. For a start I tried to port an app I made for web on Flash and faced a problem that probably won't let me do that. In that app I have a situation where two videos are played at the same time on the screen and the user can control one or the two of them - play, stop, scrub... I tried to put two VideoView in the activity and gave them two different sources from the SD card. When I ran the app on my phone I could here the sound but the phone freezed and I had to even take the battery off to restart it. So is it possible to play two videos at the same time? I saw some apps that are displaying even more streams on the screen - like live web cams or an app for comparing two videos, nut I'm still at the beginning so can't figure out how to make it. Thanks -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re : NFC phone operated Mifare Classic
Hi all, Any informatioin how to read, write, increment decrement a valueblock with NEXUS S? Thanks for your 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding system font size change system wide
Hi, I have a requirement where i need to provide an option for the customer to change font size Small, Medium and Large. When user chooses an option out of these 3, i want to change the system font as per the selection system wide. Is there any way to do that? Any code snippet would be helpful. Thanks and Regards, Alhad -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Emulator internet connectivity Problem
It should work be automtic On 10/21/11, manish sandhan sandhan.man...@gmail.com wrote: I m new in android... I m not able to connect my android emulator to internet neither from my app nor from the android browser. I have tried adding uses-permission android:name=android.permission.INTERNET / in xml..but still in did not help.. I have added hardware like GPS and Modem from the android sdk manager... Still it did not work pls help... pls help... -- Thanks Regards Manish Sandhan Cell No.--+91-9421572024 -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] speech recording
how to make speech recording application for android please help me my cod is true but ı dont understand application has stopped erorr :S ı folllow this link http://www.brighthub.com/mobile/google-android/articles/40737.aspx and apply my application but take a error please help me !!! -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to create a google like calendar on android 2.3.3
Hello i'm currently developping an application that will run on android 2.3.3 and the application will have the functionalyties of the calendar(with notification while the app is not working) i though about using a service to do that but i don't actually know how do somebody have an idea? Thanks. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using QR Code Open Facebook Application and Search Page
I create 1 QR Code, inside is 1 URL market://details? id=com.qrs.reader this URL is open your android market application(not browser) the question: now I create 1 QR Code, the URL is facebook:// then the URL is open my facebook application(not browser), so how I make it go to my page. https://www.facebook.com/android -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Missing Fastboot from Windows 32 SDK?
I'm trying to unlock my HTC Incredible S according to HTC's unlock process. I've downloaded and installed the Android SDK and used the SDK Manager to update / install: - Android SDK Tools (14) - Android SDK Platform-Tools (8) - Android 3.2 (API 13) - Google USB Driver package (4) But no matter what I do, I can't find fastboot.exe anywhere in the SDK folders. I've been told to look under /android-sdk-windows/tools but it doesn't appear in there. Can someone please let me know where I can find fastboot.exe for Windows 32? FYI, the HTC unlocking guide that says where I can find fastboot.exe is here: http://www.htcdev.com/bootloader/unlock-instructions/page-2 -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse, ADT and opening XML files
OS u runnin What On 10/19/11, Kostya Vasilyev kmans...@gmail.com wrote: With the two recent releases of ADT (it seems), my XML files by default don't open with the appropriate Android editor. The editor they open with is not the plain text editor, but rather some kind structured editor with XML tag highlighting, and a Design tab that lists the XML file structure. Earlier, Android layout XML files would open with the ADT layout editor, and other Android-specific XML files would open with Android specific editors as well. It seems like this broke with ADT 13, or maybe after I switched to Eclipse 3.7, I'm not sure. I tried using Eclipse preferences to associate *.xml files with the Android Layout editor, but that affects values/*.xml, menu/*.xml, etc., with very interesting effects. It is possible to right click on a file and select Open With, but I also like to use Ctrl+Shift+R to navigate among my XMLs more quickly. Is anyone else seeing this? Is there a fix? Oh, and I just reinstalled Eclipse 3.7.1 Classic from scratch, as well as ADT r14. Made no difference. I'm on Windows 7 / 64 bit, which has not changed either. -- Kostya Vasilyev -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help in Activities
plse go through this site u get a lot of tutorials http://www.androidpeople.com/toast -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android TYPE_LINEAR_ACCELERATION sensor - what does it show?
0 down vote favorite share [fb] share [tw] I am developing application for car acceleration tracking. I used standard accelerometer, calibrating it in specific position before start, than - considering phone's orientation is not changing - logging accelerometer data for specified time and calculating move parameters, one of them - car speed at the end of test. It works almost good, on strait horizontal road - few percent mistake. But then I found out, that in apl-level 10 there is virtual sensor TYPE_LINEAR_ACCELERATION, and, as far as i understand, it must do what i need: filter gravity, orientation changing - so i may use it and get pure linear acceleration of mobile device. BUT in real life.. I made simply application, that does little test: //public class Accelerometer implements SensorEventListener { ... public void onSensorChanged(SensorEvent se) { if(!active) return; lastX = se.values[SensorManager.DATA_X]; lastY = se.values[SensorManager.DATA_Y]; lastZ = se.values[SensorManager.DATA_Z]; long now = System.currentTimeMillis(); interval = now - lastEvetn; lastEvetn = now; out.write(Float.toString(lastX) + ; + Float.toString(lastY) + ; + Float.toString(lastZ) + ; + Long.toString(interval) + \n); } I bind listener with following parameters: mSensorManager.registerListener(linAcc, mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION), SensorManager.SENSOR_DELAY_GAME); It works OK, but when i analyze data dump, calculating speed like V = V0 + AT, where V0 = 0 at first, then - speed of interval before this, A = acceleration (SQRT (x*x+y*y+z*z)), t = time of interval, at the end i get very little speed - three times less than real speed. Changing Sensor type to TYPE_ACCELEROMETER, calibrating and using same formula to calculate speed - i get good results, much close to reality. So, the question is: what Sensor.TYPE_LINEAR_ACCELERATION really shows? Where am I wrong, or something is wrong with Sensor.TYPE_LINEAR_ACCELERATION realization? I use Samsung Nexus S phone -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hello dears
Hi Hope this message find you well dears , Indeed , i need your help to guide me to the best , shortest way to be able to build my own Android app. and the programming language i may have to know first , and other prerequired background . Thanks for your help in advance Regards -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Reading PayWave (ISO14443-B format) track information using Android 2.3.3 NFC API
Hi guys, I am currently trying to find out the magnetic field strength of the Nexus S. Do any of you have information on that? Cheers, Sebastian -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unit testing with the sdk tools r14?
I have same problem. Any fixes? On Oct 21, 10:39 am, BoD bodlu...@gmail.com wrote: Hi! I have updated my project and my test project with the sdk tools r14, and I can no longer seem to get the tests running. First of all, the documentation here:http://developer.android.com/guide/developing/testing/testing_otherid... has not been updated and the |run-tests target no longer exist. I understand you are now supposed to use this command instead: ant debug installt test Unfortunately this fails with this message: build.xml:816: Cannot run two different modes at the same time. If you are running more than one debug/release/instrument type targets, call them from different Ant calls. I then tried to first issue ant debug (seems to work ok, the package is installed in the emulator), and then ant installt test. This second command fails with this message: test: [echo] Running tests ... [exec] INSTRUMENTATION_STATUS: id=ActivityManagerService [exec] INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.example.android/android.test.InstrumentationTestRunner} [exec] [exec] INSTRUMENTATION_STATUS_CODE: -1 [exec] android.util.AndroidException: INSTRUMENTATION_FAILED: com.milestonelab.plizy.android/android.test.InstrumentationTestRunner [exec] at com.android.commands.am.Am.runInstrument(Am.java:532) [exec] at com.android.commands.am.Am.run(Am.java:111) [exec] at com.android.commands.am.Am.main(Am.java:78) [exec] at com.android.internal.os.RuntimeInit.finishInit(Native Method) [exec] at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238) [exec] at dalvik.system.NativeStart.main(Native Method) BUILD SUCCESSFUL Ant thinks the build is successful when this fails which I think is a known issue. But any idea on how to fix this? My test project used to work fine with ant ||run-tests before the update. Thanks for your help! || | -- BoD -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: using multiple advertising networks - is this possible?
Hi, Yes, you can show ads from different network. If you user is from one Asia or Europe you can earn more using a specialized network. It can be a difficult if you do it by yourselft. I recommend you to use a network that switch from one network to another looking user's location Read this article http://androidtweak.blogspot.com/ On 11 oct, 12:48, KevinC kevinch...@gmail.com wrote: Hi - Is it possible to switch between multiple advertising networks for placing in-app ads? For example, if I want to show an InMobi ad, and then later switch over to AdMob, and then perhaps put in my own affiliate link, is there an easy way to do this? I know this is easy to do on a web page, and even on a mobile web page with Javascript or an iframe, but with apps, I don't really know how you would do this. Are there any standards in API or SDK based ad services, or is each network proprietary, requiring me to write a big complicated ad rotation algorithm? Thanks for any help, Kevin -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help needed to troubleshoot code
Hello all, I am trying to build an app for android and am having issues with HTTP authentication I have asked the same question at stackoverflow but unfortunately have not recieved any responses to it... The question is here stackoverflow ques http://stackoverflow.com/q/7860268 . Can someone help me with this regard... Please note that I have checked the basic errors that could be there by setting the permissions in the manifest file etc but I have observed that neither the thread nor the code for sending the data runs. Thanks -- Naman -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RelativeLayout not working in ADT 14
Hi, I would like to report an issue with RelativeLayout: When Loading a layout XML with RelativeLayout in the designer , all the relations properties are not taking effect. For example :Button A2 which should be below (android:layout_below=@ +id/A1) Button A1 however, the designer shows A2 as overriding A1. And worse: when editing the layout and compiling we get the problem on the device too. with all the views that are annotated with relations overriding themselfs. Hope it was clear. Thanks Nir segev -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse not deploying Android apps on device or Emulator
I just updated the SDK and ADT, I did not uninstall the previous versions I had, I just installed on top of it. Now I cannot get Eclipse to deploy Android apps to a device or to the emulator as a side note, I am also working with Rhomobile, and those apps get deployed to device and to the emulator, so eclipse IS working somehow. I have looked around, and tried disabling the build automatically option and the clean build projects. But nothing has worked to far. I downloaded the latest SDk, ADT and I am using NDK r5b because of rhodes, but it was working fine before the update so I don't think the NDK is the problem. This is what I get: [2011-10-24 03:21:27 - SASNativeStart] -- [2011-10-24 03:21:27 - SASNativeStart] Android Launch! [2011-10-24 03:21:27 - SASNativeStart] adb is running normally. [2011-10-24 03:21:27 - SASNativeStart] Performing com.rhomobile.SASNativeStart.SASNativeStartActivity activity launch [2011-10-24 03:21:27 - SASNativeStart] Automatic Target Mode: using device 'HT07XP800811' [2011-10-24 03:21:27 - SASNativeStart] Uploading SASNativeStart.apk onto device 'HT07XP800811' [2011-10-24 03:21:27 - SASNativeStart] Installing SASNativeStart.apk... And it gets stuck there forever. The progress bar just says: Android SDK Content Loader (Finished) Any ideas? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: using multiple advertising networks - is this possible?
I think that my message was lost. This article explain some that might help you. http://androidtweak.blogspot.com/ On 11 oct, 12:48, KevinC kevinch...@gmail.com wrote: Hi - Is it possible to switch between multiple advertising networks for placing in-app ads? For example, if I want to show an InMobi ad, and then later switch over to AdMob, and then perhaps put in my own affiliate link, is there an easy way to do this? I know this is easy to do on a web page, and even on a mobile web page with Javascript or an iframe, but with apps, I don't really know how you would do this. Are there any standards in API or SDK based ad services, or is each network proprietary, requiring me to write a big complicated ad rotation algorithm? Thanks for any help, Kevin -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bitmap issues - failing silently, not OOM
I have a simple function to get an image file from a remote server and return it as a bitmap, here: public static Bitmap getRemoteImage(final URL aURL) { try { final URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is, (512*1024)); ByteArrayBuffer baf = new ByteArrayBuffer(50); int current = 0; while ((current = bis.read()) != -1) { baf.append((byte)current); } byte[] imageData = baf.toByteArray(); Bitmap bm = BitmapFactory.decodeByteArray(imageData, 0, imageData.length); bis.close(); is.close(); // Just to give me a break point after everything else in the function is done Bitmap b = bm; return b; } catch (Exception e) { Exception xcp = e; xcp = null; }catch(Error e){ Error xcp = e; xcp = null; } return null; } Everything in this function executes exactly as you would expect, the byte array is full with the right amount of data, the decodeByteArray method returns a Bitmap, both close functions work, and then instead of returning the bitmap, it simply bails out of the try block and returns null. No errors, no warnings, nothing. I've had the issues with OOM errors before and this is not throwing one. LogCat is not showing an allocation error as you would expect if it were a memory issue. The bitmap that is returned has properties that I can see, but not the correct ones. The bitmap object (bm) looks like this: bm Bitmap (id=830063098568) mDensity160 mHeight -1 mIsMutable false mNativeBitmap 1348080 mNinePatchChunk null mRecycled false mSrcNamenull mWidth -1 The byte array has a length of 73462, so I know it got the image. The image is a png, but I've tried several different formats. If I could get an error I would at least know what to fix, but it simply skips the return statement inside the try block and returns null every time. Anyone have any insight? ryanm -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Standard Input and Output to Native Process Problem
Here is some code that doesn't work. I think it should and was hoping someone could tell me why it doesn't. It started out to be one thing and then grew into this which didn't work. Now its become kind of a challenge. Basically it starts the sh shell program and attempts to send commands to it and get back the results. It works fine, once. The second time, it stops at writer.close() as if its already closed and I think it is! If it doesn't have the close() it hangs waiting for something to happen. I guess for it to close? I have tried flush() and newline() but they didn't seem to help. I have tried it in the emulator and also on a phone. Same results. @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); body = (EditText)findViewById(R.id.bodyEditText); body.setOnEditorActionListener(mSendListener); try { // Start the shell and save the process id process = Runtime.getRuntime().exec(/system/bin/sh); } catch (IOException e) { body.append(Shell Error\n$ ); e.printStackTrace(); } }//oncreate public void shellExec(String cmd) { try { // Create a writer for the standard input to the shell // and write the command BufferedWriter writer = new BufferedWriter( new OutputStreamWriter(process.getOutputStream())); writer.write(cmd+\n); writer.close(); // Create a reader for the standard output of the shell // and read the result BufferedReader reader = new BufferedReader( new InputStreamReader(process.getInputStream())); int i; char[] buffer = new char[4096]; StringBuffer output = new StringBuffer(); while ((i = reader.read(buffer)) 0) output.append(buffer, 0, i); reader.close(); // Add the result to the EditText text body.append(output.toString()+\n$ ); } catch (IOException e) { body.append(cmd+ Error+\n$ ); } }//shellexec -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Map : Replacing zoom buttom to a customize button and giving control to them
Hi, Everybody Now a days, I am working on an Location-Based application. It uses google map. I am trying to customize the zoom control button and instead of default zoom bar, two button at the bottom of the map. I am able to putting the button at bottom of the map but unable to give zoom control to them. Please give me some suggestion regarding this problem. Thanks a lot... Regards, manish -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Maximum number of activities in a project...
Hi, I want to create a project with number of activities (Activity). Is there any limit? If i move foreword any memory issue will be there? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android - dynamic web image - GUI
Hi there, I am struggling how to define the image in my relative layout which will differ in size for different densities (but I am going to load this image from the web so I guess I can't use those dpi folders in my app for this). I am developing an app which displays information about the book including its cover - I am going to load the image of the same dimensions accross multiple densities and I would like to just scale within my app so small densities would see scaled image on 120*80 px and large densities can have 500*200px image and so on. I'm using com.github.droidfu.widgets.WebImageView for loading images but I am open to use anything else which will help to accomplish this. I've tried to manually check what resolution is current device and then set width/height on imageview but the issue is that com.github.droidfu.widgets.WebImageView doest support that and I do not want to reimplement all the image load/caching/progress image by myself again. It would be also great if I could define the dimension in the xml (I've tried to use include tag and had three different xml files with different dimension in my res folders but unfortuantelly the GUI designer in eclipse doesn't read with/height from included elements so I basically get non-visible image in it until I redefine width/height directly in the layout I am including the element into). I would be really thankful for anything which push me in the right direction. Cheers! -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] trying to get the opengl-es10 tutorial to work
Are you seeing a blank screen? Without logs or trace, it is very difficult to analyze issues. Try calling glGetError method after each GL call to know whether any GL error occured or not. sample code for your reference. public static void checkError(GL g, String identifier) { int error; while ((error = g.glGetError()) != GL.GL_NO_ERROR) { throw new RuntimeException(identifier + : glError + error); } P.S: I've just started learning openGL and found that above method very useful for debugging openGL programs. -regards, prakash m. 2011/10/22 netskink davi...@gmail.com: Hi, I am doing the opengl-es10 tutorial available here: http://developer.android.com/resources/tutorials/opengl/opengl-es10.html I have done up to the part where the green triangle should appear. Unfortunately it does not. I've put a breakpoint in onSurfaceCreated() routine to make sure its hitting the code to gl.glDrawArrays() and it is indeed hitting this code. Is there something I need to do with a manifest which is not listed in the tutorial? John -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Alternative Camera Interfaces
Hey there. I'm writing an app that will be able to capture and upload pictures and video taken by the user. There is a very nice interface for launching the camera from your app, but I want to be difficult haha. I don't want to user to need to go through my app to use the service. They know how their camera works right now, it's probably on their home page, and anything new will just be confusing. I'd rather have them toggle an option in my application in order to set it to watch for pictures and videos they take. I know that google goggles is able to achieve this (when I take a picture goggles will analyze it in the background and return me anything it thinks is relevant) and I'm wondering: do I have access to the same api? Any help would be most appreciated. Cheers, -Wes -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MapActivity doubt
Hi, I am trying an Mapapplication, its working for me alone.but i want to call a mapactivity after a button click of an main activity, i tried it with intents and onclick method, but it doesnt works for me.i ll show my code here, main activity.java import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.MultiAutoCompleteTextView; import android.widget.TextView; public class popup extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.address); TextView txt1=(TextView)findViewById(R.id.multiAutoCompleteTextView1); txt1.setTextSize(15); MultiAutoCompleteTextView mact=(MultiAutoCompleteTextView)findViewById(R.id.multiAutoCompleteTextView2); mact.setLines(20); mact.setTextSize(12); mact.setTextColor(Color.MAGENTA); mact.setText( 909 San Antonio Ave. \n Alameda \n CA \n US \n 94501-3959 \n\n Phone: (510) 864-0435 \n Fax: (415) 651-8787 \n\n Customer Support Services \n (415) 508-3645 \n supp...@addeliverysolutions.com \n\n Sales and Project Management \n Aaron Delloiacono Thies \n (510) 864-0435 \n sa...@addeliverysolutions.com \n ); Button btn=(Button)findViewById(R.id.imageButton1); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent i=new Intent(popup.this.getBaseContext(), map.class); startActivity(i); } }); } } MapAcitivity.java import java.util.ArrayList; import java.util.List; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.KeyEvent; import android.widget.Toast; import com.google.android.maps.GeoPoint; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google.android.maps.OverlayItem; public class map extends MapActivity{ private MapView map=null; private MyLocationOverlay me=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); map=(MapView)findViewById(R.id.map1); map.getController().setCenter(getPoint(37.769585, -122.270117)); map.getController().setZoom(17); map.setBuiltInZoomControls(true); Drawable marker=getResources().getDrawable(R.drawable.m); marker.setBounds(0, 0, marker.getIntrinsicWidth(), marker.getIntrinsicHeight()); map.getOverlays().add(new SitesOverlay(marker)); me=new MyLocationOverlay(this, map); map.getOverlays().add(me); } @Override public void onResume() { super.onResume(); me.enableCompass(); } @Override public void onPause() { super.onPause(); me.disableCompass(); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_S) { map.setSatellite(!map.isSatellite()); return(true); } else if (keyCode == KeyEvent.KEYCODE_Z) { map.displayZoomControls(true); return(true); } return(super.onKeyDown(keyCode, event)); } private GeoPoint getPoint(double lat, double lon) { return(new GeoPoint((int)(lat*100.0), (int)(lon*100.0))); } public class SitesOverlay extends ItemizedOverlayOverlayItem { private ListOverlayItem items=new ArrayListOverlayItem(); public SitesOverlay(Drawable marker) { super(marker); boundCenterBottom(marker); items.add(new OverlayItem(getPoint(37.769585, -122.270117), Ad Delivery Solution , Ad Delivery Solution- Welcomes you)); marker=getResources().getDrawable(R.drawable.greendot); items.add(new OverlayItem(getPoint(37.769625, -122.269453), hi, you are in San Antonio Ave)); marker=getResources().getDrawable(R.drawable.greendot); items.add(new OverlayItem(getPoint( 37.769832, -122.270109), hi, you are near to Ad Delivery Solution)); marker=getResources().getDrawable(R.drawable.greendot); items.add(new OverlayItem(getPoint(37.769573, -122.269575), Ad delivery solution, Official Zone)); populate(); } @Override protected OverlayItem createItem(int i) { return(items.get(i)); } @Override protected boolean onTap(int i) {
[android-developers] video file publishing in android
Hello android developers.I need to create an application for video file publishing to the server in android using rtmp client. Here is the sample code which i have tried http://code.google.com/p/android-rtmp-client/downloads/detail?name=rtmp_client_src.zipcan=2q= first i have tried this sample code in java using rtmp client and it works fine.The same code i have tried in android by creating the object of the java class,but am getting the error caused by java.lang.NullPointerException at org.apache.harmony.nio.internal.SelectorImpl.wakeup(SelectorImpl.java: 418) at org.apache.mina.transport.socket.nio.NioSocketConnector.wakeup(NioSocketConnector.java :295) at org.apache.mina.core.polling.AbstractPollingIoConnector.connect0(AbstractPollingIoConnector. java:345) at org.apache.mina.core.service.AbstractIoConnector.connect(AbstractIoConnector.java: 262) at org.apache.mina.core.service.AbstractIoConnector.connect(AbstractIoConnector.java: 172) at org.red5.server.net.rtmp.RTMPClient.startConnector(RTMPClient.java: 80) at org.red5.server.net.rtmp.BaseRTMPClientHandler.connect(BaseRTMPClientHandler.java: 244) at com.ryong21.example.publisher.PublishClient.start(PublishClient.java: 79) at com.ryong21.example.publisher.Publisher.main(Publisher.java:35) at com.ryong21.example.RtmpclientActivity.onCreate(RtmpclientActivity.java: 37) Please tell me where i am wrong or else give any sample code for video file publishing using rtmp client in android.Thanks in Advance. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using Surface view to render SWF(Flex view ) under Tab Host
Hi, I am trying to render a flex view under one of the tab , but while navigating to another tab this Surface view (Flex view ) is not going away. I have tried setting visibility , setting height of the surface view but nothing seems to be working. Any pointer would be great. Thanks Rohan -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 3D Engine
Assalam o aliukum. I am a student of BS-Computer Science. I want to make 3D android game on poultry form. I want to discuss that what is the best tool for 3D graphics handling and what is the suitable 3D engine in Android? Regards. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse crashes when open layout designer
I have a problem with eclipse, Whenever i try to open layout graphical designer while developing a project on android 2.2 or 1.6 platform, the eclipse crashes and exits immediately. This problem happens also when using any other platform version while setting the UI version in the layout graphical designer ( which is specified by a drop down list in the upper right corner of the designer) to 2.2 or 1.6 I found these logs in the log file: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d2c2203, pid=3844, tid=2224 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode) # Problematic frame: # C [fontmanager.dll+0x12203] # Does any one have any idea about this Thanks in advance -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android bluetooth send string other device (like j2me,iphone,balcberry ...etc)
Hi, i m newbie in android devlopment. and i am tryning to connect and send string continous other devices with bluetooth. pls help me . thnks -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Invoking Android app from external application
Hi All, Is it possible to communicate android application [running in AVD / Actual Device] from external application like .NET / Java application ? best regards, Mohan -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Difference between finish() and finishActivity() in android
Assalam o alikumk! I want to know the Difference between finish() and finishActivity() in android, in deeply. Regards. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android + JAAS - How to use DatabaseServerLoginModule already configured
Hi Folks, I have never done anything related to JAAS nor Android so it is possible to me to say something wrong here so I am sorry. I created my own DatabaserverLoginModule since the one that came with JBoss 7.0.2 Full is now working fine. There is a known bug in PicketBox, so I had to override the getRoleSets. It is working very fine wiht a PostgreSQL database. The authentication on the web tier is working fine but I am not able to do two things, pass the authentication to EJB and also use the authentication in Android. Let me focus on Android stuff. My application is going to take pictures, make some annotations about it and submit it to a REST that is already implemented. I read about services, AccountManager and also used a lot of things forom SampleSyncAdapter, http://developer.android.com/resources/samples/SampleSyncAdapter/index.html. I put this kind of authentication inside my app but I could not know how to call my authentication server in JBoss? This example makes a POST and it uses a defined token. How should I implement it? I have to use the same database that MyDatabaseServerLoginModule is using. I could not understand one thing as well. Does this used only when we want a synch stuff or also to save app credentials in Android system? I used for the second purpose. I understand that my authenticationService is a pugglable stuff and it has to connect to a webservice or somehting else in order to authenticate or validate/generate a token. Also how can I avoid any activity on my app to be invoke if the user has never signed in? Thanks in advance. Best Regards, Ricardo Morais -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MapActivity doubt
Add map activity in to the manifest file -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Difference between finish() and finishActivity() in android
hi http://stackoverflow.com/questions/4182761/finish-old-activity-and-start-a-new-one-or-vice-versa http://stackoverflow.com/questions/4687303/how-do-i-finish-a-task-on-android http://stackoverflow.com/questions/7117690/whats-the-difference-between-finish-and-finishactivityint-requestcode-in-and -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android - Sign-In with JAAS
Hi Folks, I have never done anything related to JAAS nor Android so it is possible to me to say something wrong here so I am sorry. I created my own DatabaserverLoginModule since the one that came with JBoss 7.0.2 Full is now working fine. There is a known bug in PicketBox, so I had to override the getRoleSets. It is working very fine wiht a PostgreSQL database. The authentication on the web tier is working fine but I am not able to do two things, pass the authentication to EJB and also use the authentication in Android. Let me focus on Android stuff. My application is going to take pictures, make some annotations about it and submit it to a REST that is already implemented. I read about services, AccountManager and also used a lot of things forom SampleSyncAdapter, http://developer.android.com/resources/samples/SampleSyncAdapter/index.html. I put this kind of authentication inside my app but I could not know how to call my authentication server in JBoss? This example makes a POST and it uses a defined token. How should I implement it? I have to use the same database that MyDatabaseServerLoginModule is using. I could not understand one thing as well. Does this used only when we want a synch stuff or also to save app credentials in Android system? I used for the second purpose. I understand that my authenticationService is a pugglable stuff and it has to connect to a webservice or somehting else in order to authenticate or validate/generate a token. Also how can I avoid any activity on my app to be invoke if the user has never signed in? Thanks in advance. Best Regards, Ricardo Morais -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Space widget in ADT Graphical Layout
Ok, well that explains a few things. I like the way you can see the structure with the show structure button. Grid mode sounds interesting as well, is that related to the Snap to Grid button? BTW, thanks for all the work on ADT, it's really great. I really like the new formatting for XML files, makes managing layouts a breeze! Thanks. On Oct 23, 8:19 pm, Tor Norbye tnor...@google.com wrote: The Space views are actually hidden by default; ADT 14 has the beginnings of a rich editor for GridLayouts, which provides guidelines etc -- and it hides Space views by default. There's a Grid mode where you get to edit the view more as a grid than as a free-form layout, so it makes sense to not hide them in that mode; I'll change that. But note that the ADT 14 support is incomplete and has many remaining issues so it's not ready for primetime yet and that's why it's not really mentioned anywhere yet. -- Tor On Sun, Oct 23, 2011 at 8:43 AM, Taf neild...@gmail.com wrote: Hi, I was just looking through some of the API demos for the latest release of Android. In particular I was looking at the grid_layout_1.xml file Which is a GridLayout, and contains a Space widget. I'm looking at this in the ADT Graphical Layout view in eclipse. For me it doesn't seems to display the View correctly. Also in the outline panel the Space widget is not shown in the layout tree, whereas all the other widgets, such as Buttons and text boxes are. Just wondering if anyone else has seen this? Fairly sure I have all the latest updates so I don't think there's a problem there. Thanks. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network related
I don't think you thought about how to implement this using the way I described. Instead of having a thread sitting in the background, why not register a callback with the system that, whenever the connectivity changes, performs an appropriate action? For example, whenever the connectivity changes, it will call your handler and you can change the text in the textview. A thread just sounds like a nasty way to implement this since there is already a way to do this.. However if you really want to look at ConnectivityManager more, it has an isConnectedOrConnecting() method.. Kris On Mon, Oct 24, 2011 at 3:08 AM, sourabh sahu souruit...@gmail.com wrote: Thanks, but this thing I figured.main issue is ,there is a need of Thread kind of stuff which loops around whenever network comes online or offline. It should automatically reflect it to view. On Mon, Oct 24, 2011 at 11:47 AM, Kristopher Micinski krismicin...@gmail.com wrote: Sounds like the first thing you need to be able to do is to be able to detect when the network comes online and offline right? http://developer.android.com/reference/android/net/ConnectivityManager.html On Mon, Oct 24, 2011 at 2:01 AM, sourabh sahu souruit...@gmail.com wrote: I have a TextView, what I want is whenever my Network comes online/offline.It should get reflected to TextView. How Can I do this. Please suggest. Thanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Difference between finish() and finishActivity() in android
thanks dear On Mon, Oct 24, 2011 at 4:33 AM, Ratheesh Valamchuzhy android...@gmail.comwrote: hi http://stackoverflow.com/questions/4182761/finish-old-activity-and-start-a-new-one-or-vice-versa http://stackoverflow.com/questions/4687303/how-do-i-finish-a-task-on-android http://stackoverflow.com/questions/7117690/whats-the-difference-between-finish-and-finishactivityint-requestcode-in-and -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WallpaperService.Engine.onOffsetsChanged() gone in ICS?
I don't think the issue is that onOffsetsChanged() isn't getting called. It's that it only gets called once, with values of 0 for everything. I tried this with one of mine and logged calls to onOffsetsChanged(). It is not called while scrolling home screens. I noticed during Andy Rubin's presentation in Hong Kong that the wallpaper had no reaction to scrolling home screens, and I was thinking, 'Oh no, they are doing the same thing Sense 3.0 did.' -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Impossible to Create Write to or Read From Files in the SD Card
Thanks for all replies! Before reading the commands i went for a walk for 5 minutes. When i turned back tried this code snippet,it worked. I wanted to share for who will have the same problem with me. But i realized createNewFile() function is useless. It creates the file even if i use or not. Is there a key point of this function? File path = Environment.getExternalStorageDirectory(); File myFile = new File (path,file1.txt); FileWriter writer; try { writer = new FileWriter(textFile); BufferedWriter out = new BufferedWriter(writer); out.write(hey); out.close(); } or File myFile = new File(/sdcard/file1.txt); myFile.createNewFile(); try { FileOutputStream fos = new FileOutputStream(myFile); OutputStreamWriter out = new OutputStreamWriter(fos); out.close(); fos.close();} But i realized createNewFile() function is useless. It creates the file even if i use or not. Is there a key point of this function? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Network related
Can you please provide me little bit of Code for that. Thanks, Souerabh On Mon, Oct 24, 2011 at 5:14 PM, Kristopher Micinski krismicin...@gmail.com wrote: I don't think you thought about how to implement this using the way I described. Instead of having a thread sitting in the background, why not register a callback with the system that, whenever the connectivity changes, performs an appropriate action? For example, whenever the connectivity changes, it will call your handler and you can change the text in the textview. A thread just sounds like a nasty way to implement this since there is already a way to do this.. However if you really want to look at ConnectivityManager more, it has an isConnectedOrConnecting() method.. Kris On Mon, Oct 24, 2011 at 3:08 AM, sourabh sahu souruit...@gmail.com wrote: Thanks, but this thing I figured.main issue is ,there is a need of Thread kind of stuff which loops around whenever network comes online or offline. It should automatically reflect it to view. On Mon, Oct 24, 2011 at 11:47 AM, Kristopher Micinski krismicin...@gmail.com wrote: Sounds like the first thing you need to be able to do is to be able to detect when the network comes online and offline right? http://developer.android.com/reference/android/net/ConnectivityManager.html On Mon, Oct 24, 2011 at 2:01 AM, sourabh sahu souruit...@gmail.com wrote: I have a TextView, what I want is whenever my Network comes online/offline.It should get reflected to TextView. How Can I do this. Please suggest. Thanks, Sourabh -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Handling asynchronous events and blocking
On Mon, Oct 24, 2011 at 1:20 AM, Peter Webb r.peter.w...@gmail.com wrote: This must be a very common problem, and I would expect a simple standard solution. As I mentioned, on other platforms I have used a guaranteed atomic process (file creation)as a semaphore for synchronisation, but I doubt that is the recommended solution for Android ... http://developer.android.com/reference/java/util/concurrent/package-summary.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: RelativeLayout not working in ADT 14
Hi Nir, I'm having exactly the same problem, any luck ? Efi On Oct 22, 11:47 pm, nir segev nirse...@gmail.com wrote: Hi, I would like to report an issue with RelativeLayout: When Loading a layout XML with RelativeLayout in the designer , all the relations properties are not taking effect. For example :Button A2 which should be below (android:layout_below=@ +id/A1) Button A1 however, the designer shows A2 as overriding A1. And worse: when editing the layout and compiling we get the problem on the device too. with all the views that are annotated with relations overriding themselfs. Hope it was clear. ThanksNirsegev -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] stack overflow error in listview android
Hi friends, I am getting stack overflow error ,when i scroll the normal listview which comprises of only text . Below the stack trace: 10-24 17:48:43.400: ERROR/AndroidRuntime(912): java.lang.StackOverflowError 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestChildFocus(ViewGroup.java:431) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addViewInner(ViewGroup.java:1998) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addView(ViewGroup.java:1865) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addView(ViewGroup.java:1822) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addView(ViewGroup.java:1802) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at com.tli.meetcha.SearchClass$1.onFocusChange(SearchClass.java:87) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.onFocusChanged(View.java:2666) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.widget.TextView.onFocusChanged(TextView.java:6469) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.handleFocusGainInternal(View.java:2489) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.requestFocus(View.java:3605) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1032) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.requestFocus(View.java:3556) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewRoot.clearChildFocus(ViewRoot.java:1586) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2207) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2181) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.removeView(ViewGroup.java:2129) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at com.tli.meetcha.SearchClass$1.onFocusChange(SearchClass.java:91) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.onFocusChanged(View.java:2666) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.widget.TextView.onFocusChanged(TextView.java:6469) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.unFocus(View.java:2594) -- Regards, Vani Reddy -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] stack overflow error in listview android
give the code -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Scenario where initLoader() does not call onLoadFinished()
The new revision (rev. 4) of android support package fixes these issues. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: alarm type application: alarm manager not waking up application
On Mon, Oct 24, 2011 at 1:57 AM, John Goche johngoch...@googlemail.comwrote: Well, here is what I am doing now: I acquire a wakelock inside the broadcast receiver and release it from my activity. The only problem I have is that the play() method is asynchronous. I would like to be notified when the sound stops playing via a callback but I see no method for doing so here: http://developer.android.com/reference/android/media/Ringtone.html#play%28%29 I wonder whether there is a way to detect this without having to poll calling isPlaying() every second or so. Well, here is the solution to turning off the wakelock when the sound stops playing: Regards, John Goche this.ringtone = RingtoneManager.getRingtone(this, uri); if (this.ringtone != null) this.ringtone.play(); // check every five minutes if ringtone is done // and release wake lock when done playing alarm sound final int checkInterval = 5000; final Runnable runnable = new Runnable() { public void run() { System.out.println(I'm running!!!); System.out.println(!AlarmExpiredActivity.this.ringtone.isPlaying()); System.out.println(OK.); if (AlarmExpiredActivity.this.ringtone != null !AlarmExpiredActivity.this.ringtone.isPlaying()) WakeLockManager.putWakeLock(); else AlarmExpiredActivity.this.view.postDelayed(this, checkInterval); } }; this.view.postDelayed(runnable, checkInterval); -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Newline char
On Mon, Oct 24, 2011 at 5:03 AM, Goutom goutom.sust@gmail.com wrote: How to do this? http://tinyurl.com/3ro35f2 http://tinyurl.com/3ro35f2 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Maps do Android
You should post in English ... like the quote in your signature ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Data values not populating in the gridview on screen orientation using onConfigurationChanged
In the onCreate() method of an activity -- done all the initialization part and also invoked the server using the HTTP connection, to get the images -- am using the onConfigurationChanged() of an activity to get the handle of the Screen Orientation -- but when it is rotated from horizontal to Vertical (vice-versa) new xml for landscape view getting reflected but the not values in the gridview -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 3.1 and Bluetooth HID
The Android 3.1 Platform Highlights [1] states: To make the platform even better for gaming, Android 3.1 adds support for most PC joysticks and gamepads that are connected over USB or Bluetooth HID. Has anyone out there successfully got an Android application to communicate with a Bluetooth HID device? In that case, how? Is it the USB host API [2] that should be used? We've tried with a Motorola XOOM 3.1 without any success, but there are many threads reporting problems with the Xoom and USB host API. References: [1] http://developer.android.com/sdk/android-3.1-highlights.html#UserFeatures: [2] http://developer.android.com/guide/topics/usb/host.html -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onCallStateChanged(int state, String number)
Hi, I observed an undocumented behavior of the method PhoneStateListener.onCallStateChanged(int state, String incomingNumber). When the method is called on a new ringing call the incommingNumber is provided, but in the other 2 cases the number is missing!! My question is: Is this the default behavior (and the issue is in documentation) or is a bug in my platform? Test was made on Nexus One upgrade 2.3.6. Tanks for your time! Regards Andrei. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] stack overflow error in listview android
ll=(LinearLayout)findViewById(R.id.listView); linflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); search_interest =(EditText)findViewById(R.id.search_interest); EditText search_location =(EditText)findViewById(R.id.search_interest); names.add(Linux); names.add(Windows7); names.add(Eclipse); names.add(Suse); names.add(Ubuntu); names.add(Solaris); names.add(Android); names.add(iPhone); currentView = linflater.inflate(R.layout.listview, null); list1 =(ListView)currentView.findViewById(R.id.list); // list1.setAdapter(arrayAdapter); //list1.setAdapter(new ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1, names)); list1.setAdapter(new ListItemsInterest(SearchClass.this,names)); previousView = linflater.inflate(R.layout.listview, null); list2 =(ListView)previousView.findViewById(R.id.list); String[] namesLOCATIOn = new String[] { LOCATION , , Eclipse, Suse, cc, , , iPhone}; //list2.setAdapter(new ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1, namesLOCATIOn)); list2.setAdapter(new ListItemsLocation(SearchClass.this,namesLOCATIOn)); search_interest.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus) { ll.removeView(currentView); ll.removeView(previousView); ll.addView(currentView); } else{ ll.removeView(previousView); ll.removeView(currentView); ll.addView(previousView); } } }); -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] stack overflow error in listview android
Check u'r XML file... may be error in XML... On Mon, Oct 24, 2011 at 6:37 PM, vani reddy vani.reddy.bl...@gmail.comwrote: ll=(LinearLayout)findViewById(R.id.listView); linflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); search_interest =(EditText)findViewById(R.id.search_interest); EditText search_location =(EditText)findViewById(R.id.search_interest); names.add(Linux); names.add(Windows7); names.add(Eclipse); names.add(Suse); names.add(Ubuntu); names.add(Solaris); names.add(Android); names.add(iPhone); currentView = linflater.inflate(R.layout.listview, null); list1 =(ListView)currentView.findViewById(R.id.list); // list1.setAdapter(arrayAdapter); //list1.setAdapter(new ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1, names)); list1.setAdapter(new ListItemsInterest(SearchClass.this,names)); previousView = linflater.inflate(R.layout.listview, null); list2 =(ListView)previousView.findViewById(R.id.list); String[] namesLOCATIOn = new String[] { LOCATION , , Eclipse, Suse, cc, , , iPhone}; //list2.setAdapter(new ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1, namesLOCATIOn)); list2.setAdapter(new ListItemsLocation(SearchClass.this,namesLOCATIOn)); search_interest.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus) { ll.removeView(currentView); ll.removeView(previousView); ll.addView(currentView); } else{ ll.removeView(previousView); ll.removeView(currentView); ll.addView(previousView); } } }); -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] stack overflow error in listview android
give the full project folder, (easy to find the errors) -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en