[android-developers] Hi friends

2013-06-25 Thread Ibrahim Sada
Friends I Am trying to connect server on pc and client on android device.. My server is working fine... but my client is not working ... Here is my sever and client code... Server Code... public class Server_tcp { void run(){ { try {

[android-developers] setting priority to wifi configured network so that has to connect to specified network in the region if available

2013-06-25 Thread Kondlada
hi, Any one has succeed in setting wifi priority , please suggest me . Thanks regards, karthik kondlada -- -- 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

[android-developers] IabHelper (and OpenGL) losing the application context once a payment process is started

2013-06-25 Thread reaktor24
Hi After spending days debugging my Android application I realised that during the payment process, once the Google Play notification appears the surface is invalidated and recreated. This means I am recreating the OpenGL context and the IabHelper needs an updated context. So what I have done

[android-developers] Re: IabHelper (and OpenGL) losing the application context once a payment process is started

2013-06-25 Thread a1
By default GLSurfaceView destroy context on pause, you can modify this behavior with: http://developer.android.com/reference/android/opengl/GLSurfaceView.html#setPreserveEGLContextOnPause(boolean), if you app supports API levels 11 you can use one of many GLSurfaceView replacements with this

[android-developers] Re: IabHelper (and OpenGL) losing the application context once a payment process is started

2013-06-25 Thread reaktor24
Hi. thanks for the reply. I support Android 2.2 plus so don't really want to use that method. Also I don't like the look of this: 'the EGL context *may* be preserved when the GLSurfaceView is paused' On Tuesday, 25 June 2013 11:56:28 UTC+1, a1 wrote: By default GLSurfaceView destroy context

[android-developers] Re: Displaying the long Press Power off screen/dialog

2013-06-25 Thread reaktor24
I am sure there is no way you can override the power button as it is an integral feature of smartphones just like the home button which also cannot be overridden. On Monday, 24 June 2013 16:33:46 UTC+1, ame...@googlemail.com wrote: Hey everyone, is there a way in Android to show the Phone

[android-developers] Re: IabHelper (and OpenGL) losing the application context once a payment process is started

2013-06-25 Thread a1
W dniu wtorek, 25 czerwca 2013 13:06:35 UTC+2 użytkownik reaktor24 napisał: Hi. thanks for the reply. I support Android 2.2 plus so don't really want to use that method. Also I don't like the look of this: 'the EGL context *may* be preserved when the GLSurfaceView is paused' EGL can on

[android-developers] Re: Displaying the long Press Power off screen/dialog

2013-06-25 Thread Piren
this is not what he asked. OP: Try sending events using http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POWER (this thread deals with the Menu key, it might help you as well: https://groups.google.com/forum/#!topic/android-developers/ZAXh2EKewKM ) On Tuesday, June

[android-developers] Re: Displaying the long Press Power off screen/dialog

2013-06-25 Thread amey523
Yes, if forcing it through key code events work its fine with me. On Tuesday, June 25, 2013 12:53:07 PM UTC+1, Piren wrote: this is not what he asked. OP: Try sending events using http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POWER (this thread deals with the

[android-developers] Re: Displaying the long Press Power off screen/dialog

2013-06-25 Thread amey523
dispatchKeyEvent(); has been deprecated in 4.1. Will need to figure that out On Tuesday, June 25, 2013 12:53:07 PM UTC+1, Piren wrote: this is not what he asked. OP: Try sending events using http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POWER

[android-developers] Re: Detect if an outgoing call has been answered

2013-06-25 Thread amey523
Use a BroadcastReceiver to register fr Phone call events. Use TelephonyManager to actually check the Call states. TelephonyManager.EXTRA_STATE_OFFHOOK means the call is active. Use android.intent.action.NEW_OUTGOING_CALL for another BroadcastReceiver to receive events when outgoing calls are

[android-developers] Re: reverb effect on media player

2013-06-25 Thread Ram
*Hello Yamusani ,* I am looking for the same if you have got any solution for this problem then please help me On Wednesday, May 29, 2013 4:54:24 PM UTC+5:30, Yamusani Vinay wrote: I tries to apply reverb effect on media player but i'm getting MediaPlayer error(-22,0).. code:

Re: [android-developers] setting priority to wifi configured network so that has to connect to specified network in the region if available

2013-06-25 Thread Robert Greenwalt
Can you clarify your question? Do you mean setting relative priority between known wifi networks or do you mean relative priority between wifi and cellular data? On Tue, Jun 25, 2013 at 2:17 AM, Kondlada karthik.kondl...@gmail.comwrote: hi, Any one has succeed in setting wifi

[android-developers] Programmatically rebooting

2013-06-25 Thread amey523
Hi everyone, is it possible to programmatically reboot an Android device? I'm currently working on Samsung Galaxy S3 and it doesn't seem to work. The PowerManager.reboot(null) throws an exception during Runtime. Does this work on rooted devices only? Thanks. Ameya -- -- You received this

Re: [android-developers] Re: reverb effect on media player

2013-06-25 Thread Yamusani Vinay
no..i did the same thing but i did not got any solution.. On Tue, Jun 25, 2013 at 7:09 PM, Ram ram.pe...@mindbowser.com wrote: *Hello Yamusani ,* I am looking for the same if you have got any solution for this problem then please help me On Wednesday, May 29, 2013 4:54:24 PM

[android-developers] API to submit stack traces to Google Play

2013-06-25 Thread Ted Hopp
When an app crashes due to an uncaught exception, the user can submit a crash report, that shows up in the developer console, showing a stack trace and other useful information. But if the app catches the exception, it doesn't crash and I don't know of a good way of receiving diagnostic

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread a1
The alternative is to start removing catch clauses so that the app will, in fact, crash and the developer can at least see something. This seems like a silly approach, though. Quite the contrary: if you are catching runtime exceptions then you are doing it wrong (most of the runtime

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread Nathan
To get a log from users, it sucks, but you have to incorporate it into your own code. Perhaps a Contact HelpDesk form that has a checkbox to include log []. I may make that checked by default in my next release. https://code.google.com/p/android-log-collector/ As to other options, there are

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread Nathan
On Tuesday, June 25, 2013 10:10:44 AM UTC-7, a1 wrote: The alternative is to start removing catch clauses so that the app will, in fact, crash and the developer can at least see something. This seems like a silly approach, though. Quite the contrary: if you are catching runtime

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread a1
The idea of exceptions as unexpected falls away once you are doing anything like network access or even file access. Java distinguish between this two situation with checked and unchecked (runtime) exception. Runtime exceptions should never be cached (unless you can propose some valid

Re: [android-developers] API to submit stack traces to Google Play

2013-06-25 Thread TreKing
On Tue, Jun 25, 2013 at 11:42 AM, Ted Hopp ted.h...@gmail.com wrote: Any suggestions for what to do about these situations? What I do: Use ACRA-style bug reporting functionality to silently send myself bug reports. Currently to a Google Spreadsheet, eventually to a dedicated server.

Re: [android-developers] Re: Displaying the long Press Power off screen/dialog

2013-06-25 Thread Ken Chen
-Original Message- From: Piren gpi...@gmail.com Sender: android-developers@googlegroups.com Date: Tue, 25 Jun 2013 04:53:07 To: android-developers@googlegroups.com Reply-To: android-developers@googlegroups.com Subject: [android-developers] Re: Displaying the long Press Power off

[android-developers] Open remote image in Gallery

2013-06-25 Thread MathieuB
Hello, I have an app with thumbnails and when the user touch the thumb, I would like to open the full image in fullscreen. I try opening the image in the default Gallery app, but it doesn't work on all devices. Here's the snippet : Intent intent = new Intent(Intent.ACTION_VIEW,

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread Nathan
On Tuesday, June 25, 2013 11:04:42 AM UTC-7, a1 wrote: Assuming you are doing all that and giving the best user friendly message to the user possible, you still might have a vested interest in the nitty gritty details of those exceptions to fix the problem. Original poster's query is

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread a1
Assuming you are doing all that and giving the best user friendly message to the user possible, you still might have a vested interest in the nitty gritty details of those exceptions to fix the problem. Original poster's query is very legitimate. Why? How can you fix IOException?

[android-developers] Version upgrade upload failed

2013-06-25 Thread StevenHu
I got this Google Play message: Upload failed You need to use a different package name because com.. is already used by one of your other applications. I understand that the package name is *supposed* to be the same because it is an upgrade. I went from version 2 to 3. Just in case I

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread Nathan
On Tuesday, June 25, 2013 2:02:43 PM UTC-7, a1 wrote: Assuming you are doing all that and giving the best user friendly message to the user possible, you still might have a vested interest in the nitty gritty details of those exceptions to fix the problem. Original poster's query is

[android-developers] What's up Liz, it's Andrey. I got back home a little while ago. Are you guys still on the rWhat's up Liz, it's Andrey. I got back home a little while ago. Are you guys on the road

2013-06-25 Thread Andrey
-Andrey -- -- 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

[android-developers] Re: Version upgrade upload failed

2013-06-25 Thread RichardC
Did you use the same signing key? On Tuesday, June 25, 2013 10:07:29 PM UTC+1, StevenHu wrote: I got this Google Play message: Upload failed You need to use a different package name because com.. is already used by one of your other applications. I understand that the package

[android-developers] Re: Version upgrade upload failed

2013-06-25 Thread StevenHu
Yes. If I used a different signing key, then it would have gone through as a new app. -- -- 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

[android-developers] Re: API to submit stack traces to Google Play

2013-06-25 Thread Ted Hopp
On Tuesday, June 25, 2013 5:02:43 PM UTC-4, a1 wrote: You are attacking a strawman. I've commented on a very specific quote from original post: The alternative is to start removing catch clauses so that the app will, in fact, crash and the developer can at least see something. This seems

Re: [android-developers] Version upgrade upload failed

2013-06-25 Thread TreKing
On Tue, Jun 25, 2013 at 4:07 PM, StevenHu stevehust...@gmail.com wrote: Anything else I should be checking, or am I following the wrong procedure? You weren't explicit, so let's be sure ... you are, in fact, attempting to upload an update and using the Upload New APK option under an existing

Re: [android-developers] how to implement front camera

2013-06-25 Thread TreKing
On Mon, Jun 24, 2013 at 12:25 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: how to implement front camera for capturing image and then email that image. Try reading the Android documentation and using Google. See how far that gets you.

Re: [android-developers] Programmatically rebooting

2013-06-25 Thread TreKing
On Tue, Jun 25, 2013 at 11:20 AM, amey...@googlemail.com wrote: Hi everyone, is it possible to programmatically reboot an Android device? I'm currently working on Samsung Galaxy S3 and it doesn't seem to work. The PowerManager.reboot(null) throws an exception during Runtime. Does this work on