[android-developers] Re: Unit Testing - Activity shutdown

2010-11-30 Thread Ian
Got this all working and reliably. I still use a state variable to tell me where I am in the state machine - not ideal. My reliability problems seem to have been down to using SharedPreferences to hold state between tests. Thanks for the responses. Ian Hunter On Nov 29, 8:10 pm, Ian

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-11-30 Thread blindfold
Yes, things are getting confusing if not messy. The Logitech TV Cam accessory for the Logitech Revue Google TV adds a camera to Google TV http://www.logitech.com/en-us/smartTV/accessories/devices/tv-cam but it can reportedly not be used by Android apps: The TV Cam cannot be accessed from other

[android-developers] Please help with an ideea

2010-11-30 Thread Alex Munteanu
Hi, does anyone has an idea how to implement an Brightness Screen Filter like the one here : http://www.appbrain.com/app/screen-filter/com.haxor I need a starting point and I can't figure out how to do it. I have tried with an always on top transparent activity but I don't think this is the

[android-developers] problem with map overlays

2010-11-30 Thread Atik
i have taken the code for drawing the oath on the google map, from the google git.. but i m now stuck in some diff issue. i m unable to put a marker on the start and end point of the path drawn. pls suggest me.. actually in map activity in my project class is created by extending

[android-developers] Re: what is problem in this where clause?

2010-11-30 Thread pramod.deore
Here each time suf = c4.getInt(c4.getColumnIndex(MAX_SUFFIX)); gives me '0'. But how is this possible because each time I am saving next suffix. On Nov 30, 12:40 pm, pramod.deore deore.pramo...@gmail.com wrote: Anyone  know what is wrong here? On Nov 30, 11:00 am, pramod.deore

[android-developers] App rotation problem

2010-11-30 Thread umakantpatil
Hi, I have developed app but its not rotating at all when i rotate my HTC Wildfire. My other apps roatate but not only app developed by me. Is there anything I need to manifest.xml for allowing this. My current manifest.xml is as follows: ?xml version=1.0 encoding=utf-8? manifest

Re: [android-developers] App rotation problem

2010-11-30 Thread Ajmer singh
You need to remove *android:screenOrientation=nosensor* from activity. On Tue, Nov 30, 2010 at 2:28 PM, umakantpatil umakantpat...@gmail.comwrote: Hi, I have developed app but its not rotating at all when i rotate my HTC Wildfire. My other apps roatate but not only app developed by me. Is

[android-developers] Re: problem with map overlays

2010-11-30 Thread pedr0
See the map tutorial, If I understand correct you have to put your overlay in all point of your path. Each Overlay is draw on the map using the latitude and longitude coordinated, this assumes that you know the coordinates of the point of your path.

[android-developers] Re: App rotation problem

2010-11-30 Thread umakantpatil
I would remove that. Only activity jp.dummu.AndroidSDK should not rotate. But how about other activities ? Other activities should rotate.. right ? But even others are not rotating.. jp.dummu.AndroidSDK On Nov 30, 2:04 pm, Ajmer singh ajmer.si...@evontech.com wrote: You need to remove

[android-developers] Geocoder throwing exception

2010-11-30 Thread saikiran n
Hi, I am doing some application to check Geocoder functionality I am executing the following code snippet Geocoder fwdGeocoder = new Geocoder(this, Locale.US); String streetAddress = 160 Riverside Drive, New York, New York; ListAddress locations = null; try {

[android-developers] addView in layout at run time

2010-11-30 Thread pedr0
Hi at all, I have to put some ImageButton inside an LinearLayout, but I don't know the number of this statically, so because I keep the data through internet at run-time. I solved this problem adding new child at the layout at run time after the oncreate() functions is called in this way:

[android-developers] android.permission.ACCESS_SURFACE_FLINGER

2010-11-30 Thread Prabagaran Thangavel
Hi all, I am using *uses-permission android:name=android.permission.ACCESS_SURFACE_FLINGER / * *uses-permission android:name=android.permission.ACCESS_SURFACE_FLINGER / *to access the SurfaceFlinger. But I am getting the error

[android-developers] lock sqlite file

2010-11-30 Thread manigault
Hi all, I have the following problem i have to transfer my db file over internet. How can i lock the file to ensure that nobody will write in the sqlite db file while i am transferring it. I need to get READ LOCK on the file to prevent blocking on read operations. Thanks -- You received this

[android-developers] Re: addView in layout at run time

2010-11-30 Thread Sarwar Erfan
Hi, You are adding the same ImageButton again and again. You are getting reference of some existing button: b = (ImageButton) findViewById(R.id.card_image); and adding that button to the view again and again! So, you are getting the runtime error. Hint: You need to create NEW ImageButtons if

[android-developers] Re: Back key behaviour between Activity Groups.

2010-11-30 Thread MaheshSharma
Yes, I have done that. The problem is that I will have to add manually add this PlayBack custom layout to each of the view. Now more over, even if I do that, For each new instantiation of view, I have to do bunch of instiations. Like connecting to background service. Which is costly. So I was

[android-developers] Re: addView in layout at run time

2010-11-30 Thread Sarwar Erfan
ImageButton constructor takes the context as input parameter http://developer.android.com/reference/android/widget/ImageButton.html b = new ImageButton(this); Regards Sarwar Erfan On Nov 30, 3:27 pm, Sarwar Erfan erfanonl...@gmail.com wrote: Hi, You are adding the same ImageButton again and

[android-developers] Re: addView in layout at run time

2010-11-30 Thread pedr0
Thanks a lot, but how to configure my botton like this: ImageButton android:layout_width=wrap_content android:layout_height=wrap_content / how can I set the layout_param at runtime? On 30 Nov, 10:34, Sarwar Erfan erfanonl...@gmail.com wrote: ImageButton constructor takes the

[android-developers] Re: Eclipse Reading Android Code as Java

2010-11-30 Thread Zarah
The link above is for working with the Android source code (platform itself). For application development, you would need to follow the instructions here: http://developer.android.com/sdk/eclipse-adt.html Make sure you have specified the path to your SDK in Window Preferences Android SDK

[android-developers] InetAddress.getByname vs ping

2010-11-30 Thread aad
Hi, I need to resolve an host address to ip. My android device can ping to the hostname only to resolve the host to IP . But when I use InetAddress.getByname, it throws an exception. An excerpt of hyper terminal trace is below. Please help me resolve this issue by letteing me know which api i

[android-developers] Re: App freezes when the power key is pressed

2010-11-30 Thread Eyvind Almqvist
After I insert the USB cable, there is three options “1. Connect your phone. 2. Install PC Companion. 3. Charge phone.” No matter which option I have selected, the app will just freeze without any message. When I press the power key to go to power save mode and then press it again to resume the

Re: [android-developers] InetAddress.getByname vs ping

2010-11-30 Thread Kostya Vasilyev
Re: ping - Something is blocking ICMP (ping) packets. Could be your cellular network operator, or perhaps even the firmware. Re: getByName - Does your application have android.permission.INTERNET in the manifest? -- Kostya 30.11.2010 12:48, aad пишет: Hi, I need to resolve an host address

[android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread aad
Yes, permission is there as on using the IP address directly it works fine. I want to know how to emulate the ping's functionality wherein it is resolving the hostname to IP while inetaddress throws exception. ping not being able to handshake is ok. Thank you for your time again Regards On Nov

[android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread aad
On Nov 30, 3:04 pm, Kostya Vasilyev kmans...@gmail.com wrote: Re: ping - Something is blocking ICMP (ping) packets. Could be your cellular network operator, or perhaps even the firmware. Re: getByName - Does your application have android.permission.INTERNET in the manifest? There are too

[android-developers] Re: addView in layout at run time

2010-11-30 Thread pedr0
Thanks a lot, it's very simple to do. On 30 Nov, 10:38, pedr0 pulsarpie...@gmail.com wrote: Thanks a lot, but how to configure my botton like this: ImageButton         android:layout_width=wrap_content         android:layout_height=wrap_content / how can I set the layout_param at runtime?

Re: [android-developers] Re: Sony Ericsson LiveView ™ micro display SDK is released

2010-11-30 Thread Richard Leggett
If I remember rightly you don't need a SE phone to use with the LiveView, I'll be testing with a Nexus One in the next week (should it arrive). Regards, Richard On 29 Nov 2010, at 20:33, Leon Moreyn-Android Development wrote: Ba hum bug. Its not good for US developers as most of the Xperia

[android-developers] Start default email client

2010-11-30 Thread pedr0
Hi at all, How can I make a intent to start the default email client? I would like to set the receiver address of message.. 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] Re: Displaying unicode in a TextView?

2010-11-30 Thread HippoMan
Thanks. I'll check the content variable later today or tomorrow and post back here. In the mean time, I'm wondering if perhaps this isn't a unicode issue, after all. Upon closer examination, it seems that the only characters that appear as garbage in the data I'm examining are quote characters

Re: [android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread Kostya Vasilyev
30.11.2010 13:18, aad пишет: There are too many manifest files. Please let me know which one I must use. ? The one for your application, where you call getByName. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you

Re: [android-developers] Start default email client

2010-11-30 Thread Kostya Vasilyev
You can't. You can start *an* email client. Which one depends on what the user has installed, and which application he chooses. The code I use is: Intent view = new Intent(Intent.ACTION_VIEW); StringBuilder uri = new StringBuilder(mailto:;); uri.append(email address here);

[android-developers] Threads

2010-11-30 Thread Robert
Hello everybody, I have some trouble with threads. The thing is the following: I have my main Activity, which is doing some OpenGL and should be doing it at all time. In parallel to that I start another activity, which is waiting for some network traffic, once there arrives sth a variable should

[android-developers] Re: Back key behaviour between Activity Groups.

2010-11-30 Thread akkilis
ok If this is the case then you can implement the Back key in your code as: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { // your implementation return true;

[android-developers] Doubt Layout

2010-11-30 Thread Diego N.
Hello, I would put two buttons on one line, so that they occupy the entire horizontal space as possible with equal sizes. I put these buttons in a grid layout, divided into two columns. There is some property of the layout that can do this? Att, -- Diêgo Nunes Assunção Give Peace a Chance

[android-developers] Re: Start default email client

2010-11-30 Thread pedr0
Thanks, it works! On 30 Nov, 11:42, Kostya Vasilyev kmans...@gmail.com wrote: You can't. You can start *an* email client. Which one depends on what the user has installed, and which application he chooses. The code I use is: Intent view = new Intent(Intent.ACTION_VIEW); StringBuilder

[android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread aad
This code where I use getByName is actually getting converted to .jar java file. Does it still need the manifest file? I am not able to find the one related to the jar. However when I grepped all files had the permissions. Any other clues? Do I have to dig into the implementation of ping and

[android-developers] Re: [DDMS] Framework reboot failed

2010-11-30 Thread Atul Raut
This time I tried for emulator with command below : *% adb shell malloc.debug.qemu 1 = I have check this property in bionic froyo % adb shell stop % adb shell start*

[android-developers] Re: LocationListener sometimes not receiving updates from network provider

2010-11-30 Thread michael
Hi Igor, Thanks for your reply, it is much appreciated. Thanks also for pointing out the issues with the code I provided. However, this was merely a stripped-down outline of what I am doing. The use of mCoarseLocationListener is a type from the strip-down process, and I agree that the

Re: [android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread Kostya Vasilyev
30.11.2010 14:03, aad пишет: This code where I use getByName is actually getting converted to .jar java file. Does it still need the manifest file? I am not able to find the one related to the jar. However when I grepped all files had the permissions. No, a jar file doesn't have its own

[android-developers] Re: Start default email client

2010-11-30 Thread pedr0
I am sorry, yes it's works, it show me a email client, but when I click to send button it say me that the email is sended, but the email account configured doesn't receive an email! What's wrong? On 30 Nov, 11:58, pedr0 pulsarpie...@gmail.com wrote: Thanks, it works! On 30 Nov, 11:42, Kostya

[android-developers] Re: Doubt Layout

2010-11-30 Thread Kumar Bibek
Use Linear layout with fill_parent(width). Add 2 buttons with layout_weight as 1. On Nov 30, 3:51 pm, Diego N. diegonunes.sist...@gmail.com wrote: Hello, I would put two buttons on one line, so that they occupy the entire horizontal space as possible with equal sizes. I put these buttons

[android-developers] Re: images not scaled to screen size

2010-11-30 Thread Kumar Bibek
Yes, they will be scaled, provided you design your app to do so. Say, for example, if you have an ImageView/ImageButton, there is a property scaleType. If you don't change it, the images will be scaled. But if you are using that, then, depending on the type, it might or might not scale. But, I am

Re: [android-developers] Re: Start default email client

2010-11-30 Thread Kostya Vasilyev
If the message is sent but not received, something is wrong somewhere along the way (not in the intent). What happens if you send the message yourself, from the same email program / address, to the same address? -- Kostya 30.11.2010 14:17, pedr0 пишет: I am sorry, yes it's works, it show

[android-developers] Re: How to terminate an Android emulator by programing?

2010-11-30 Thread Kumar Bibek
Kill the process by making a native call, I guess. On Nov 28, 12:48 pm, Cheng Wu swing1...@gmail.com wrote:   In my program , I need to start and terminate emulators one by one. I found the way to start the emulator in programming, but still not found how to terminate it. Clearly , at last I

[android-developers] I am unable to install APK on the emulator!!!

2010-11-30 Thread Pink
Hi all, I have an application with minSDKVersion as 7 and my emulator's SDK version is 8. When i try to install the APK on my emulator, i am getting error as INSTALL_FAILED_OLDER_SDK. Why am i getting this error? Thanks in advance. -- You received this message because you are

[android-developers] World's Strongest Child

2010-11-30 Thread Sami
http://guinesssrecords.blogspot.com/2010/11/worlds-strongest-child.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] Re: How can I split pdf file into png / jpeg image

2010-11-30 Thread Kumar Bibek
Go through the PDF format, and check if the libraries for reading PDF give this feature. There's no shortcut, I am sure. You have to do a bit of research and coding yourself. On Nov 27, 1:47 pm, sanjay sanjayujjain...@gmail.com wrote: Hi, I want my android application to save each page of a

Re: [android-developers] World's Strongest Child

2010-11-30 Thread Kumar Bibek
I don't agree Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Nov 30, 2010 at 5:05 PM, Sami sami...@gmail.com wrote: http://guinesssrecords.blogspot.com/2010/11/worlds-strongest-child.html -- You received this message because you are subscribed to the Google

[android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread aad
This jar is run on boot-up. I dont invoke any application explicitly. I just switch on the Do I need to link one for this jar or is there any under-running application invoked from behind that I may not know? But I am still confused how it works fine when I directly use the IP address, but fails

Re: [android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread Kostya Vasilyev
Is this a normal application, can you run it after the device is booted? Or is this part of custom firmware? -- Kostya 30.11.2010 14:43, aad пишет: This jar is run on boot-up. I dont invoke any application explicitly. I just switch on the Do I need to link one for this jar or is there any

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-11-30 Thread gjs
Hi And when I use my phone touchscreen app to control my TV app hopefully from a single integrated apk then what ? Regards On Nov 30, 7:20 pm, blindfold seeingwithso...@gmail.com wrote: Yes, things are getting confusing if not messy. The Logitech TV Cam accessory for the Logitech Revue Google

[android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread aad
It is invoked by default. It is like a feature, say like Bluetooth on Android, a functionality. I have other methods to explicitly invoke an application which will use this later, but this one - happens by default, on boot-up, as soon as I switch on my device with the loaded SD Card. On Nov 30,

[android-developers] Re: I am unable to install APK on the emulator!!!

2010-11-30 Thread Pink
Here i am trying to build the apk as part of android source code. But i am not changing any framework.. Is this causing any issue... On Nov 30, 4:34 pm, Pink sivareddy.j...@gmail.com wrote: Hi all,     I have an application with minSDKVersion as 7 and my emulator's SDK version is 8.    

[android-developers] Re: Please help with an ideea

2010-11-30 Thread Alex Munteanu
Now even one little idea :( ? -- 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] Twitter Integration with Android app

2010-11-30 Thread Ajmer Singh
Hi All I need to integrate the Twitter in my application,Could any body please let me know what are the best way to achieve this. I only need to Login and post a tweet in twitter from android app.Is there any sort of SDK for Twitter?. -- Thanks and Regards Ajmer Singh -- You received this

Re: [android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread Kostya Vasilyev
Not sure what invoked by default is. It sure seems like at the time your code runs, DNS is not properly set up yet. Since you are customizing the platform, this group is a better match: http://groups.google.com/group/android-platform -- Kostya 30.11.2010 15:05, aad пишет: It is invoked by

[android-developers] Re: How can I split pdf file into png / jpeg image

2010-11-30 Thread Byron Penner
This is to intensive for mobile devices! Make a webservice that accepts a pdf and returns the image! Byron Grace Software On Nov 27, 3:47 am, sanjay sanjayujjain...@gmail.com wrote: Hi, I want my android application to save each page of a pdf file into a png / jpeg image. Any idea how to

[android-developers] Re: Feature Graphic, High Resolution Application Icon and Promotional Video.

2010-11-30 Thread sblantipodi
no answer. congratulations google :) On Nov 26, 11:20 am, sblantipodi perini.dav...@dpsoftware.org wrote: contected them, lets see if they answer. On Nov 25, 11:58 pm, TreKing treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 4:10 AM, sblantipodi perini.dav...@dpsoftware.orgwrote:

[android-developers] Re: Stupid market.

2010-11-30 Thread sblantipodi
Today is 30 November, do you see the content rating options in your developer console? I'm really bothered from this market. On Nov 24, 11:30 pm, Kostya Vasilyev kmans...@gmail.com wrote: The email said age ratings go into effect starting November 30. There is still time. Finally, a

Re: [android-developers] Re: Stupid market.

2010-11-30 Thread Kostya Vasilyev
30.11.2010 16:19, sblantipodi пишет: Today is 30 November, do you see the content rating options in your developer console? No, there isn't. But it's still the night before the 30th in Mountain View, California. I'm really bothered from this market. On Nov 24, 11:30 pm, Kostya

Re: [android-developers] Re: Feature Graphic, High Resolution Application Icon and Promotional Video.

2010-11-30 Thread Kostya Vasilyev
Mine were getting lost early on, too, but the ones I uploaded on the 27th persisted. I can see them now. Give it a try, see if it works for you. -- Kostya 30.11.2010 16:17, sblantipodi пишет: no answer. congratulations google :) On Nov 26, 11:20 am, sblantipodiperini.dav...@dpsoftware.org

[android-developers] Re: lock sqlite file

2010-11-30 Thread Federico Paolinelli
I'm not sure you can lock the file (at least without having root permissions). I am not that familiar with that in java, but I would look for a read write lock of some kind, using the write lock only when you need to transfer the file, and the read lock when you are writing into the db in any of

[android-developers] Re: What is the best way to send data from Android Application to a Remote MySQL Database?

2010-11-30 Thread gcstang
Agree use a Rest Service or several On Nov 29, 1:56 pm, Leon Moreyn-Android Development lmor...@earthcam.com wrote: You can create an online page to handle data posts to your database. On Nov 29, 7:34 am, priya naral naral.pr...@gmail.com wrote: What is the best way to send data from

[android-developers] Button placement problems

2010-11-30 Thread Serdel
Hello, I could find anything similar so I decided to open a new thread. However if there already is a similar answer please post the link. I need to place my buttons in a little unconventional way shown here (dkw I could post the message with an imageshack link so an ASCI 'picture'):

Re: [android-developers] Button placement problems

2010-11-30 Thread Daniel Drozdzewski
Serdel, Please note that you set B1 to be centered_vertical and have top_margin of 291dp. Which Acer phone you tested this on and the result was not the same? Do you need the space between B1 and B2, B3? Daniel On Tue, Nov 30, 2010 at 1:53 PM, Serdel adam.lichwierow...@gmail.com wrote:

[android-developers] Re: Sony Ericsson LiveView™ m icro display SDK is released

2010-11-30 Thread Elvis Dowson
Hi, Is it possible to get a download link for the android-2.1 update for the Xperia X10? I have one and would like to update it. Elvis Dowson -- 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] Re: Do Androids dream of rule engines?

2010-11-30 Thread Pavel Vlasov
Hi Bob. Thank you for your feedback! The reason why I didn't put why rule engines are needed on Android in the post and on the site (except a little bit on the history page) is because I'm primarily Java SE/J2EE guy and no expert in Android. This is why the post is a question. It is for Android

[android-developers] Detect OSK shown / hidden events

2010-11-30 Thread Juhani
Hi all! We're trying to trigger an animation whenever the on screen keyboard is shown or closed. There doesn't seem to be any options to register listeners directly to that event either in the EditText or in the window / app in general. Only solution I managed to find was an older post here where

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-11-30 Thread Spiral123
What do you mean what? Your phone touchscreen app will work fine with your touchscreen phone. with luck your app should then be able to find your GoogleTV device and get it to do stuff. How you talk to it and what stuff you can get it to do we will find out when we finally get to see the SDK.

[android-developers] Re: Please help with an ideea

2010-11-30 Thread Yahel
http://tinyurl.com/34f6d55 :) Yahel -- 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] getLookupUri(contactId, lookupKey) clarification

2010-11-30 Thread Dmitri Plotnikov
This was a bug in 2.1. Lookup key was based on the contact name for unsynced contacts, which created the problem you are describing. As of 2.2 we use raw contact ids instead. In both cases we use stable server-side ids for synced contacts. On Nov 29, 2010 11:01 PM, LSDsl gls...@gmail.com wrote:

[android-developers] Re: Please help with an ideea

2010-11-30 Thread Alex Munteanu
Not so fast my friend, I'm talking here about something totaly different than modifing the screen brigtness from API... This program apply somesort or filter to further reduce the brightness bellow the minimum value ..very useful on AMOLED screens like GalaxyS, where some people find the lowest

Re: [android-developers] Re: Doubt Layout

2010-11-30 Thread Diego N.
Thank you Kumar, worked the way you expected. On Tue, Nov 30, 2010 at 9:24 AM, Kumar Bibek coomar@gmail.com wrote: Use Linear layout with fill_parent(width). Add 2 buttons with layout_weight as 1. On Nov 30, 3:51 pm, Diego N. diegonunes.sist...@gmail.com wrote: Hello, I would put

[android-developers] Re: Detect touch event on a OpenGL object

2010-11-30 Thread Paolo
Yes you are right. is white, sorry I was confused. :) So, I have tried to implement the color-picking solution, without fortune, because I always get from glReadPixels... and I don't understand why... Maybe I can't read from the frame buffer? I'm using Android 2.2 and 2.1. :( This is

Re: [android-developers] Twitter Integration with Android app

2010-11-30 Thread Kumar Bibek
Try Twiiter4J library. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Nov 30, 2010 at 6:05 PM, Ajmer Singh ajmersing...@gmail.com wrote: Hi All I need to integrate the Twitter in my application,Could any body please let me know what are the best way to achieve

[android-developers] Re: What's the best way to have your app 'sleep' for N milliseconds?

2010-11-30 Thread Emanuel Moecklin
The Thread.sleep(1000) is probably not the best idea on Android because responsiveness is an issue if you care about user ratings ;-). With Thread.sleep() the app just sit's there and waits and won't respond to user input. I would recommend using something like: private static final int

[android-developers] Re: Detect OSK shown / hidden events

2010-11-30 Thread StevePotell
Take a look at the onConfigurationChanged(). If you add in the manifest that you want to handle the event, you can check the configuration object for keyboard displayed and run your code. http://developer.android.com/guide/topics/resources/runtime-changes.html On Nov 30, 9:41 am, Juhani

Re: [android-developers] Re: Passing objects to new intents

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 1:11 AM, Doug beafd...@gmail.com wrote: Parcelable is not such a headache once you get the boilerplate code out of the way. It's not only the repetitive CREATOR stuff. I found that if I send a custom parcelable to a Service which was to start after my main Activity had

[android-developers] Market has the All option disabled :)

2010-11-30 Thread Brad Gies
The content rating is finally showing in my console and the All option is disabled... Pre-Teen is selected by default :). -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.com

[android-developers] Re: What's the best way to have your app 'sleep' for N milliseconds?

2010-11-30 Thread Kumar Bibek
Whatever the case is, you cannor prevent the user to press the Home key to display the Homescreen, right? If you don't care about the Home button, then I guess, an Activity or a dialog should be fine. On Nov 30, 8:50 pm, Emanuel Moecklin 1gravity...@gmail.com wrote: The Thread.sleep(1000) is

[android-developers] Multiple clickable elements within a listview row? Good or bad idea?

2010-11-30 Thread Mark Wyszomierski
Hi, I've got a pretty standard list control, it's got about 4 lines of text. Some of the text in each row might start a new activity when clicked, like: Row 1 John Doe [clickable, starts activity] 1234 Main Street [clickable, starts activity] Last Read: The Great Gatsby [clickable,

[android-developers] Re: Why my apps can't be searched out by some phone model?

2010-11-30 Thread Kumar Bibek
1. Have you taken care of Adding multiple screen size support? 2. Do you use Copy protection?' 3. Do you filter your apps by country? (Least possible) On Nov 28, 6:20 pm, john h john.h...@gmail.com wrote: Some Italy users reported that some of my applications can't be searched out in Android

[android-developers] Re: Twitter Integration with Android app

2010-11-30 Thread Mathias Lin
I agree with Kumar, try Twitter4J. And you can check this blog post for a sample reg. OAuth authentication: http://consultingblogs.emc.com/nileeshabojjawar/archive/2010/03/18/twitter4j-oauth-generating-the-access-token.aspx On Nov 30, 11:48 pm, Kumar Bibek coomar@gmail.com wrote: Try

Re: [android-developers] Passing objects to new intents

2010-11-30 Thread John C. Bland II
Ok...I'll look into it. Thx dude! --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter: @johncblandii On Mon, Nov 29, 2010 at 9:42 PM, TreKing treking...@gmail.com wrote: On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II

Re: [android-developers] Making an Flash Application or Browser Based Application non exitable on Android Tablet PC

2010-11-30 Thread Frank Weiss
I want my application to not having the option of exiting or switching to other application Is it possible in web application. If yes how?? The Android SDK is speciifaclly designed to NOT allow such behavior. I think the only way to do that is by changing the device's firmware. -- You

[android-developers] Re: App freezes when the power key is pressed

2010-11-30 Thread Yahel
Ok that's weird. If you have nothing in your onStart and your onResume sets the loop as running for your drawing loop, then that is where you should have a look. My guess would be that the restarting of your looping via setRunning doesn't do what you think and that it is just not restarting at

[android-developers] Re: Do Androids dream of rule engines?

2010-11-30 Thread Dirk
Hi, I think Androids should dream of rule engines ! I am working on global event distribution and event processing at the network's edge (e.g. a mobile phone) and I recently ported several existing middlewares to Android. One of these is Esper, a complex event processing runtime. I do not know

[android-developers] ShellCommandUnresponsiveException

2010-11-30 Thread Kelo
Hi, I'm just starting on Android and trying to launch Hello Android, this error comes up: !ENTRY com.android.ide.eclipse.adt 4 0 2010-11-30 13:05:15.914 !MESSAGE No command output when running: 'am start -n com.example.helloandroid/com.example.helloandroid.HelloAndroid -a

[android-developers] Problem with TabHost not being the root of the layout

2010-11-30 Thread warunsl
Hello everyone I see it documented that for tab widget the layout for the tabs should have the TabHost as the root. But i have seen many applications (eg Facebook app) where tabs are below a edit text widget. I am not sure how to achieve that. If i do something like below, i just see the EditText

Re: [android-developers] Camera application

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 2:25 AM, kunwar handa kunwar.ha...@gmail.comwrote: Here are all the classes i made along with manifest I think you'll find that most people do not have the time or patience to parse through foreign, unformatted code. Someone please help me out.. If you want help,

[android-developers] Change Relative layout background dynamically Issues

2010-11-30 Thread Tommy
Hi everyone. I have a relative layout that I want to change the background according to a set of features. For some reason when I try to change the background image I get a null pointer exception. Currently in the onStart method I call a function the handles valedating then determins what

Re: [android-developers] Android: BackupManagerService

2010-11-30 Thread TreKing
On Thu, Nov 25, 2010 at 10:15 PM, Mahendra Liya liyamahend...@gmail.comwrote: I am trying to implement a functionality in one of my application which allows the user to change the screen brightness. I implemented it by using the Settings.System class (putInt / getInt methods).

[android-developers] Question about services

2010-11-30 Thread Isaac Wagner
I've been reading Mark Murphy's books about Android programming and I am having trouble understanding some things about services. As I understand it there are local and remote services that I can create. However, what I don't understand are the use cases for when you would use one over the

Re: [android-developers] hardware update wizard doesn't start when I plug in the phone with the USB cable

2010-11-30 Thread TreKing
On Thu, Nov 25, 2010 at 2:37 PM, David Karr davidmichaelk...@gmail.comwrote: How do I install the Android USB driver if the Hardware Update Wizard doesn't start? When you have something connected via USB, it shows up in the notification area of the task bar. Click that to bring up a Safely

Re: [android-developers] Handling Camera

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 1:24 AM, Android rajuma...@gmail.com wrote: am using the following code to get the preview for my camera , but my app getting force closed, dont know y, can anyone help me on this. A stack trace would help.

Re: [android-developers] SVG support in Android

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 8:33 AM, sysrix jean.poutc...@gmail.com wrote: Does Android support SVG ? Well that was easy http://tinyurl.com/364wygl :-) - TreKing

RE: [android-developers] Question about services

2010-11-30 Thread Tommy
I think a local service would work fine. Basically create another class in your android project, extend Service, do your stuff, then send a broadcast from your service. In your activity you will want to register a broadcast receiver that listens for that broadcast from the service. In the

Re: [android-developers] Change Relative layout background dynamically Issues

2010-11-30 Thread Kostya Vasilyev
Post your logcat output and the part of your layout xml file where you declare the RelativeLayout. I would guess that you either didn't assign an android:id to the relative layout, or using the wrong id with findViewById. Because of this, the value of background is null. -- Kostya

[android-developers] Where to find the source code of UI widget

2010-11-30 Thread cindy
Where could I find the source code of UI component of Android, such as button, spinner, progressbar, etc? Thanks! Cindy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Where to find the source code of UI widget

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 12:52 PM, cindy ypu01...@yahoo.com wrote: Where could I find the source code of UI component of Android, such as button, spinner, progressbar, etc? http://source.android.com/

[android-developers] Retrieve Version of another app

2010-11-30 Thread Nathan
This is probably obvious to the rest of you, but I'm getting a bit lost. I've been using the PackageManager to check whether another app is installed. Can I use it to check the version number of that other app? Thanks for any tips. Nathan -- You received this message because you are

Re: [android-developers] Retrieve Version of another app

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 1:01 PM, Nathan critter...@crittermap.com wrote: Can I use it to check the version number of that other app? http://developer.android.com/reference/android/content/pm/PackageInfo.html

  1   2   >