Re: [android-developers] Re: Is there any way of knowing the screen size before rotation occurs?

2013-03-05 Thread Piren
Still not seeing how is this an issue :)... Do the rotation, then access the cloud server. On Tuesday, March 5, 2013 9:46:43 AM UTC+2, AndroidCompile wrote: It is important since the cloud server I am working with needs to know the layout I am using before I start my session. On Mon, Mar

[android-developers] Help needed

2013-03-05 Thread ramesh babu
hi frnds, i am just start learning about android,while i am developing a simple app i got stuck with these error: Error: No resource found that matches the given name (at 'title' with value '@string/action_settings'). -- -- You received this message because you are subscribed to the

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 1:44 AM, RichardC richard.crit...@googlemail.comwrote: http://developer.android.com/reference/android/app/Activity.html#isFinishing() isFinishing() is unfortunately useless for this purpose - it's just 'false' in both cases, on 2.1, 2.2, 2.3, 4.1 and 4.2 (so I suppose

Re: [android-developers] Help needed

2013-03-05 Thread Asheesh Arya
check the project directory name folder layout ..in layout folder you find strings.xml file ..please check your resource whaether you specify your resources in string.xml or not -- -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Piren
The obvious way, since it's your app.. just keep a flag saying im starting an activity whenever you start the prefs one... On Tuesday, March 5, 2013 12:52:30 PM UTC+2, latimerius wrote: On Tue, Mar 5, 2013 at 1:44 AM, RichardC richard...@googlemail.comjavascript: wrote:

[android-developers] Re: Help needed

2013-03-05 Thread Gabriel Augusto
Check strings.xml in 'values' folder Em terça-feira, 5 de março de 2013 07h40min20s UTC-3, ramesh babu escreveu: hi frnds, i am just start learning about android,while i am developing a simple app i got stuck with these error: Error: No resource found that matches the given

Re: [android-developers] Re: Help needed

2013-03-05 Thread naresh pedagani
Hi, remove the code like android:text='@string/action_settings in xml file and clean the project.then add the code android:text='@string/action_settings, then it will work.it happens some time if R.java file is not updated. ThanksRegards, Naresh On Tue, Mar 5, 2013 at 5:15 PM, Gabriel Augusto

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 12:13 PM, Piren gpi...@gmail.com wrote: The obvious way, since it's your app.. just keep a flag saying im starting an activity whenever you start the prefs one... Yes, that's what I'm doing at the moment. However, it's getting kludgy fairly fast. One problem is

Re: [android-developers] Re: Help needed

2013-03-05 Thread ramesh babu
thanks bro's problem has been recovered -- -- 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

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
Frankly, I've never been clear on what exactly onDestroy() is good for. At any rate, it doesn't seem to be a good match to solve my problem as first, it's not even guaranteed to be called, and second, even if it is called, its docs specifically warn against using it to save data, saying that

Re: [android-developers] Re: Help needed

2013-03-05 Thread ramesh babu
for what purpose findViewById is used -- -- 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

Re: [android-developers] Re: Help needed

2013-03-05 Thread naresh pedagani
Hi , findViewById() method is used to get the object of the view. *example*: *main.xml* contain one button i want to provide the action for this button, so we need to create the object in the java file by passing id. Button android:id=@+id/btn_New

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Piren
I see. I can give you some pointers: - This whole thing seems a bit convoluted, you might be better off taking a 5 minute breather and instead of trying to fix the current issue, try to figure out how to redesign your app so this issue never arrises... try to attack it from a different

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
As for rethinking the whole issue, the only thing I can think of is to get rid of the PreferenceActivity. I had the same problems a couple of months ago with the standard activity chooser for an Intent which is an Activity itself (never figured out why) so it caused spurious onPause()/onResume()

Re: [android-developers] Re: Help needed

2013-03-05 Thread ramesh babu
thanks naresh bro -- -- 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

[android-developers] Re: Customizing progress Dialogs

2013-03-05 Thread bob
Here's one method you can use: * Dialog d = new Dialog(this);* * d.getWindow().setBackgroundDrawableResource(R.drawable.transparent);* * d.setContentView(new ProgressBar(this));* * d.show();* Of course you will need a transparent PNG in your drawable folder. Thanks. On Tuesday, February 12,

[android-developers] Re: problem in detecting samsung android tablet 2 P5100

2013-03-05 Thread bob
Are you talking about the Galaxy Tab 2? Thanks. On Monday, March 4, 2013 9:40:56 PM UTC-6, |-NK-| wrote: I have enabled Usb debugging. However i am not sure whether installing kies will install adb drivers. So do u know where can I find adb drivers for that specific tablet. Thanks

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Piren
Not sure what the issues you mention, never had those... onPause/onResume are pretty much the only lifecycle events that are constant in behavior :) The way you describe it, it should be simple, so not sure what you're missing... I suggest you stop using the Pref's activity onResume/onPause to

[android-developers] Ethernet connection force IP

2013-03-05 Thread Marta Ribeiro
I'm trying to connect a DSP to a samsung galaxy via an USB/Ethernet dungle. The problem is the android is not to be connected to any wi-fi, but i stull need an IP adress, as i need to tell the DSPto the send to an IP adress (which would be the IP of the samsung galaxy). Is there any way to

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 4:41 PM, Piren gpi...@gmail.com wrote: Not sure what the issues you mention, never had those... onPause/onResume are pretty much the only lifecycle events that are constant in behavior :) I described it in my original post - in short, if the main activity is being

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Piren
I described it in my original post - in short, if the main activity is being paused because the user is leaving the app, a lot of things have to be closed, saved, cleaned up etc. If it's being paused just to show preferences, those things should not happen. Oh,, i thought you meant you

[android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread Brad Stintson
I wrote following code in xml file but Imageview (shown in bold) not Showing Image on Android 2.2 and not on Android 4.0 Please help out. LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools;

Re: [android-developers] Android Tablet Devlopment

2013-03-05 Thread Brad Stintson
Ideally minimum level should be 2.2 and maximum to available SDK. (4.1 or so). On Mon, Mar 4, 2013 at 2:43 PM, Rahul Kaushik rahulkaushi...@gmail.comwrote: Hi Team, I am developing an hybrid app in android ,I want this app for my android phone and tablet also which Build SDKAnd Minimum

Re: [android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread Belhouchet Ines
Try with diffrent size Le 5 mars 2013 17:50, Brad Stintson geek.bin...@gmail.com a écrit : I wrote following code in xml file but Imageview (shown in bold) not Showing Image on Android 2.2 and not on Android 4.0 Please help out. LinearLayout

Re: [android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread Brad Stintson
I tried on 3 different devices with android 4.0. But it is not showing. A white screen is shown, with scroll bar of height equivalent to height of image, which means that image is loaded. I am not able to understand why it is not showing then. On Tue, Mar 5, 2013 at 10:24 PM, Belhouchet Ines

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread TreKing
On Tue, Mar 5, 2013 at 10:14 AM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 4:41 PM, Piren gpi...@gmail.com wrote: Not sure what the issues you mention, never had those... onPause/onResume are pretty much the only lifecycle events that are constant in behavior :) I

Re: [android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread TreKing
On Tue, Mar 5, 2013 at 10:46 AM, Brad Stintson geek.bin...@gmail.comwrote: I wrote following code in xml file but Imageview (shown in bold) not Showing Image on Android 2.2 and not on Android 4.0 You need to provide a little more info then that. Maybe post a screenshot to show the problem

[android-developers] Re: problem in detecting samsung android tablet 2 P5100

2013-03-05 Thread |-NK-|
Yes. I am referring to samsung galaxy tab2 GT-P5100 -- -- 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] Re: problem in detecting samsung android tablet 2 P5100

2013-03-05 Thread |-NK-|
Yes. I am referring to samsung galaxy tab2 GT-P5100 -- -- 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

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 5:41 PM, Piren gpi...@gmail.com wrote: - Dont use a different Activity to show Prefs (you can re-use your current one, i personally always disliked the PreferencesActivity class.. its ugly as fuck) you can either just replace your current contentView or use other

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 6:09 PM, TreKing treking...@gmail.com wrote: On Tue, Mar 5, 2013 at 10:14 AM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 4:41 PM, Piren gpi...@gmail.com wrote: Not sure what the issues you mention, never had those... onPause/onResume are pretty

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread TreKing
On Tue, Mar 5, 2013 at 11:43 AM, Latimerius l4t1m3r...@gmail.com wrote: Unfortunately, onDestroy() is really too late for the requirements I have. I shouldn't keep threads running until onDestroy() as that could eat quite a lot of battery power over time. Threads you can start and stop with

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 6:58 PM, TreKing treking...@gmail.com wrote: Threads you can start and stop with onPause / onResume. Assuming it's that simple in your case (I'm going to guess it's not =P ) Admittedly, I could probably stop my game thread in the main activity onPause() and resume it

[android-developers] Re: problem in detecting samsung android tablet 2 P5100

2013-03-05 Thread bob
Okay, this sounds like the 10.1 inch version. You should be able to get the drivers here: http://www.samsung.com/us/support/owners/product/GT-P5113TSYXAR What version of Windows do you have? https://lh6.googleusercontent.com/-3eeNPjgecWA/UTY_f5vwwLI/ATw/RMFXrx2jd9g/s1600/samsung.png

[android-developers] Re: Android Tablet Devlopment

2013-03-05 Thread bob
What version of Android are your devices running? You can see this in the *Settings* App if you go to the bottom option - *About tablet*. On Monday, March 4, 2013 3:13:52 AM UTC-6, rahul kaushik wrote: Hi Team, I am developing an hybrid app in android ,I want this app for my android

[android-developers] Re: Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread bob
Why would you have a ScrollView where the width and height are set to * wrap_content*? How will it ever have anything to scroll if it is always sized to its content? On Tuesday, March 5, 2013 10:46:22 AM UTC-6, Geek wrote: I wrote following code in xml file but Imageview (shown in

[android-developers] Re: Edit Text

2013-03-05 Thread bob
Maybe create a TextWatcher subclass and call this method? /** * Adds a TextWatcher to the list of those whose methods are called * whenever this TextView's text changes. * p * In 1.0, the {@link TextWatcher#afterTextChanged} method was erroneously * not called after

[android-developers] Re: YouTube Video is not populating in list

2013-03-05 Thread bob
What does the exact XML look like? Also, what happens when you put the XML into an XML validator? (such as the one at *http://www.w3schools.com/xml/xml_validator.asp*) Thanks. On Friday, March 1, 2013 6:13:09 AM UTC-6, Milind wrote: Dear All, I am a beginner in Android and I have to

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread RichardC
Have you tried do the following and seeing what happens? - Play another OpenGL game just to get it into the long-press-home menu. - Start your game as normal and play it a bit. - [long-press-home] and start the previous OpenGL game whilst yours is still running. - plays the other

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 9:18 PM, RichardC richard.crit...@googlemail.comwrote: Have you tried do the following and seeing what happens? - Play another OpenGL game just to get it into the long-press-home menu. - Start your game as normal and play it a bit. - [long-press-home] and

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread RichardC
With the scenario below if you are releasing in onPause, how you you know you are leaving your app? onStop will get called in both cases and onDestroy need not get called. On Tuesday, March 5, 2013 8:36:51 PM UTC, latimerius wrote: On Tue, Mar 5, 2013 at 9:18 PM, RichardC

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread RichardC
Typo in the above: With the scenario below if you are **NOT** releasing in onPause... On Tuesday, March 5, 2013 8:50:48 PM UTC, RichardC wrote: With the scenario below if you are releasing in onPause, how you you know you are leaving your app? onStop will get called in both cases and

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 9:51 PM, RichardC richard.crit...@googlemail.comwrote: Typo in the above: With the scenario below if you are **NOT** releasing in onPause... I see. Well in the scenario below I would release it in onPause(). The only time I don't do full release in onPause() is when I

[android-developers] fade out anomaly

2013-03-05 Thread bob
I have this code for a fade out effect: set xmlns:android=http://schemas.android.com/apk/res/android; android:fillAfter=true alpha android:duration=1000 android:fromAlpha=1.0 android:toAlpha=0.0 / /set Initially, I had this in my manifest: uses-sdk

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 6:25 PM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 5:41 PM, Piren gpi...@gmail.com wrote: - Dont use a different Activity to show Prefs (you can re-use your current one, i personally always disliked the PreferencesActivity class.. its ugly as fuck)

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Kostya Vasilyev
2013/3/6 Latimerius l4t1m3r...@gmail.com On Tue, Mar 5, 2013 at 6:25 PM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 5:41 PM, Piren gpi...@gmail.com wrote: - Dont use a different Activity to show Prefs (you can re-use your current one, i personally always disliked the

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread a1
I'm not quite sure about the rendering thread though - that's controlled by GLSurfaceView and I'm afraid I can't just pause it with no other side-effects. I think the only way would be to call GLSurfaceView.onPause() which however also means a lot of other undesirable things including

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread RichardC
On Tuesday, March 5, 2013 10:20:38 PM UTC, a1 wrote: Oh my god, really? We are in 2009 again or something? Since Android 3.0, you can call setPreserveEGLContextOnPause method to prevent GLSurfaceView from releasing context, if you are targeting older version simply back-port (or use one

[android-developers] Re: cost of view instantiation versus memory bloat

2013-03-05 Thread momo
Thanks for the reply - sorry for the delay (apparently I wasn't subscribed to this thread). I'm not familiar with the practices necessary to analyze memory usage at this point, but I'll look into it. For reference, the widget is a scaling tiled layer, similar to iOS CATiledLayer, which

[android-developers] Motorola Razr Maxx HD - freezes?

2013-03-05 Thread Nathan
This question is from a developer who has an app and has some unusual patterns with the Motorola I do not have one, but after a month or two, the reports are pretty consistent from customers on this device and only this device. After scrolling a custom view, the phone completely freezes and

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 11:19 PM, Kostya Vasilyev kmans...@gmail.com wrote: How about a PreferenceActivity with theme=@style/Theme.Dialog? I've tried that but it doesn't change the substance of the problem - the activity now *looks* like a dialog (not full-screen, dimmed background) but it's

Re: [android-developers] Motorola Razr Maxx HD - freezes?

2013-03-05 Thread Mark Murphy
On Tue, Mar 5, 2013 at 7:31 PM, Nathan nathan.d.mel...@gmail.com wrote: After scrolling a custom view, the phone completely freezes and requires battery removal or special key sequence to reboot. Almost by definition, that's gotta be a firmware bug, unless you are doing something yourself in

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 11:20 PM, a1 arco...@gmail.com wrote: I'm not quite sure about the rendering thread though - that's controlled by GLSurfaceView and I'm afraid I can't just pause it with no other side-effects. I think the only way would be to call GLSurfaceView.onPause() which

Re: [android-developers] Motorola Razr Maxx HD - freezes?

2013-03-05 Thread Nathan
On Tuesday, March 5, 2013 4:44:30 PM UTC-8, Mark Murphy (a Commons Guy) wrote: On Tue, Mar 5, 2013 at 7:31 PM, Nathan nathan@gmail.com javascript: wrote: After scrolling a custom view, the phone completely freezes and requires battery removal or special key sequence to reboot.

[android-developers] How rotate a line in Android XML?

2013-03-05 Thread don rhummy
I'm trying to draw a diagonal line in an Android app with the XML, but it is not working. It simply draws a horizontal line. main.xml

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread a1
W dniu środa, 6 marca 2013 00:06:32 UTC+1 użytkownik RichardC napisał: On Tuesday, March 5, 2013 10:20:38 PM UTC, a1 wrote: Oh my god, really? We are in 2009 again or something? Since Android 3.0, you can call setPreserveEGLContextOnPause method to prevent GLSurfaceView from releasing

Re: [android-developers] How rotate a line in Android XML?

2013-03-05 Thread don rhummy
The answer is to also make fromDegrees=45. I thought from/toDegrees referred to point 0 and point n of the line, but it refers to animation. The rotate XML node is an animation. So you're telling it to move it from 45 degrees to 45 degrees (there's no other way to rotate a line in XML layout).

[android-developers] Uninstall free version app after installing paid version

2013-03-05 Thread Bajrang Asthana
Actually we are thinking to publish my app in two version i.e free and paid. We are providing link in free version so that user can download paid version from Google play. I am interested to know what could be the best way to remove free version app(if user has installed it) as soon as user

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread a1
Oh my god, really? We are in 2009 again or something? Since Android 3.0, you can call setPreserveEGLContextOnPause method to prevent GLSurfaceView from releasing context, My minSdk is 7. Preserving GL context is a hint. You call it and pray it works. See the official docs at

[android-developers] Re: InflateException: Error inflating class issue

2013-03-05 Thread abhijit
i am getting the same error just copy the drawable to hdpi,ldpi,mdpi folders it works for two three images after that i am getting same android .inflation error. On Monday, October 3, 2011 5:16:25 PM UTC+5:30, Tonez wrote: Hi Everyone, I have an app which I'm testing out on Android 2.0

[android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread dnk
Use http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint() Gets called only when the user has decided to leave instead of another app coming in the foreground. On Monday, March 4, 2013 3:14:29 PM UTC-8, latimerius wrote: Hello, I would like to be able to tell if