[android-developers] showing more than three PagerTabStrip in ViewPager at a time

2013-04-15 Thread Ansh
am using a ViewPager in which I am able to have 3 PagerTabStrip. But I want to have more than 3, maybe 4 or 5. I tried using setTextSpacing() but that didn't work. There is no direct option also to have some a some amount of PaperTitleStrip. Any Suggestions how can we implement the same. --

Re: [android-developers] Hi use this free apps https://play.google.com/store/apps/details?id=com.manager.folder.jayfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tYW5hZ2VyLmZvbGRlci5qYXkiXQ..

2013-04-15 Thread Fabien R
On 05/04/2013 14:56, Jayavelu Viswanathan wrote: Hi use this free apps https://play.google.com/store/apps/details?id=com.manager.folder.jayfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tYW5hZ2VyLmZvbGRlci5qYXkiXQ .. Stop spamming... - Fabien -- -- You received this message because you

Re: [android-developers] When to show a dialog from Fragment and when not to

2013-04-15 Thread William Ferguson
Fragment#isVisible is returning true even if the user has navigated to another Activity. However #isResumed returns false, so maybe that is the right target. On Sunday, April 14, 2013 11:42:06 PM UTC+10, Harri Smått wrote: Hi, You could try using Fragment.isVisible() to determine whether

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-15 Thread William Ferguson
Hi Piren, what is an appropriate definition of Started in this instance? WIlliam On Monday, April 15, 2013 1:17:36 AM UTC+10, Piren wrote: Check the fragment state before showing, it should be Started, if not, keep a flag saying that says this dialog needs to be shown. Check for the flag

[android-developers] Re: showing more than three PagerTabStrip in ViewPager at a time

2013-04-15 Thread Piren
Thats because it can only display 3. if you want more, you'll have to create your own. Just take the source code for the strip and extrapolate it for more than 3, shouldn't be that hard. (or just write your own from scratch, shouldn't be that hard either) On Monday, April 15, 2013 10:32:11

Re: [android-developers] Re: How to support Bluetooth optionally?

2013-04-15 Thread Douglas Drumond
No, you don't change uses-permission to uses-feature, you use both. uses-permission is required to access bluetooth, or you'll get an error. When you use uses-permission, it's assumed the feature is also required. Then you use the tag uses-feature and set the attribute required to false. So you

[android-developers] Re: showing more than three PagerTabStrip in ViewPager at a time

2013-04-15 Thread Ansh
cool ...I ll try that. Thanks On Monday, 15 April 2013 14:12:47 UTC+5:30, Piren wrote: Thats because it can only display 3. if you want more, you'll have to create your own. Just take the source code for the strip and extrapolate it for more than 3, shouldn't be that hard. (or just write

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-15 Thread Piren
After onStart has been called and before onStop. You can be more pedantic about the state if needed - using isHidden/isVisible/isResumed .. since having it as started does guarantee that the fragment is visible. On Monday, April 15, 2013 11:32:45 AM UTC+3, William Ferguson wrote: Hi Piren,

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-15 Thread Piren
Errr... we need a damn edit button here. i meant: since having it as started does *not* guarantee that the fragment is visible. :) On Monday, April 15, 2013 11:47:22 AM UTC+3, Piren wrote: After onStart has been called and before onStop. You can be more pedantic about the state if needed

Re: [android-developers] Re: How to support Bluetooth optionally?

2013-04-15 Thread limtc
Thanks! So it is: uses-permission android:name=android.permission.BLUETOOTH / uses-permission android:name=android.permission.BLUETOOTH_ADMIN / uses-feature android:name=android.hardware.bluetooth android:required= false / 在 2013年4月15日星期一UTC+8下午4时43分27秒,Douglas Drumond写道: No, you don't

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-15 Thread William Ferguson
Hm, thanks. It just seems strange to need to explicitly check to see if the Fragment isResumed prior to showing a Dialog. Before Fragments, Activity#showDialog would do nothing if the Activity was already torn down. So it seems kind of retrograde. I take it all instances of

[android-developers] Re: exception when create new AlertDialog

2013-04-15 Thread Carlos Calvo
Thanks, works perfectly Very thanks I spent hours working on this problem El domingo, 14 de abril de 2013 20:50:18 UTC+2, Jonathan S escribió: on new AlertDialog.Builder(getApplication());, replaces getApplication() to MainActivity.this On Sunday, April 14, 2013 10:55:42 AM UTC-4, Carlos

[android-developers] Invitation to use Google Talk

2013-04-15 Thread Google Talk
--- You've been invited by Josphat Muchiri to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-ab9fb0fd8e-1fe3510e56-lOq8Cf1coFn8dE0gRgTrglXJ760

Re: [android-developers] Re: Security exception with launchMode=singleTask

2013-04-15 Thread nobre
Hi, is this supposed to be working after 2.3 ? I'm experiencing this behavior on 4.0.3 and 4.1.1 , URI permissions aren't being granted to an Activity that was previously running (singleTask), onNewIntent is called and raises SecurityException when trying to use the content resolver. Em

[android-developers] Is there good source for Themes for Android applications

2013-04-15 Thread Subodh Nijsure
Yes, I have done google search on Android Theme collection and haven't come across anything impressive. Is there a good collection of web sites where one can purchase/connect with folks who do theme design for Android? -Subodh Nijsure -- -- You received this message because you are

Re: [android-developers] Is there good source for Themes for Android applications

2013-04-15 Thread Isuru Madusanka
This is interesting. I wanted to find the same thing, but wasn't successful. However, there are some built in themes like Holo Dark etc. On 4/15/13, Subodh Nijsure subodh.nijs...@gmail.com wrote: Yes, I have done google search on Android Theme collection and haven't come across anything

[android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread bob
What is the BitmapFun example? I guess I don't have it? https://lh5.googleusercontent.com/-zAsXty17X88/UWwPF7SJQvI/AXU/_yNdSTUzB7E/s1600/bitmapfun.png Thanks. On Sunday, April 14, 2013 5:07:23 PM UTC-5, tsioularisa wrote: i am using the bitmapfun example and the only part

[android-developers] Maximum number of emulators per system

2013-04-15 Thread Adam Allred
Hello, It seems that the maximum number of emulators that can be run on a single system is 16, since there are a maximum of 16 consoles allowed according to: http://developer.android.com/tools/devices/emulator.html#console and I cannot for the life of me locate a way to run an emulator without

[android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread tsioularisa
I am sorry for didn't mention this. It is from developer android traininghttp://developer.android.com/training/displaying-bitmaps/index.html. If you want more info please tell me! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Maximum number of emulators per system

2013-04-15 Thread Kristopher Micinski
It's not really a console problem, more of a port problem.. http://stackoverflow.com/questions/9924274/maximum-number-of-devices-connected-to-an-adb-server I've done this before. But be aware: you really can't run more than 16 emulators unless you're on a machine with tons of processors (I had

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
Could you use GCM http://developer.android.com/google/gcm/index.html instead of rolling your own long-lived connection with independent keepalive? It'll be better for the users battery and better for the carriers network and you won't have to figure out issues like these. On Sat, Apr 13, 2013

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
Robert, Could you elaborate on the issues like these part? Are there changes in Android that developers should be made aware? I also have an app that uses long persistent server connection, and using GCM is not an option either. It seems that with Android 4.1 and 4.2, connections often go dead

[android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread bob
Why did you add *mImageFetcher.clearCache()*? You do realize that starts a new AsyncTask, don't you? Starting a new AsyncTask sounds like a really bad idea in onDestroy(). On Sunday, April 14, 2013 5:07:23 PM UTC-5, tsioularisa wrote: i am using the bitmapfun example and the only

[android-developers] Re: Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread bob
What port number are you using on the server? Maybe use *port* *80* as it is more open? Thanks. On Saturday, April 13, 2013 5:35:13 AM UTC-5, Long wrote: Hi Developers, I have an background service which connects my server with a TCP connection. My background service sends

[android-developers] Re: Maximum number of emulators per system

2013-04-15 Thread bob
Out of curiosity, why would you ever need to run **16 emulators? Thanks. On Monday, April 15, 2013 9:46:10 AM UTC-5, Adam wrote: Hello, It seems that the maximum number of emulators that can be run on a single system is 16, since there are a maximum of 16 consoles allowed according

[android-developers] Re: My First Android App

2013-04-15 Thread bob
I like it. You may want to change the name though as *Quickly Search Installed Apps* is kind of long and not-so-catchy. Thanks. On Thursday, April 4, 2013 11:27:56 AM UTC-5, Satendra Pratap wrote: Hi All, Please install my first android Free APP : Quickly available in Google Play

Re: [android-developers] Re: Maximum number of emulators per system

2013-04-15 Thread Kristopher Micinski
If you're doing large scale testing of your app across a large number of device configurations, with hundreds of testcases, and you don't want it to take months. Kris On Mon, Apr 15, 2013 at 12:04 PM, bob b...@coolfone.comze.com wrote: Out of curiosity, why would you ever need to run 16

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev kmans...@gmail.com wrote: Robert, Could you elaborate on the issues like these part? Are there changes in Android that developers should be made aware? By issues like these I just meant the inevitable bugs that will crop up when making

Re: [android-developers] Is there good source for Themes for Android applications

2013-04-15 Thread Nathan
Have wondered about this too. I would like to be able to buy or commission a theme like you can buy a Wordpress theme. I have hired through ODesk, and hired one person worthwhile and another not so much. It wasn't full service in the sense you would get a finished theme, with all the

Re: [android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread mixalis anastasiou
I know that i start a new asynctask but it is the only way to auto clear the memories both lru and disk when the user exits the activity. first of all i use this (bad) technic because i don't want to waste the user's space with useless things for him and without let him know how much space do i

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Robert Greenwalt rgreenw...@google.com On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev kmans...@gmail.comwrote: Robert, Could you elaborate on the issues like these part? Are there changes in Android that developers should be made aware? By issues like these I just meant

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Robert Greenwalt rgreenw...@google.com On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev kmans...@gmail.comwrote: Robert, Could you elaborate on the issues like these part? Are there changes in

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: I've seen GTalk's service menu, it seems it has separate keep-alive logic for mobile vs. WiFi Why? I can't tell just by reading the Android networking docs. I

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
u On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Robert Greenwalt rgreenw...@google.com On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev kmans...@gmail.comwrote: Robert, Could you elaborate on the issues like these part? Are there changes in

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: I've seen GTalk's service menu, it seems it has separate keep-alive logic for mobile vs.

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
I think he's suggesting that if app developers can't rely on wifi not losing packets on this hardware with the AP it will see in the wild, we should disable optimizations in general. I think we found from our testing that the optimizations worked with a high percentage of AP - all AP we tested

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Robert Greenwalt rgreenw...@google.com Most ipv4 is behind nats. Even on the carrier side. Each NATing agent will have a timeout - no activity and they forget the connection state and your connection is broken. Keeping the device from going into deep sleep helped avoid the

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev kmans...@gmail.comwrote: Should there be a system level setting to turn off those power optimizations, if they're known to not be compatible with all (taken as a metaphorical term) access point /

[android-developers] How can users enable compatibility mode?

2013-04-15 Thread user123
I read here http://developer.android.com/guide/practices/screen-compat-mode.htmlthat under certain conditions, (optinal) compatibility mode is available to the users. But I can't find it on the device, I looked in the menu of the app, in app's settings, display settings, etc. Nothing with

Re: [android-developers] Re: How to support Bluetooth optionally?

2013-04-15 Thread Douglas Drumond
That's it. -- Douglas Drumond http://drumond19.com 2013/4/15 limtc thyech...@gmail.com Thanks! So it is: uses-permission android:name=android.permission.BLUETOOTH / uses-permission android:name=android.permission.BLUETOOTH_ADMIN / uses-feature android:name=android.hardware.bluetooth

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
So, now I tested again with the emulator. I started the shipped AVD for the nexus 7. 800 x 1280 tvdpi. According to my dip calculatioon, the smallest side (800), with this density (~216ppi), is ~479 dp Now, according to the documentation: supports-screens android:compatibleWidthLimitDp=320 /

Re: [android-developers] Text dissapears when view is rotated in getChildStaticTransformation (4.x / maybe also honeycomb)

2013-04-15 Thread user123
This is strange, since the text disappears completly as soon as the view is rotated just a little bit. And it only happens on 4.x. I'm already using the camera. But I solved it rendering the textviews to bitmaps, for now. Am Montag, 18. März 2013 23:07:53 UTC+1 schrieb Romain Guy (Google):

Re: [android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread bob
What exactly does your onDestroy method look like? My guess is that it looks like this: *@Override* *protected void onDestroy() {* *super.onDestroy();* * mImageFetcher.clearCache();* *mImageFetcher.closeCache();* *}* I'm pretty sure that's an error. The last two

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
It seems that this combination works: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=8/ *supports-screens android:largestWidthLimitDp=400 /* Confirmation follows. Am Dienstag, 19. März 2013 17:46:49 UTC+1 schrieb user123: I'm trying to force compatibility mode on tablets,

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
Ah, no, I became happy too quickly. I was launching an old version of the app (where I used 320 dip). So the problem is still the same. No compatibility mode. Am Montag, 15. April 2013 23:05:37 UTC+2 schrieb user123: It seems that this combination works: uses-sdk

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread bob
Let's just think about this for a minute. 320 dp is 2 inches. Here are the specs for your Galaxy Nexus: 1280×720 px *(316 ppi) So, we are interested in the smallest side. That is 720. 720/316 = 2.27848101266 inches So, it is rightly going into compatibility mode on your Galaxy phone since

Re: [android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread tsioularisa
You are right it is exactly as you wrote it! But if i don't implement it in this way how can i achieve to clear the cache every time the user leaves the activity? I think it is not good user experience to consume storage for things that he can't use. Also i am not sure but if the file becomes

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
The problem is the Nexus 7. The smallest side is 4.72 inches. But I can put max. 320 dp in the manifest for it to go in compatibility mode. With 321 it doesn't work anymore. Am Montag, 15. April 2013 23:30:37 UTC+2 schrieb bob: Let's just think about this for a minute. 320 dp is 2

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-15 Thread user123
Now I also tested with a tablet emulator with 10.1 diagonal. The smallest side should be something around 7 inches. And I still get compatibility mode only until max. 320 dp, like in the Nexus 7. Am Montag, 15. April 2013 23:53:26 UTC+2 schrieb user123: The problem is the Nexus 7. The

Re: [android-developers] Re: bitmapfun project possible bug

2013-04-15 Thread bob
Please see this concerning the *execute* method for an AsyncTask: https://lh6.googleusercontent.com/-zRYXmRbRHfg/UWx7De5IsGI/AXk/vEGbuxjGl8w/s1600/message.png In particular, for certain versions of Android, your two tasks may run in parallel. However, in Honeycomb onwards, they

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 12:24 PM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev kmans...@gmail.comwrote: Should there be a system level setting to turn off those power optimizations, if they're

[android-developers] Only Portrait and ReversePortrait in android 2.1 API Level 7

2013-04-15 Thread Ricardo Cardoso
I have a doubt as to leave the screen only in portrait and reversePortrait, tested code, but only when the screen turns reversePortrait, I can not go back to portrait. why? in my MainActivity.class @Overridepublic void onConfigurationChanged(Configuration newConfig)

Re: [android-developers] Maximum number of emulators per system

2013-04-15 Thread Adam
So then this: The console port number must be an even integer between 5554 and 5584, inclusive.port+1 must also be free and will be reserved for ADB. from: http://developer.android.com/tools/help/emulator.html is just lying? If that's so, it just seems that adb is trying to do the work for

[android-developers] Re: single device development scenario with questions

2013-04-15 Thread George Baker
rh, In order to make a calendar app you should need to even have to worry about the source for the Android OS. What you will need is the Android SDK which you can get at http://developer.android.com/sdk/index.html, You'll want to look towards the bottom of the page under download for other

[android-developers] Multiple parent for a single child View

2013-04-15 Thread Jayu Sagar
Hi, Need help in understanding the following case, Say I have a view '*child*' created in Application context, I add '*child*' to a parent '*Parent A*' which is in context of Activity '*A*'. I switch the activity to Activity '*B*' where I would want to add '*child*' to parent '*Parent B'* which