[android-developers] Auto-closing soft input method

2009-11-26 Thread HenrikH
Hi, Is there an easy way to have soft input methods automatically closed as soon as the user taps _anywhere_ outside of the corresponding EditText? Sometimes it's not very convenient if the soft input method stays on the display when the user starts performing other actions in the same activity.

Re: [android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-26 Thread Cédric Berger
On Thu, Nov 26, 2009 at 08:09, Dianne Hackborn hack...@android.com wrote: On Wed, Nov 25, 2009 at 8:16 PM, String sterling.ud...@googlemail.comwrote: Ironically, I hate task killers in the hands of muppets, but as a developer I occasionally find them useful for removing all traces of my own

[android-developers] Re: ADC 2 and Android Market Place Application Error

2009-11-26 Thread Pieter
Hello Croco, Just rename the package your application is in. Eclipse Refactor - Rename rules :-) Pieter, Author of SpecTrek. On Nov 26, 8:13 am, croco zeug...@gmail.com wrote: Hi all, I decided to put World of Bombs on the Market place but it ran unsuccessfully. The upload site ask me to

Re: [android-developers] Background listener getting killed

2009-11-26 Thread saify.zeenwala
hi have u tried android:enabled = true attribute in recieve tag of ur broadcaster regards On Thu, Nov 26, 2009 at 12:00 AM, Ravi textlo...@gmail.com wrote: I have an app that listens to incming Calls. If the user has another app that listens to the same (Call popup applicaitons in

[android-developers] Re: How can I detect when outgoing call has been accepted

2009-11-26 Thread Bot
I still haven't find solution. Anybody? :) Internal telephony application obviously uses some unpublished functions. Can anyone assert this? -- 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: 1.1 to 2.0: dalvik.system.PathClassLoader can't locate its own classes?

2009-11-26 Thread Kennard Consulting
Thanks fadden. I'll give it a try. Regards, Richard. -- 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: Is Shadow Mapping possible in OpenGL ES 1.0 ?

2009-11-26 Thread hzakimoto
Allow me to bump. Anyone have some pointers for me please? -- 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 to change Android Home screen orientation by a program

2009-11-26 Thread GodzillaHaur
Thanks, Dianne. How about the portrait mode or landscape mode of all systems? For example: HTC magic is portrait. Archos 5 Internet tablet is landscape mode. Which stage does it decide the mode? Is it possible to dynamically change modes between portrait and landscape mode? On Nov 26, 1:37 am,

[android-developers] Where store username and password?

2009-11-26 Thread Davide Cerbo
Hi all, I am developing an application that will works with social networks and I need the password of the users. What is the best way to store these? I will store these on backend developed on Google Apps Engine, but some friends suggest to me to store on phone. I'm very undecided! Thanks to all.

[android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread axel
Back to the original question: Apps working well with 1.5/1.6 are broken with 2.0 - exactly the same problem I have. AFAIK the code below is perfectly valid and should continue to work with 2.0 - unfortunately it does not. String[] returnColumns = new String[] {

[android-developers] Re: Touch or Click event...with a listView containing a gridView

2009-11-26 Thread Buddy
Hi, In fact, to sumarize my problem : my ListView contains rows with a grid View (each row has a gridView). I add an ItemClickListener on my ListView. But when I click on a row, and in particular on the GridView, nothing is done... If you can help... Thanks, Antoine -- You received this

[android-developers] Re: Android 2.0 SDK is here!

2009-11-26 Thread Buddy
Thanks a lot for the work ! Regards On Nov 4, 9:07 am, Nishant nish...@saltriver.com wrote: Hello, Why in-build javax.sound API of Java not introduced in Android 2.0? Lots of problems occur in Android Sound API (AudioTrack as well as MediaPlayer). Regards, Nishant Shah -- You received

[android-developers] force browser into portrait mode

2009-11-26 Thread rukiman
is it possible to start the browser activity from my game but force it to be portrait regardless of orientation so that it matches the orientation of my game which is always in portrait regardless. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] subscribe

2009-11-26 Thread chenfangrong
subscribe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread Mark Murphy
sathya subbiah wrote: Hi, I am trying to mention X and Y values for the Bitmap image, but the phone panics on mentioning the values. Bitmap temp_image = Bitmap.createBitmap(mAlbumArtImage,0,0,old_width,old_height,matrix,true); - Phone does not panic with this code as X and Y values are

Re: [android-developers] Floating button?

2009-11-26 Thread Mark Murphy
Hongbo wrote: Hey guys: I wonder how to make floating buttons, like the zoom button in the build-in web browsee? Actually there are 2 things i'd like to know: 1. How to make a view(button) floating above other views? Use RelativeLayout as the container for the other views, and add your

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread Mark Murphy
axel wrote: Back to the original question: Apps working well with 1.5/1.6 are broken with 2.0 - exactly the same problem I have. AFAIK the code below is perfectly valid and should continue to work with 2.0 - unfortunately it does not. String[] returnColumns = new String[] {

Re: [android-developers] disabling button onclicklistener for certain time

2009-11-26 Thread Mark Murphy
Jags wrote: I have a typical problem where if i keep repetedly press a button, a certain value increases, actually i am supposed to increase once till it disappears [it disappears in 700 ms] public class CatchMeOnClickListener implements OnClickListener { public void

Re: [android-developers] Re: How to Track Down Force Closes?

2009-11-26 Thread Mark Murphy
rflexor wrote: We have successfully implemented a crash-handler based on Thread.setDefaultUncaughtExceptionHandler(). You just have to make your ExceptionHandling-code fast and robust and must not rely on the availability of any resources. We just write the stacktrace to a file together

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread Tim Jowers
Is there an API to determine the phone's version of Android? For now, I'm using try-catch. Sucky but works. Also, my 2.0 built APK does not run on my G1 phone. Maybe it's something I've done but I haven't dug into it. Maybe that's what you meant by intelligent class loading do you mean

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread Mark Murphy
Tim Jowers wrote: Is there an API to determine the phone's version of Android? For now, I'm using try-catch. Sucky but works. android.os.Build.VERSION.SDK. Or, if you're only worrying about 1.6 and newer, use SDK_INT instead of SDK. Also, my 2.0 built APK does not run on my G1 phone. Maybe

[android-developers] Need Help with the android:weightSum and layout_weight attributes

2009-11-26 Thread Business Talk
I have a simple horizontal linear_layout with bunch of image views in it. the trick is that the views have different widths, relative to the size of their parent (the linear layout). I set the layout's weightSum to a 100 and the layout_weight to let's say 10 of one view and 15 of the other, on so

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread Tim Jowers
Sweet! Mark. Thanks for covering this. I don't see it solved anywhere on the Net or developer.android.com. Tim On Thu, Nov 26, 2009 at 7:42 AM, Mark Murphy mmur...@commonsware.com wrote: Tim Jowers wrote: Is there an API to determine the phone's version of Android? For now, I'm using

[android-developers] Re: Slow OpenGL on Samsung Galaxy - solution

2009-11-26 Thread LemonDev
i guess your Samsung Galaxy using the cell of Qualcomm 7201A(or nearly), it comes into a conclusion that a version of libhgl.so that qualcomm provided are not correctly returned when call eglChooseConfig . i have encounted that problem as you. so just setup your own EGLConfigChooser ,and don't set

[android-developers] Attributes represented by expresions

2009-11-26 Thread Business Talk
is it possible to define an attribute value of a height attribute, for example, relative to its parent's height. For instance, I want the linear_layout's height to be 2/3 of its FrameLayout parent. I have a FrameLayout with two linear_layouts. The first linear_layout fills the entire

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread Mark Murphy
Tim Jowers wrote: Sweet! Mark. Thanks for covering this. I don't see it solved anywhere on the Net or developer.android.com. A lot of this has been covered on this list before, either in the context of ContactsContract or more generally in the line of supporting different Android API versions.

Re: [android-developers] Attributes represented by expresions

2009-11-26 Thread Mark Murphy
Business Talk wrote: is it possible to define an attribute value of a height attribute, for example, relative to its parent's height. For instance, I want the linear_layout's height to be 2/3 of its FrameLayout parent. I have a FrameLayout with two linear_layouts. The first linear_layout

[android-developers] Re: ADC 2 and Android Market Place Application Error

2009-11-26 Thread croco
Hello Pieter, I know how refactor an Apps ;) But i don't want to rename for my CVS respository and the actual name of the package is the one i wanted ! I just want google delete of ADC apps would be more approriate in my opinion? Thanks Croco On Nov 26, 9:36 am, Pieter

Re: [android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread sathya subbiah
Hi Mark, Thanks for the reply. Have resolved the issue. Since I have set the X and Y parameter as 0 and 0 and tried to override it in the createBitmap function it gave error. I have another query. Can you please let me know is it possible to a view(For example: ImageButton or TextView) to a

Re: [android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread Mark Murphy
sathya subbiah wrote: Hi Mark, Thanks for the reply. Have resolved the issue. Since I have set the X and Y parameter as 0 and 0 and tried to override it in the createBitmap function it gave error. I have another query. Can you please let me know is it possible to a view(For example:

[android-developers] third party jars in android apps how to

2009-11-26 Thread Mihai
Hi all, I am trying to use a third party library for an application and I also need to add all it's dependency jars in order for it to work. What I did so far, was create a lib folder inside my android app project and started adding the library and all it's dependencies in there. However, when

Re: [android-developers] third party jars in android apps how to

2009-11-26 Thread Mark Murphy
Mihai wrote: I am trying to use a third party library for an application and I also need to add all it's dependency jars in order for it to work. What I did so far, was create a lib folder inside my android app That should be a libs/ directory. project and started adding the library and

Re: [android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread sathya subbiah
I am running the application in Linux environment. Can you please let me know how I can I check Hierarchy in Linux? Regards, Sathya On Thu, Nov 26, 2009 at 8:11 AM, Mark Murphy mmur...@commonsware.comwrote: sathya subbiah wrote: Hi Mark, Thanks for the reply. Have resolved the issue.

Re: [android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread Mark Murphy
sathya subbiah wrote: I am running the application in Linux environment. Can you please let me know how I can I check Hierarchy in Linux? http://developer.android.com/guide/developing/tools/hierarchy-viewer.html -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: How to Track Down Force Closes?

2009-11-26 Thread westmeadboy
I use a combination of my own default uncaught exception handler and flurry's. When an uncaught exception occurs, I grab all the device, firmware and app version etc info and relevant lines from the stacktrace and put them in a Map (max 10 entries, but you can just fire off multiple events) which

[android-developers] Read the GSM SIM Number on startup

2009-11-26 Thread manoj
Hi, I would like to know the GSM SIM number of the device once the mobile is switched on and write a call back once the sim number is got on startup. Can any one guide me on this. Thanks in Advance Manoj -- You received this message because you are subscribed to the Google Groups Android

[android-developers] one linearlayout bottom aligned.

2009-11-26 Thread Jags
i have 6 linearlayouts(horizental) inside a main linearlayout (vertical) the first 5 linearlayots keep on changing their heights. That makes 6th [bottom most] layout getting adjusted by its vertical position. I need the 6th layout always on buttom no matter how much first 5 layouts change any

[android-developers] GZIPInputstream skip() weird behavior

2009-11-26 Thread skink
hi, i have some concatenated GZIPInputstreams into one physical file and observed IOException (crc mismatch) after skip()ing and reading some bytes that are close to the end of GZIPInputstream i think it seems that skip() possibly reads ahead some data - thus reading next GZIPInputstream i

[android-developers] GZIPInputstream skip() weird behavior

2009-11-26 Thread skink
hi, i have some concatenated GZIPInputstreams into one physical file and observed IOException (crc mismatch) after skip()ing and reading some bytes that are close to the end of GZIPInputstream i think it seems that skip() possibly reads ahead some data - thus reading next GZIPInputstream i

[android-developers] ACTION_APPWIDGET_PICK , filtering the list

2009-11-26 Thread daniel.benedykt
Hi I have my own widget container. I am running the intent 'ACTION_APPWIDGET_PICK' but I want only to show some items in the list and not all items. Is there a way to filter the list? if not, is there any way to let the user just add one widget to my container, and not have to select form the

[android-developers] Re: Read the GSM SIM Number on startup

2009-11-26 Thread daniel.benedykt
Hi You need to use the class TelephonyManager http://developer.android.com/reference/android/telephony/TelephonyManager.html Depends on what exactly you want, you will need to call getSimOperator () , getSimSerialNumber() , getLine1Number() or another method. Hope that helps. Daniel On Nov

[android-developers] How to get the current activity window in java program?

2009-11-26 Thread bear tung
hi, all i want to write a java program like monkey to test my activity. like below, i can make a click at the coordinate, but i can not know the button's coordinate which i want to click. WindowManager windowManager =

[android-developers] Re: How do I work around missing Java libraries?

2009-11-26 Thread Long March
On Nov 25, 9:20 am, APF adriennef...@gmail.com wrote: I'm attempting to port a normal Java program over to Android, however I am having a problem with a huge number of missing Java packages (e.g., Android Java does not have java.lang.management).  Is there a way for me to work around this,

[android-developers] Where store username and password?

2009-11-26 Thread jesty
Hi all, I am developing an application that will works with social networks and I need the password of the users. What is the best way to store these? I will store these on backend developed on Google Apps Engine, but some friends suggest to me to store on phone. I'm very undecided! Thanks to all.

[android-developers] Re: Retrieving Shoutcast Meta-Data from MediaPlayer not possible. Any alternative ?

2009-11-26 Thread Ole
I've solved the issue. The solution is to simply get the meta-data separately from the MediaPlayer-stuff by connecting to the stream from time to time with HttpURLConnection and extracting the meta-data. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: third party jars in android apps how to

2009-11-26 Thread Mihai
Hi Mark, Thanks for the info, I am going to try renaming the lib into libs and see how that works out. Just hope eclipse decides to cooperate :). Cheers, Mihai On Nov 26, 3:18 pm, Mark Murphy mmur...@commonsware.com wrote: Mihai wrote:   I am trying to use a third party library for an

[android-developers] restricting edittext control's max chars

2009-11-26 Thread Jags
I need to restrict edittext's max chars to 255, how can i do that in layout or functions ? regards Jagat -- 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

[android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread axel
You will need to use reflection (or intelligent class loading) and use the ContactsContracts provider when running on Android 2.0, allowing your existing Contacts code to be used on 1.5/1.6. The Contacts.ContactMethods API is deprecated but not dropped. And even deprecated APIs are required to

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-26 Thread Tim Jowers
I agree with you Axel, I got it working. But shouldn't have had to do so. The larger moose is version compatibility. The industry standard is two versions back the API should work. Apache does not honor this. Now, Google is not either. It is PAINFUL to partner. In my case, 10 hours plus future

Re: [android-developers] Re: Retrieving Shoutcast Meta-Data from MediaPlayer not possible. Any alternative ?

2009-11-26 Thread Alok Kulkarni
Can you share your streaming Media App here , or just the basic steps. I am stuck where i can start downloading the song but the media player does not recognize it and gives error after prepare method is called. But if the download completes, then the song is played perfectly. Where am i going

[android-developers] Re: Server does not receive message from client

2009-11-26 Thread Pierre Henry
Hi, Your server is up at 10.0.2.15 and the client try to connect to 10.0.2.2 ? On 11 nov, 17:49, Mike88 michael...@gmail.com wrote: Hello, I have created a simple server and client both on android phone or emulators. The code is as follows Server: import java.io.BufferedReader; import

[android-developers] Re: ADC 2 and Android Market Place Application Error

2009-11-26 Thread André
Google stated in the ADC2 guidelines that you will you will not be able to use the same package name for both your ADC2 submission and your android market submission. So I doubt you will be able to submit your unchanged app anytime soon. Maybe after ADC2 is completely over?! -- André

[android-developers] Detecting which drawable folder was used.

2009-11-26 Thread Joshua Frank
Is there a way to detect whether a image was pulled from the folder res/drawable or res/drawable-hdpi? I am trying to save space and have a program that is using some hdpi bitmaps and some mdpi bitmaps. When an image is placed in drawable-hdpi it automatically replaces the mdpi version. I need to

[android-developers] ACTION_APPWIDGET_PICK intent. Where is the intent filter?

2009-11-26 Thread daniel.benedykt
Hi I am looking in the android code (http://source.android.com/ ) when I run the intent ACTION_APPWIDGET_PICK , what code is executed. Thanks Daniel -- 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] Automatic permissions in my T-Mobile G1

2009-11-26 Thread Guillaume Perrot
When I run any application from Eclipse on my real G1 device (a retail one, this is not a dev phone), I am granted the READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE even if i don't declare them in the AndroidManisfest.xml. I actually can call TelephonyManager.getDeviceID () to retrieve the IMEI and

[android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-26 Thread Guillaume Perrot
Same thing happens with the HTC Magic. Both phones are on Donut. I have also have this on Donut emulator but not on cupcake emulator. On 26 nov, 17:26, Guillaume Perrot guillaume.p...@gmail.com wrote: When I run any application from Eclipse on my real G1 device (a retail one, this is not a dev

[android-developers] Re: ADC 2 and Android Market Place Application Error

2009-11-26 Thread croco
I will wait the winners annoucement I just hope after the contest they remove all apps. if not it's just ugly behavior. Changing all an APP package name for that would be stupid. But like i trust Google i think they will do the right things to avoid to rename. Thanks Andre Croco On 26 nov,

[android-developers] Re: Touch or Click event...with a listView containing a gridView

2009-11-26 Thread Buddy
Hi, I am always searching for a solution...after several tests, I can conclude that it is when I add an adapter to my GridView that the problem arises. The method onItemClick of my ListView is never called anymore after this instruction : gridView.setAdapter(imageAdapter); And it works fine if

[android-developers] Can I use android:onClick and run my app on 1.5?

2009-11-26 Thread f_heft
Hello, just a short question for a better understanding: I'm developing an app based on the Android 1.5 Framework (with compatibility down to 1.1). But now I read about the new way of implementing click-handlers in Android 1.6 on the Android Developer Blog and I'd really like to use that in my

[android-developers] Re: Attributes represented by expresions

2009-11-26 Thread Business Talk
Thanks Mark, much appreciate. Good Luck On Nov 26, 7:57 am, Mark Murphy mmur...@commonsware.com wrote: Business Talk wrote: is it possible to define an attribute value of a height attribute, for example, relative to its parent's height.  For instance, I want the linear_layout's height to

[android-developers] Re: Message.recycle() always causes exceptions..

2009-11-26 Thread edovino
On Nov 25, 6:39 pm, Dianne Hackborn hack...@android.com wrote: If you send it to a handler, the handler/looper will recycle it for you. That explains it - thanks! Is this documented anywhere I failed to look? Regards, Edwin -- You received this message because you are subscribed to the

Re: [android-developers] Can I use android:onClick and run my app on 1.5?

2009-11-26 Thread Romain Guy
Hi, This feature is available only in Android 1.6, so no you cannot do what you want. On Thu, Nov 26, 2009 at 8:57 AM, f_heft delphik...@gmail.com wrote: Hello, just a short question for a better understanding: I'm developing an app based on the Android 1.5 Framework (with compatibility down

Re: [android-developers] Detecting which drawable folder was used.

2009-11-26 Thread Romain Guy
Hi, You do not need to do this since the framework will resize the bitmaps for you automatically if their density does not match the screen's. On Thu, Nov 26, 2009 at 8:03 AM, Joshua Frank frankjos...@gmail.com wrote: Is there a way to detect whether a image was pulled from the folder

Re: [android-developers] Need Help with the android:weightSum and layout_weight attributes

2009-11-26 Thread Romain Guy
Hi, What doesn't work exactly? What are you trying to do and what is the result? On Thu, Nov 26, 2009 at 4:42 AM, Business Talk roman.businesst...@gmail.com wrote: I have a simple horizontal linear_layout  with bunch of image views in it. the trick is that the views have different widths,

[android-developers] [OutOfMemoryError] How to release Drawable object from memory ?

2009-11-26 Thread Syl
In my application, user can click on a button and then he can select a picture from his gallery. This image is then displayed. However, when the user performs 3 or 4 times this operation, the following exception is thrown, due to memory allocation problem : 11-26 18:31:34.119:

[android-developers] Re: prelink-linux-arm.map issues

2009-11-26 Thread Jim Ancona
On Nov 26, 12:11 am, anshexp ansh...@gmail.com wrote: i want to add a shared library in android build . should i add that shared library to prelink-linux-arm.map file You might have more luck asking your question in android-porting. Jim prelink-linux-arm.map file having the list of shared

[android-developers] Re: How to release Drawable object from memory ?

2009-11-26 Thread daniel.benedykt
Hi Probably you are having a memory leak Read this article from google blog. http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html Hope this helps, Daniel On Nov 26, 3:42 pm, Syl sylvain.guyoma...@altran.com wrote: In my application, user can click on a button and then

[android-developers] How to get the highest API level supported by the device?

2009-11-26 Thread Agus
How to get the highest API level supported by the device? -- 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] How to get the highest API level supported by the device?

2009-11-26 Thread Mark Murphy
Agus wrote: How to get the highest API level supported by the device? android.os.Build.VERSION.SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to

Re: [android-developers] How to get the highest API level supported by the device?

2009-11-26 Thread Agus
thanks On Thu, Nov 26, 2009 at 10:55 AM, Mark Murphy mmur...@commonsware.comwrote: Agus wrote: How to get the highest API level supported by the device? android.os.Build.VERSION.SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning

Re: [android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-26 Thread Dianne Hackborn
I just replied to this. It's because a of 1.6 these are new permissions that old applications must be automatically given for compatibility. On Thu, Nov 26, 2009 at 8:34 AM, Guillaume Perrot guillaume.p...@gmail.comwrote: Same thing happens with the HTC Magic. Both phones are on Donut. I

[android-developers] Re: Incoming calls

2009-11-26 Thread Carlos Pérez
Of course, everythings woks fine now. On 23 nov, 07:19, Matt hansen.matt...@gmail.com wrote: Carlos, Could this be a simple race condition?  What happens if you delay a couple of seconds before displaying your activity?  Does it work under both scenarios? Matt On Nov 12, 10:19 am, Carlos

[android-developers] How to start up the native gallery app?

2009-11-26 Thread pcm2a
The api has a nice way to get a list of all installed applications: Code: PackageManager appInfo = context.getPackageManager(); ListApplicationInfo list = appInfo.getInstalledApplications (0); The problem is that the Gallery is not in this list. So what is the correct way to launch the

Re: [android-developers] Re: How to change Android Home screen orientation by a program

2009-11-26 Thread Dianne Hackborn
You can change the orientation when your activity is on top. When someone else is on top, you can't change what they want. The current orientation is decided based on a combination of the desires of the stack of activities, the current sensor value, the current dock status, and the specific

Re: [android-developers] Re: Our app is not visible on market for some devices

2009-11-26 Thread Klaus Kartou
FWIW, Klaus, Gigbox is visible from my handset (a stock G1 running 1.6 on UK T-Mobile), as well as my 1.5 test environment. String: Ok thank you for testing it out :) The problem is still unresolved...the app cannot be found on HTC Tattoo, and we have no way to do some thorough testing. On

[android-developers] How to replace the default lock screen?

2009-11-26 Thread Agus
How to replace the default lock screen? Which intent do i need to listen to The screen which shows your network and time. -- 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] How to replace the default lock screen?

2009-11-26 Thread Mark Murphy
Agus wrote: How to replace the default lock screen? Which intent do i need to listen to The screen which shows your network and time. That can only be modified through the firmware, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's

[android-developers] Enabling 'Immediately Destroy Activities' on the device

2009-11-26 Thread Artem - WorkSmart Labs
Happy Thanksgiving! Is there any way to enable this very useful setting programmatically or otherwise? It would be very helpful for us to do this full debugging on the device itself. Looking in the DevTools code, I see this... ActivityManagerNative.getDefault().setAlwaysFinish(mAlwaysFinish);

Re: [android-developers] How to replace the default lock screen?

2009-11-26 Thread Agus
Thanks On Thu, Nov 26, 2009 at 12:22 PM, Mark Murphy mmur...@commonsware.comwrote: Agus wrote: How to replace the default lock screen? Which intent do i need to listen to The screen which shows your network and time. That can only be modified through the firmware, AFAIK. -- Mark

[android-developers] Using the new startForeground vs the old setForground for services

2009-11-26 Thread skyhigh
I have a couple of services in my application which need to be marked as foreground to prevent them from being killed unnecessarily. Currently I am building my application with the 2.0 SDK but I have android:minSdkVersion=3 android:targetSdkVersion=5 in my manifest file so that I can

[android-developers] File Download in Browser Emulator

2009-11-26 Thread Fabio Melpignano
Good morning, I'm trying to download a file in the Android Emulator using a download servlet which I've written and deployed on my server. The servlet I wrote simply copy the InputStream of the file (which is located in the file system) to the servlet OutputStream. Well the result is that the

Re: [android-developers] Using the new startForeground vs the old setForground for services

2009-11-26 Thread Dianne Hackborn
Here is code that will allow you to run correctly on older and newer platforms. This is part of a blog post I am working on that should be up in the next few weeks. private static final Class[] mStartForegroundSignature = new Class[] { int.class, Notification.class}; private

[android-developers] Re: force browser into portrait mode

2009-11-26 Thread Paul Turchenko
Try creating your own activity with web view and lock its orientation On Nov 26, 1:22 pm, rukiman ruksh...@optushome.com.au wrote: is it possible to start the browser activity from my game but force it to be portrait regardless of orientation so that it matches the orientation of my game which

Re: [android-developers] Pixel Format Conversion in SF

2009-11-26 Thread Dianne Hackborn
It totally depends. It may be surface flinger, it may be an overlay that is YUV, etc. On Thu, Nov 26, 2009 at 2:39 PM, android-newbie k...@itsaver.com wrote: I am looking at the source code of a Camera Preview application and learning that the preview buffers coming from the sensor is in

Re: [android-developers] How to start up the native gallery app?

2009-11-26 Thread Dianne Hackborn
You can't do this. The gallery in most devices exists as part of the camera app, but may not. It is very important: if you rely on finding things by package name and trying to launch them, you will break in the future. Where things are and what their package names are, are entirely

[android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread pcm2a
Why would it break in the future? The main function of my app relies on the user to be able to get a list of install applications. Think of like an application like App Task Manager that shows you the installed apps and allows you to uninstall them. Running appInfo.getInstalledApplications(0)

Re: [android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-26 Thread Guillaume Perrot
READ_PHONE_STATE is not a new permission, is it ? 2009/11/26 Dianne Hackborn hack...@android.com I just replied to this. It's because a of 1.6 these are new permissions that old applications must be automatically given for compatibility. On Thu, Nov 26, 2009 at 8:34 AM, Guillaume Perrot

[android-developers] Re: Need Help with the android:weightSum and layout_weight attributes

2009-11-26 Thread steelbytes
I think you have to set the width of each item to 0px. then the weighting will override this? seems to work for me. It's a shame that the docs are so spartan. On Nov 27, 4:41 am, Romain Guy romain...@google.com wrote: Hi, What doesn't work exactly? What are you trying to do and what is the

Re: [android-developers] Re: Need Help with the android:weightSum and layout_weight attributes

2009-11-26 Thread Romain Guy
Using 0px is mostly an optimization. It is not required. On Nov 26, 2009 5:16 PM, steelbytes lo...@steelbytes.com wrote: I think you have to set the width of each item to 0px. then the weighting will override this? seems to work for me. It's a shame that the docs are so spartan. On Nov 27,

Re: [android-developers] Re: Android in China - What is going on?

2009-11-26 Thread Dianne Hackborn
Again, I don't think anyone here can answer these questions. This discussion is really outside the realm of android-developers, and should probably be moved elsewhere. On Thu, Nov 26, 2009 at 5:12 PM, shimsim shim@gmail.com wrote: Let's keep politics out of this discussion and also realize

Re: [android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-26 Thread Dianne Hackborn
http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT On Thu, Nov 26, 2009 at 4:53 PM, Guillaume Perrot guillaume.p...@gmail.comwrote: READ_PHONE_STATE is not a new permission, is it ? 2009/11/26 Dianne Hackborn hack...@android.com I just replied to this. It's

Re: [android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread Dianne Hackborn
It doesn't even work today, because different devices have the gallery implemented in different places. DO NOT USE PACKAGE NAMES. The only supported way to launch other applications is through the officially published intent protocols, such as VIEW with an image to show an image. On Thu, Nov

[android-developers] Re: Android in China - What is going on?

2009-11-26 Thread shimsim
Agreed Dianne, I appreciate its not the best place to post this, although developers in China that are looking for a long term platform to work on might say otherwise. If you can suggest a more appropriate place I am happy to post there, just I was hoping that at least on the developer group there

[android-developers] how to get domain name

2009-11-26 Thread tstanly
hi all, I use webview to address the url link, but I want to know how to get the url's domain name? such as when I link to http://www.yahoo.com, then I can get the yahoo domain name, so how to do that? thanks -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: how to get domain name

2009-11-26 Thread tstanly
sorry, or can I get the url's title? that means the website titile content in the http header tag On 11月27日, 上午10時49分, tstanly tsai.sta...@gmail.com wrote: hi all, I use webview to address the url link, but I want to know how to get the url's domain name? such as when I link

[android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread pcm2a
I don't need to start up one image, what I need to start up is the gallery application. I'm not wanting to choose one image or return an image back to my application. I just want the gallery app to start up just like you clicked the icon. I do have some good news that I have figured out a way to

[android-developers] Re: Android in China - What is going on?

2009-11-26 Thread CraigsRace
I had been in communication with some Chinese companies telling me that they are going to set up their own Android Market that would not be blocked and would be available for the OPhone. Unfortunately, none of the companies could show me any evidence that they had anything close to being

[android-developers] Re: Does OpenGL API glDeleteTextures works?

2009-11-26 Thread LemonDev
Texture index of zero is default,you can not delete it. you should always delete textures that you generate by call glGenTexures. On 11月19日, 下午4时57分, BigOne smile2...@gmail.com wrote: Hi all I'm doing a little 3D app programming based on SDK 1.5. I can't change textures in any way with

[android-developers] Re: Screen is dark momentarily when launching OpenGL view (GLSurfaceView)

2009-11-26 Thread LemonDev
set a background bitmap before you rendering opengl , and as soon as to to render the second frame ,you can move background away! the key point is to set the background bitmap to the same appearance of first activity( i think in your situation is your first homescreen ). this is my solution i

Re: [android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread Dianne Hackborn
Okay I am going to say once more, and I am done with this thread: do not do this. Your app -will- break on different devices. You have been warned. Please don't complain about having to deal with your app breaking when it does, because you are making assumptions about very fragile

  1   2   >