[android-developers] Re: Different sets of widgets for pre-3.0 and post-3.0 devices?

2013-02-19 Thread al
You can statically configure this: In AndroidManifest.xml for the widget receivers add: receiver android:enabled=@bool/beforeHoneycomb .. receiver android:enabled=@bool/sinceHoneycomb .. Then define the booleans depending on the versions: In values/bool.xml resources bool

[android-developers] Spinner

2013-02-19 Thread Arun Kumar K
Hi guys, If i pressed the spinner i ll get the popup menu.if my list contain only one item means then the spinner does not show the popupmenuhow can i do tat one -- *Thanks Regards* *K.Arun Kumar* -- -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Are NPOT textures compressed to ETC format supported on SGX540 GPUs?

2013-02-19 Thread Dmitry Suzdalev
Yep! Confirming this. Galaxy Nexus, ICS 4.0.4. Got this segfault while using POT: I/DEBUG (26556): #00 pc dbec /system/lib/libc.so (memcpy) I/DEBUG (26556): #01 lr 5b98c588 /system/vendor/lib/egl/ libGLESv2_POWERVR_SGX540_120.so When I switched to using NPOT

[android-developers] Re: Application not Visible on emulator Screeen

2013-02-19 Thread Sagar Rout
Yes that is now what to do next On Monday, 18 February 2013 21:15:11 UTC+5:30, Arnaud VALLAT wrote: Do you have an activity defined in your manifest (with the intent filter LAUNCHER) ? On Monday, February 18, 2013 4:46:01 AM UTC+1, Sagar Rout wrote: My application is not visible on my

[android-developers] android app icon does not appear in airwatch

2013-02-19 Thread Jags
I am trying to publich my android app in airwatch. When uploading the apk in airwatch app icon is not displayed, but when I try for a app store apk, it appears in the panel. But my apk displays icon when installed through adb install in simulator or device. what might am i be doing wrong ?

[android-developers] Re: Application not Visible on emulator Screeen

2013-02-19 Thread Sagar Rout
Hey Bob, I already tried that option i mean that application is not visible on the application list on the home screen On Monday, 18 February 2013 21:11:17 UTC+5:30, bob wrote: Be sure to unlock the screen. Thanks. On Sunday, February 17, 2013 9:46:01 PM UTC-6, Sagar Rout wrote: My

[android-developers] gradle and libs

2013-02-19 Thread Daniel Rindt
Hello, my android lib makes use of some other libs which reside in /libs as usual in android projects. My gradle file looks like this: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.2' } } apply plugin:

[android-developers] Expansion File

2013-02-19 Thread Michel Cabillot
Hello, I would simply like to know if there is some sample project to implement an Expansion File into an Android App 50mo. I've tried to read the Developer's guide, but as a newbie, I've been really quickly lost. Thanks for your help ! -- -- You received this message because you are

[android-developers] Re: Application not Visible on emulator Screeen

2013-02-19 Thread Daniel Rindt
Am Dienstag, 19. Februar 2013 11:43:17 UTC+1 schrieb Sagar Rout: Hey Bob, I already tried that option i mean that application is not visible on the application list on the home screen I doubt that an application can direct appear on the home screen without user interaction. -- -- You

[android-developers] Re: Multiple HTTP requests

2013-02-19 Thread Daniel Rindt
*HttpConnectionParams.setConnectionTimeout (httpParameters, 3);* *HttpConnectionParams.setSoTimeout (httpParameters, 3);* I did a test using apache jmetter sending multiple requests to this server and had no problems. This can be a limitation of the network? SO? tried this:

[android-developers] Getting the current theme background-color

2013-02-19 Thread dashman
I've asked this and related questions a few times and had no response. So I'll try to be clear. I'm writing an app that I hope the user will be able to change the Theme via preferences - from Holo dark to Light and vice versa. I've got a dialog that needs to be initialized to a background color

[android-developers] DialogPreference - Background remove

2013-02-19 Thread Filipe Batista
Hi, I have a custom DialogPreference where i have set my layout (* setDialogLayoutResource*), but the Dialog shows the default black background around the layout. How can i remove that black background? I have already tried in the *showDialog(Bundle state) *method something like this:

[android-developers] Re: Debugger to run Android Applications

2013-02-19 Thread Ashu
You should have mentioned the Android SDK Version that you are using when launching emulator, in your post. Assuming that you are using latest Android SDK-rev 21, you can edit your AVD Instance through AVD Manager tool (part of ADT Plug-in in eclipse). You need to Enable/select Keyboard

Re: [android-developers] Re: Different sets of widgets for pre-3.0 and post-3.0 devices?

2013-02-19 Thread Digipom Inc.
Hi Al, Thanks, this seems like a good approach. This was just what I was wondering -- how to statically configure things so as to avoid the Android bugs with runtime enabling/disabling. I'll give this one a shot! :) On Tue, Feb 19, 2013 at 3:08 AM, al achim.leub...@googlemail.com wrote: You

[android-developers] Re: Debugger to run Android Applications

2013-02-19 Thread Sagar Rout
thanks guys i got it On Tuesday, 19 February 2013 18:13:02 UTC+5:30, Ashu wrote: You should have mentioned the Android SDK Version that you are using when launching emulator, in your post. Assuming that you are using latest Android SDK-rev 21, you can edit your AVD Instance through

[android-developers] Alternative SQLite

2013-02-19 Thread Sagar Rout
Hello friends, is there any solution for the alternative of SQlite database so that we can drag and drop and the coding just like .NET so that easy to learn. is it ? please -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Application not Visible on emulator Screeen

2013-02-19 Thread Sagar Rout
No, suppose you run an application after some run it is not on the screen when i see in the manage application there is my installed software not able to run on the emulator on the screen. If you figure it please let me know. On Tuesday, 19 February 2013 16:24:40 UTC+5:30, Daniel Rindt wrote:

[android-developers] Android Canvas development

2013-02-19 Thread janvi
Hello all Iam new to canvas android development.I want to develop an android app using canvas,but how to give support to diiferent devices(hdpi,ldpi,mdpi) is bothering me alot. Any suggestions would be appreciated plz help me out thank you in advance -- -- You received this message

[android-developers] How to update ADT on Eclipse BUNDLE from google android developer..?

2013-02-19 Thread Pratama Nur Wijaya
https://lh6.googleusercontent.com/-kuA1nyPvKUs/USOPHHfiaRI/Ae0/Y3yogdDoxOo/s1600/eclipse+bundle.png Hello anyone can help me how to update ADT on Eclipse bundle from google..?? i'm using menu Help Check for Update but its say no Update.. -- -- You received this message because

Re: [android-developers] IP address

2013-02-19 Thread bob
Why do you say that? Here's another one if you don't like that one: *public static String int_ip_to_string (int hostAddress) {* *byte[] addressBytes = { (byte)(0xff hostAddress),* *(byte)(0xff (hostAddress 8)),* *

[android-developers] Re: Android Canvas development

2013-02-19 Thread bob
I would just put your stuff in drawable-nodpi to start with. That way nothing will get scaled unless you explicitly make it scaled. On Tuesday, February 19, 2013 8:40:29 AM UTC-6, janvi wrote: Hello all Iam new to canvas android development.I want to develop an android app using

[android-developers] Re: gradle and libs

2013-02-19 Thread bob
You say lib in one place and libs in another. Make sure you pick one name and use it everywhere. On Tuesday, February 19, 2013 4:52:54 AM UTC-6, Daniel Rindt wrote: Hello, my android lib makes use of some other libs which reside in /libs as usual in android projects. My gradle file

[android-developers] Re: Multiple HTTP requests

2013-02-19 Thread bob
This is not surprising on 3G. I would try it on Wifi. I'd be surprised if it happened on Wifi. On Saturday, February 16, 2013 11:16:00 AM UTC-6, Diego Nunes wrote: I'm doing on 3G. Thank you. On Friday, February 15, 2013 8:00:55 PM UTC-2, bob wrote: Are you doing this on Wifi, 3G,

Re: [android-developers] android app icon does not appear in airwatch

2013-02-19 Thread TreKing
On Tue, Feb 19, 2013 at 4:38 AM, Jags jag...@gmail.com wrote: what might am i be doing wrong ? Not asking a group or forum dedicated for this airwatch, whatever it is. - TreKing

[android-developers] Testing onSaveInstanceState/onRestoreInstanceState

2013-02-19 Thread Larry Meadors
I'm trying to do instrumentation testing of an activity that uses fragments. I'm trying to test the onSaveInstanceState by doing this: /*/ runTestOnUiThread(new Runnable() { @Override public void run() {

Re: [android-developers] IP address

2013-02-19 Thread Larry Meadors
On Tue, Feb 19, 2013 at 8:05 AM, bob b...@coolfone.comze.com wrote: Why do you say that? Because it's a ridiculously obfuscated solution to a problem with a simple one-line solution: InetAddress address = InetAddress.getByAddress(BigInteger.valueOf(actualIpAddressAsInt).toByteArray()); Larry

[android-developers] AudioRecord sample rate + Touch Sounds + HDMI

2013-02-19 Thread RLScott
Here is a strange interaction that I discovered on one particular brand of Android Tablet. This interaction can cause the audio sample rate to change by 9% under certain condition. Those conditions are: 1. The HDMI video output to a TV monitor is connected. 2. The Touch Sounds are enabled in

Re: [android-developers] IP address

2013-02-19 Thread bob
I actually happened upon that code today: http://stackoverflow.com/questions/1221517/how-to-get-subnet-mask-using-java private static String intToIP(int ipAddress) { String ret = String.format(%d.%d.%d.%d, (ipAddress 0xff), (ipAddress 8 0xff), (ipAddress 16 0xff),

Re: [android-developers] IP address

2013-02-19 Thread Nobu Games
Bob was asking for the string representation of an integer IP number. His solution is correct, straightforward and does not require the instantiation of three intermediate objects just for getting a simple string. Your one-liner however creates a BigInteger, then a byte array and finally an

[android-developers] Re: gradle and libs

2013-02-19 Thread Daniel Rindt
Am Dienstag, 19. Februar 2013 16:13:32 UTC+1 schrieb bob: You say lib in one place and libs in another. Make sure you pick one name and use it everywhere. a qualified answer would be much better than this answer to a totally clear situation what's meant! -- -- You received this message

[android-developers] Re: gradle and libs

2013-02-19 Thread Jonathan S
You already have dependencies { compile fileTree(dir: 'libs', include: '*.jar') } you have to put all *.jar file inside the libs directory. If any *.jar file outside of the libs folder wouldn't be compiled. On Tuesday, February 19, 2013 5:52:54 AM UTC-5, Daniel Rindt wrote: Hello, my

[android-developers] Re: gradle and libs

2013-02-19 Thread Daniel Rindt
Am Dienstag, 19. Februar 2013 19:52:59 UTC+1 schrieb Jonathan S: You already have dependencies { compile fileTree(dir: 'libs', include: '*.jar') } you have to put all *.jar file inside the libs directory. If any *.jar file outside of the libs folder wouldn't be compiled. So far i

[android-developers] Re: Are NPOT textures compressed to ETC format supported on SGX540 GPUs?

2013-02-19 Thread bob
Are your width and height multiples of 4 at least? That is necessary for that compression. On Tuesday, January 24, 2012 6:54:47 PM UTC-6, markusn82 wrote: I noticed today that my OpenGL game was crashing when attempting to load an NPOT texture compressed using ETC format into an SGX540

[android-developers] Re: Application not Visible on emulator Screeen

2013-02-19 Thread bob
You probably need to go into the Apps section of the device, not the home screen. Try to find a button that is like 9 rectangles in a square formation… 3x3. Maybe post a screenshot? On Tuesday, February 19, 2013 8:16:41 AM UTC-6, Sagar Rout wrote: No, suppose you run an application

[android-developers] Re: How to update ADT on Eclipse BUNDLE from google android developer..?

2013-02-19 Thread bob
What makes you think you need an update? There are different components and different update mechanisms. On Tuesday, February 19, 2013 8:42:24 AM UTC-6, Pratama Nur Wijaya wrote: https://lh6.googleusercontent.com/-kuA1nyPvKUs/USOPHHfiaRI/Ae0/Y3yogdDoxOo/s1600/eclipse+bundle.png

[android-developers] Re: How to update ADT on Eclipse BUNDLE from google android developer..?

2013-02-19 Thread Lew
bob wrote: What makes you think you need an update? There are different components and different update mechanisms. Or instead of challenging is undoubtedly excellent reasons for asking, you could just tell him: Eclipse - Help - Check for Updates and Install New Software The first

[android-developers] Re: gradle and libs

2013-02-19 Thread Lew
bob wrote: You say lib in one place and libs in another. Make sure you pick one name and use it everywhere. Where? I only see libs in the script. Surely you aren't referring to his informal language outside the script? That would be unhelpful. Daniel Rindt wrote: my android [sic] lib

[android-developers] Re: MediaPlayer suddenly stopped working in Android 4.2

2013-02-19 Thread Brill Pappin
So, for all of you paying attention to this thread or having a similar issues with MediaPlayer. It appears that the MediaPlayer is picky about what directly the files are stored in. This is the change I made that suddenly caused things to start working again: // File root =

[android-developers] How use my app's notifications instead of calendar app's?

2013-02-19 Thread don rhummy
I'm making a calendar app and I want the system to use my app's notifications for event reminders instead of the default calendar app's (so when a user clicks the notification it will open my app instead and I can do custom notifications in 4.x). How would I do this? -- -- You received this

Re: [android-developers] Re: MediaPlayer suddenly stopped working in Android 4.2

2013-02-19 Thread Mark Murphy
If you can create a sample project that reproduces the error, post it and your description as an issue on http://b.android.com. If you think of it, reply on this thread with the issue link. On Tue, Feb 19, 2013 at 5:18 PM, Brill Pappin br...@pappin.ca wrote: So, for all of you paying attention

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-19 Thread TreKing
On Tue, Feb 19, 2013 at 4:43 PM, don rhummy donrhu...@yahoo.com wrote: I'm making a calendar app and I want the system to use my app's notifications for event reminders instead of the default calendar app's (so when a user clicks the notification it will open my app instead and I can do

Re: [android-developers] Re: MediaPlayer suddenly stopped working in Android 4.2

2013-02-19 Thread Brill Pappin
I can try that. I should have some time away from the crunch later in the month :) To really reproduce exactly what I was doing, I'll need to be able to download an mp3 to the external memory, but I assume that a test could be set up even if the file is no longer there. - Brill On Tuesday,

[android-developers] about jni lib***.so question

2013-02-19 Thread Chuz Lin
Hi,all I had build an android sdk,I wanted to modify a apk which under the path /system/app,but I am fail. When I added a jni interface to apk,I don`t know why it worked well with Eclipse ,but not in source code when I useed mmm /package/apps/TimeSync.It show menot jni.h.Then I builded the

[android-developers] Re: Android Canvas development

2013-02-19 Thread janvi
Ya thanks for your reply... But my doubt is suppose we are drawing a rectangle to screen resolution of 480*800 using the following code public class DrawView extends View { Paint paint = new Paint(); public DrawView(Context context) { super(context); } @Override

[android-developers] Re: Refund

2013-02-19 Thread Stephen Lebed
My apps are paid apps and I don't use in-app purchasing at all. I don't think there is a way to disable an app if I refund a customers money. At least the way things are set up now. Am I wrong about this? Is there a better way? Thanks, Stephen On Sunday, February 17, 2013 1:19:49 PM

[android-developers] Re: Android Canvas development

2013-02-19 Thread Stephen Lebed
I highly recommend this book Beginning Android Games by Mario Zechner. He explains things very well and if you're new to Android, this is the book to get, even if your not planning on writing games. It will answer all your questions. Best, Stephen On Tuesday, February 19, 2013 6:40:29 AM

[android-developers] How to do sketch by programmatically in Android?

2013-02-19 Thread Meena Rengarajan
Hi, Anyone worked on Sketcher- Lite app in Android. I have tried alot and googled so. I dont find any sources or links regarding Sketching in android Refer Video : http://www.youtube.com/watch?v=NG988owhORY Please Help :- I have worked on Paint in my app. It works fine normally. What i