[android-developers] Re: How to do selective "compiling" in Android

2010-11-15 Thread String
On Nov 16, 7:19 am, MathiasL wrote: > Or is there some other clever way to handle platform differences > without having sparate branches for each targeted platform version? Sure is. Several, in fact. See: http://developer.android.com/resources/articles/backward-compatibility.html and http://a

[android-developers] who can give me some example to show how to use EGLimage?

2010-11-15 Thread 袁堂夫
who can give me some example to show how to use EGLimage? please help me, thank you! -- 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, se

[android-developers] Re: Thread handling problem in Test Case

2010-11-15 Thread Doug
You will have to have the main test thread wait for a response from the server test thread. If you are waiting for a callback with the response, that callback should notify the main thread which needs to be waiting on that signal. Pick your favorite thread sync mechanism (Semaphore, CountDownLatc

[android-developers] Re: How to do selective "compiling" in Android

2010-11-15 Thread MathiasL
Hi What I ment was that I want my app to be able to run on 1.6 and 2.x devices, and when it runs on more modern devices I would like to use some of the features avalable on those platforms. Or is there some other clever way to handle platform differences without having sparate branches for each t

[android-developers] Send SMS from Widget

2010-11-15 Thread Rohith Nandakumar
Hi. I want to send a preset SMS message when I click on my widget. How do I do it? -- 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

[android-developers] Code for capturing the screenshot of live wallpaper

2010-11-15 Thread Vic
I want to capture the screenshot of live wallpaper which is the current wallpaper in the launcher. Is there the method to capture the screenshot? Thanks for helping. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] Re: The server could not process your apk. Try again.

2010-11-15 Thread Howard M. Harte
Make sure you don't have any empty uses-configurations tags. I got hit by this today too, when I added some extra empty tags in my AndroidManifest.xml. Definitely the Market error message could be more helpful... On Nov 15, 8:09 pm, String wrote: > Since this morning, I've been getting the erro

Re: [android-developers] wish to join you

2010-11-15 Thread Rocky
Welcome :) On Fri, Nov 12, 2010 at 11:11 AM, andy zhao wrote: > cause I am interested in the android, hope can join your groups. tkx:) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Yes he did, and I appreciated his help. I had posted this message before his came through, so I was not asking again. Thank you all for your help. On Nov 15, 7:11 pm, String wrote: > On Nov 16, 12:24 am, John Gaby wrote: > > > Do you have any > > suggestions about what I could use in the case

Re: [android-developers] I don't get any event such as onResume, onStart when the screen is turned on

2010-11-15 Thread Dianne Hackborn
The only changes from the screen turning off and on and onPause() when it is turning off and onResume() when it is turning on. On Mon, Nov 15, 2010 at 9:38 PM, Kumar Bibek wrote: > > http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle > > After onStop, onRestart sh

Re: [android-developers] Android tablet

2010-11-15 Thread Kumar Bibek
Project structure is the same, AVD is the same, yes, you can. There's is no difference in these two as far as the SDK is concerned. It doesn't provide phone/tablet specific APIs to the developers. All the of APIs would work the same way as expected. On Fri, Nov 12, 2010 at 1:31 PM, Ravi Shankar Ku

Re: [android-developers] I don't get any event such as onResume, onStart when the screen is turned on

2010-11-15 Thread Kumar Bibek
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle After onStop, onRestart should be called. Check if your onRestart is getting called or not. On Fri, Nov 12, 2010 at 9:26 AM, Yuie. wrote: > The below is my trace log: > > > (start

[android-developers] CPUTime per process

2010-11-15 Thread aparna
Hello, I want to calculate CPUTime per process for Android devices. please help me.. 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@googlegroups.com To unsubscribe from this

[android-developers] Re: force resolution be be higher than 800*480

2010-11-15 Thread billconan
thank you. guess i will have to detect the screen size in the program and pop some warning. On Nov 15, 12:38 pm, Mark Murphy wrote: > On Mon, Nov 15, 2010 at 3:34 PM, billconan wrote: > > I'm working on a game application and because the testing phones i use > > have 800*480 and 854*480 resolut

Re: [android-developers] How the read the recipients of a sent SMS message with multiple recipients ?

2010-11-15 Thread Kumar Bibek
The SMS content provider, at least by my knowledge is not public and thus no one would be able to tell you how to do stuff with it. Moreover, manufacturers put in their own implementations of the content provider. So, your code might not run perfectly on all the devices. On Fri, Nov 12, 2010 at 4:

[android-developers] Re: help in getting python working

2010-11-15 Thread Salil
Thanks Kristian I am sorry to say that I am not very familiar with the android terminologies and the mechanism[s] with which it works. Could you please let me know how to work with ASE. I don't think it would be a good idea to use adb to execute the python interpreter Also any idea why

Re: [android-developers] play remote audio file in android audio player

2010-11-15 Thread Kumar Bibek
I don't think you can do this. Most of the devices come with their own Media player implementations. So, unless, those players expose an Intent to do so, you cannot use the default media player to stream mp3s. However you can create your own media player activity and stream your files. On Fri, Nov

Re: [android-developers] how can i get the messages in gmail/email client inbox folder?

2010-11-15 Thread Kumar Bibek
Well, the mail apps do not provide a public content provider which you could use directly. So, the answer would be no. -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Getting Keyboard To Appear With Ought Having To Click on EditText

2010-11-15 Thread nishu
Hey u can do what @TreKing commented or Write this in u'r Android Manifest file android:windowSoftInputMode="stateVisible" or android:windowSoftInputMode="stateAlwaysVisible" Hope this helps u On Nov 15, 7:44 am, Prasanna Perera wrote: > Hello, > > I am using a custom layout on an AlertDialog.

[android-developers] Re: How to connect to a Remote Database with Webservices?

2010-11-15 Thread Hal
You may want to use the reusable Jt component and design pattern: DAOs, MDP messaging and Restful web services. The following links may help: Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library http://www.ibm.com/developerworks/webservices/library/

[android-developers] Re: How to make phone call from home screen widget?

2010-11-15 Thread String
On Nov 15, 8:44 am, Marcin Orlowski wrote: > The same way you call from any other code. No, you don't. > Intent intent= new Intent(Intent.ACTION_CALL); > intent.setData(Uri.parse("tel:123456789")); > startActivity(intent); That isn't correct. Declaring and setting up the Intent is fine, but yo

[android-developers] The server could not process your apk. Try again.

2010-11-15 Thread String
Since this morning, I've been getting the error in the subject when I try to upload a new APK version to my Market Developer Console. At first, I figured it was just a brief server outage, but not since it's gone on all day. I also suspect it's only affecting me, since I've seen no other mention of

[android-developers] Re: How to make phone call from home screen widget?

2010-11-15 Thread Rohith Nandakumar
I tried that. But I get an error: 'The method startActivity(Intent) is undefined for the type ImagesWidgetProvider' On Nov 15, 1:44 pm, Marcin Orlowski wrote: > On 15 November 2010 06:54, Rohith Nandakumar > > wrote: > > I have a widget, and I want it to make a phone call to a preset number > >

[android-developers] how can i get the messages in gmail/email client inbox folder?

2010-11-15 Thread MG
hi all. i would just like to ask on how can i get the messages on my email inbox folder and display it? similarly, how can I access gmail's inbox or other mail client's inbox folder? is this possible on android? do you have any idea? thanks in advance! -- You received this message because you a

Re: [android-developers] Where to start ???

2010-11-15 Thread TreKing
On Fri, Nov 12, 2010 at 3:52 AM, Anand Joshi wrote: > Please help me as to where to start > Tip: When you ask: "Where do I start with X?" the answer is usually "The official website for X": http://developer.android.com/index.html > and how is the linking between XML and Java codes in a standa

Re: [android-developers] Re: Phone Call Simulator App

2010-11-15 Thread TreKing
On Thu, Nov 11, 2010 at 9:22 PM, Daniel Quach wrote: > > How would I go about achieving this? I don't think this is something you can do ... - TreKing

[android-developers] Edit contact android < 2.x

2010-11-15 Thread Nikola
Hi, I know it is possible to add contact via Intent and putExtra with all infromation you want to add. Is it possible to update contact with new information by calling Intent with putExtra with new info? tnx in advance. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programm

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread String
On Nov 16, 12:24 am, John Gaby wrote: > Do you have any > suggestions about what I could use in the case where the ANDROID_ID is > null? Didn't Mark give you 2 suggestions (IMEI and MAC), along with a third meta-suggestion (search this group)? String -- You received this message because you a

[android-developers] play remote audio file in android audio player

2010-11-15 Thread resursecrestine
Hello, I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player? I have tried something like Integer i = v.getId(); String link = "http://www.site.com/file.mp3";; Uri uri = Uri.parse(link

Re: [android-developers] Customize a Android distro boot and laucher

2010-11-15 Thread Eduardo Nunes Pereira
Bulls-eye, thanks Mark ! On Thu, Nov 11, 2010 at 10:23 PM, Mark Murphy wrote: > On Thu, Nov 11, 2010 at 7:18 PM, Eduardo Nunes Pereira > wrote: >> Hi, i'd like to customize a android distro to use in a tablet project >> in university, think the customization is in the low layers, such: >> boot s

[android-developers] Where to start ???

2010-11-15 Thread Anand Joshi
I know some decent stuff of java !!! But have absolutely no clue about XML Please help me as to where to start and how is the linking between XML and Java codes in a standard ANdroid App !!! -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] LG GW620 LinkMe - Softkeyboard Issues

2010-11-15 Thread darq
Hi all, I've a problem to show the virtual keyboard in the subject's phone. In order, forcing the opening with the android api (without using system editbox), the soft keyboard doesn't appears and the phone 'answer me' with the message 'Use the keys'. Here the API I am using: [code] final InputMe

[android-developers] Re: Phone Call Simulator App

2010-11-15 Thread Daniel Quach
ok, so I have this code to ensure that the launched fake call screen will activate even through a lock screen: getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); Now, when the activity launches, I want the

[android-developers] Thread handling problem in Test Case

2010-11-15 Thread Mahabaleshwara Vasishta
Hi, I am implementing a testcase in Android Juint. I am facing problem in handling threads. After the successful running of a test case, it will not wait for child thread to be finished. e.g. If one testcase call some services in server. testcase will successfully send request to a server, but it

[android-developers] How to connect to a Remote Database with Webservices?

2010-11-15 Thread Pableras
Hi, I have an android APP. I need to connect to a remote D.B. on the internet. All i know is that i have to use a Web Service, installed on the remote DB server. Whith my Android APP i have to connect to the web service, and the web service will do the logical operations to get the necesary data f

Re: [android-developers] I/O streams in android

2010-11-15 Thread Manori Thakur
Thanks.I will look into it Cheers, manorit On Thu, Nov 11, 2010 at 4:41 PM, Miguel Morales wrote: > I've been using the java.net classes for fast and reliable > communication with a backend server. > Sounds like an issue with your code. > > On Thu, Nov 11, 2010 at 10:55 AM, manorit wrote: > > H

[android-developers] I don't get any event such as onResume, onStart when the screen is turned on

2010-11-15 Thread Yuie.
The below is my trace log: (start activity) onCreate OnStart OnResume (running something) ... ...(other events) ... onStop (screen is off) when my phone screen goes off, my App. gotta onStop, and there is no longer event occurred.

[android-developers] Contacts helper class or simple library?

2010-11-15 Thread vnv
Hi, could anyone tell if there is some simple helper class or library for accessing Contacts in Android phone. I don't think I am the first one who is having difficulties coping with Contacts management from code. They could done it a little bit simpler.. Tnx for help. -- You received this mes

[android-developers] Slow execution getThumbnail in HTC hero

2010-11-15 Thread Lovely
I am using MediaStore.Images.Thumbnails.getThumbnail to create bitmap of thumbnail in htc hero , it takes lots of time to execute this. I other device it works faster. Please suggest any alternative to this method to create bitmap thumbnail so speed improves. -- You received this message because

[android-developers] Thread handling problem in Test Case

2010-11-15 Thread Mahabaleshwara Vasishta
Hi, I am implementing a testcase in Android Juint. I am facing problem in handling threads. After the successful running of a test case, it will not wait for child thread to be finished. e.g. If one testcase call some services in server. testcase will successfully send request to a server, but it

[android-developers] How the read the recipients of a sent SMS message with multiple recipients ?

2010-11-15 Thread Alvin Hu
I can just read the first recipient of a send SMS with multiple recipients by the following code snippet: Uri smsURI = Uri.parse("content://sms/"); Cursor smsCursor = m_objContentResolver.query(smsURI, null, null, null, null); ... .. String strPerson = null; int nColumnIndex = smsCursor.

[android-developers] NumberPicker (clone) problem

2010-11-15 Thread Larry/MavrickProductions
I am using the NumberPicker clone from quietlycoding (who cloned the internal code). It works fine with Mike's demo code and works fine if I call it from the main.xml of a new project. But it crashes the program if I put it into a different page title or put it into a page that appears as an over

[android-developers] A Mistake in Dev Guide

2010-11-15 Thread Daniel
`` android update lib-project \ --target \ --path path/to/your/project --library path/to/library_projectA '' should be: ``android update project \ --target \ --path path/to/your/project --library path/to/library_projectA '' -- You received this message because you are subscribed to the Google G

[android-developers] Connect to MSN messenger in android

2010-11-15 Thread Nagaraj Shet
hi Can any one please tell me how to connect to MSN messenger which protocol to use and any java library is available to that for android? I tried with XMMP but MSN does not support it. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Slow execution getThumbnail in HTC hero

2010-11-15 Thread Lovely
I am using MediaStore.Images.Thumbnails.getThumbnail to create bitmap of thumbnail in htc hero , it takes lots of time to execute this. I other device it works faster. Please suggest any alternative to this method to create bitmap thumbnail so speed improves. -- You received this message because

[android-developers] Re:

2010-11-15 Thread rushmore
Yep the best way to start with android is developer.android.com. Also I have used: . Android Wireless Application Development - Shane Conder, Lauren Darcey . Professional Android Application Development - Reto Meier On 12 nov, 08:54, xc s wrote: > hey,everyone,I am student from china,I want to bu

[android-developers] MOVING BACKGROUND IMAGE FOR ANDROID GAME

2010-11-15 Thread elioncho
Hello, I'm currently developing an Android game where the user controls a plane and evades obstacles. I'm using simple draw commands into a Canvas. I want to know what is the best way to move a background image to give a sense of speed to the game. Is there a way to make the background- image rep

[android-developers] application crashes when trying to play media in res/raw

2010-11-15 Thread Daniel Quach
I have a small mp3 (326KB) in my res/raw folder. In my code, I have mPlayer = MediaPlayer.create(FakeCallScreen.this, R.raw.sample); mPlayer.prepare(); mPlayer.start(); The application just crashes when it tries to start the activity, I cannot figure out why. -- You received this message becau

[android-developers] Going through resources one by one

2010-11-15 Thread Omi
Hello, I want to make a library that when called will extract all text from all the resources in the app. I understand how to access resource by ID but I want this library to be generic ( I don't want it to know what resources are available). Does anyone have an idea on how to do just that? -- Yo

[android-developers] Android tablet

2010-11-15 Thread Ravi Shankar Kumar
Hi, Can anyone suggest me that is there any difference between android phone & android tablet in application development. I want to develop an application for android tablet. so plz tell me that what should know me regarding general info to develop application for android tablet. can i use same

[android-developers] wish to join you

2010-11-15 Thread andy zhao
cause I am interested in the android, hope can join your groups. tkx:) -- 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 an

[android-developers] how to make a hidden notification bar popup

2010-11-15 Thread Eric Murtaugh
so i have my app running in fullscreen however i want to add a button that when pressed basically makes the notificationbar pop back up and imedeatly drop down so all notifications are visible, however i also want it to redisappear when its slide back up, is this possible? -- You received this me

[android-developers] Re: Looking for ListAdaptor pattern

2010-11-15 Thread Bret Foreman
I've been looking at the AdapterView but it's not clear how you tell it how many views wide for a 2-D arrays of Views. It's also not clear how you tell it which views are "pinned" and should not be included in either the vertical or horizontal scroll. Think of a spreadsheet where every column is a

Re: [android-developers] How to make network reconnection in the app of c/s?

2010-11-15 Thread Jenus Dong
Thanks, Miguel Morales. When network disconnected, the code will check right now. Yes, now start the timer to connect periodically till it connect successfully. It works. After googling, Android has one manager, ConnectivityManager, can detect the network information. So can check the available ne

[android-developers] Re: How to make network reconnection in the app of c/s?

2010-11-15 Thread Mooncheol Yang
override broadcast onreceive method On 11월16일, 오전10시56분, Jenus Dong wrote: > Hi, all > Such like messager app, client/server framework, using tcp long connection > using heart beating packet. > Cause TCP connection, so when local network is diable or changed, > connection would be disconnected.

[android-developers] Re: Looking for ListAdaptor pattern

2010-11-15 Thread Mooncheol Yang
use holder pattern, look for google I//O, even better if use cache pattern On 11월16일, 오전11시08분, Bret Foreman wrote: > I have a custom layout with a lot of Views. Currently, I build the > entire view hierarchy in the onCreate, though I stream the actual work > in small batches. This works OK up t

[android-developers] Re: Get the screenshot includes the current wallpaper without DDMS

2010-11-15 Thread Mooncheol Yang
because Root view doesn't have notify area or background. there is no way to get full screenshot without being rooted. On 11월16일, 오전11시07분, Vic wrote: > I applied android:theme=...@android:style/Theme.Wallpaper” to get the > current wallpaper as the background of my application. Then, I used >

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Thanks, I will give those a try. On Nov 15, 4:24 pm, Mark Murphy wrote: > On Mon, Nov 15, 2010 at 7:17 PM, John Gaby wrote: > > I just double checked it on a Motorola Devour running 1.6 and it is > > definitely returning a null.  I will see if I can find another 1.6 > > device and check to see

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Ok, I tried it out on an HTC Tatoo also running 1.6, and it returns a value, so it does happen on only some devices. However, I really need a unique id that will work on every device. Do you have any suggestions about what I could use in the case where the ANDROID_ID is null? Thanks. On Nov 15,

[android-developers] Unexplained Errors from Android MediaPlayer

2010-11-15 Thread Prajakta Shitole
Hi All, I am getting the below errors from the Media Player Error(1, -1002) or Error(1, -2147483648) Has anyone been able to resolve these errors? is this because of the media format? Any kind of help is highly appreciated. Thanks, Prajakta -- You received this message because you are subscri

[android-developers] Looking for ListAdaptor pattern

2010-11-15 Thread Bret Foreman
I have a custom layout with a lot of Views. Currently, I build the entire view hierarchy in the onCreate, though I stream the actual work in small batches. This works OK up to about 1000 Views and then performance degrades a little. Obviously, I'd like to use the ListAdapter pattern and only genera

[android-developers] Get the screenshot includes the current wallpaper without DDMS

2010-11-15 Thread Vic
I applied android:theme=...@android:style/Theme.Wallpaper” to get the current wallpaper as the background of my application. Then, I used the getRootView().getDrawingCache() to get the screenshot of my application. I found that the screenshot didn’t include the current wallpaper. Does anyone know t

[android-developers] Re: Custom checkable ImageView

2010-11-15 Thread Bret Foreman
Hmm, the git example was remarkably unhelpful. A few comments in the code would be nice. Anyway, here's what I'm trying to do: My selector XML looks like this: http://schemas.android.com/apk/res/android";> I set the onTouch listener of the ImageView like this:

Re: [android-developers] How to make network reconnection in the app of c/s?

2010-11-15 Thread Miguel Morales
Something like this wouldn't be hard to implement in your application. Android offers several classes that will help you in probing for the state of the network connection, wifi connection, etc. If what you're doing is just regular socket TCP communication simply wrap your communication in an try

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Thanks for the info, but, as I stated at the beginning of this thread, that is exactly what I am using now, and I can tell you it does NOT work on some devices. On Nov 15, 4:59 pm, Brad Gies wrote: > Settings.System.getString(getContentResolver(), Settings.System.ANDROID_ID); > > Sincerely, > > B

[android-developers] How to make network reconnection in the app of c/s?

2010-11-15 Thread Jenus Dong
Hi, all Such like messager app, client/server framework, using tcp long connection using heart beating packet. Cause TCP connection, so when local network is diable or changed, connection would be disconnected. But to the client, it may not be known right now till the next interaction with the SER

[android-developers] Short survey for a friend

2010-11-15 Thread James Payne
Hi guys A friend of mine is studying the economics of app development at USC this fall. She's putting together a paper which she will send you if you are interested. Here's a link to the survey - I just completed it and it only took a couple of minutes: http://spreadsheets2.google.com/a/usc.edu/v

Re: [android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread Brad Gies
Settings.System.getString(getContentResolver(), Settings.System.ANDROID_ID); Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com http://forcethetruth

Re: [android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 7:17 PM, John Gaby wrote: > I just double checked it on a Motorola Devour running 1.6 and it is > definitely returning a null.  I will see if I can find another 1.6 > device and check to see if it is just this particular one.  Given that > this call CAN return null, is ther

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
I just double checked it on a Motorola Devour running 1.6 and it is definitely returning a null. I will see if I can find another 1.6 device and check to see if it is just this particular one. Given that this call CAN return null, is there some other way to get a unique id for the device? Thanks

Re: [android-developers] Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread Mark Murphy
That should work on devices. It returned null on the emulator until 2.2 (or maybe 2.1, not sure when they made that cutover). But I have definitely gotten it to work on 1.6 devices, though I haven't tried in quite some time. On Mon, Nov 15, 2010 at 6:52 PM, John Gaby wrote: > I am using the follo

[android-developers] Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
I am using the following to obtain the ANDROID_ID for the device: Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID); Unfortunately this is returning null on 1.6 system (emulator and actual devices). I have also tried using Settings.Secure.ANDROID_ID; which is deprecat

[android-developers] ClassNotFoundException for a compiled class

2010-11-15 Thread pskr
Hi, I am writing an application and due to various reasons I had to build it using make (froyo code) and not SDK. When I run my app on emulator it works fine. I have an Android device and code to build image for the device. When I build my app with device code, it builds fine. How ever, when I

[android-developers] Re: help in getting python working

2010-11-15 Thread Kristian
Hi, I think Python for android either requires you to use the ASE or run it from the terminal. Try to use adb to connect to your phone, type python and see what happens. If it works, you should enter the interactive shell. -Kristian -- You received this message because you are subscribed to the

Re: [android-developers] Referencing a library adds _src reference

2010-11-15 Thread Xavier Ducrohet
http://developer.android.com/guide/developing/eclipse-adt.html#libraryMigrating Xav On Wed, Nov 10, 2010 at 3:39 AM, oriharel wrote: > Hi, > after updating Eclipse Android plugin (ADT 0.9.9) I get strange > behavior. > I have one android project referencing another (IsLibrary=true for the > othe

[android-developers] Force all tabs in a TabActivity to initialise

2010-11-15 Thread kl4232
I have a TabActivity class that has 3 tabs on it. Typically you pick 1 to be currently active and it initializes. Only when you select another tab is that one initialized. Is there any way to force all 3 tabs to initialize onstartup. Calling setCurrentTab(0); setCurrentTab(1); setCurrentTab(2); doe

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Neilz
Pent... your layout did the trick for me. Strange thing is, I can't really understand why yours works and mine doesn't... that's android for you I guess! Thanks :-) Oh, and this time for once, layout_height="0px"; didn't work. It actually made it zero height. On Nov 15, 5:15 pm, Pent wrote: > H

Re: [android-developers] force resolution be be higher than 800*480

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 3:34 PM, billconan wrote: > I'm working on a game application and because the testing phones i use > have 800*480 and 854*480 resolutions, I created my game assets based > on 800*480 resolutions. supporting low resolution will result in > changing lots of my code. and the g

[android-developers] Accessing style items by style ID

2010-11-15 Thread Vitaliy Tarasenko
Hello. I have a problem. Any View have a constructor public View (Context context, AttributeSet attrs, int defStyle) which called when View declared with a style attribute So, if I have some class inherited from View class, I can access to declared attributes (like "android:layout_width" or "androi

[android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread kk
Top stuff Kostya/Dianne. Thank you for the feedback. I think before I look into anything else, I should do this first to get rid of the thousands of micro-allocations that take place there. UI elements are drawn about 20 times per second and although I cache values that don't change, a lot of the

[android-developers] force resolution be be higher than 800*480

2010-11-15 Thread billconan
Hello guys, I'm working on a game application and because the testing phones i use have 800*480 and 854*480 resolutions, I created my game assets based on 800*480 resolutions. supporting low resolution will result in changing lots of my code. and the game experience on low resolution screens will

Re: [android-developers] Calling an external application problem.

2010-11-15 Thread Diego Queiroz
tyvm! look, tried to modify my code to accomplish what u said (didn't get it very clear) so here's the final solution i got by trying your tip out: try { Intent mainIntent = new Intent(Intent.ACTION_MAIN); ComponentName batteryUseComponent = new ComponentName( "com.android.s

Re: [android-developers] Activity display over incoming call screen

2010-11-15 Thread mohammad Rukab
Thanks All , I resolved problem through work around solution.. Thank Again. On Mon, Nov 15, 2010 at 2:39 AM, Dianne Hackborn wrote: > On Sun, Nov 14, 2010 at 3:27 AM, mohammad Rukab > wrote: > >> This issue can resolve through put a delay before fire new activity, but >> the issue is why previ

[android-developers] Re: Custom checkable ImageView

2010-11-15 Thread Kumar Bibek
This might give you some hints http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/CompoundButton.java On Nov 15, 11:54 pm, Bret Foreman wrote: > I trying to create an ImageView with 3 states - default, pressed, and > checked. I've extended ImageView,

Re: [android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread Kostya Vasilyev
What I was suggesting was, rather than using Integer.toString(), or any other String / StringBulider methods, format the value yourself. In class declaration: char[] mMyHealthStr = new char[8]; int mMyHealthLen = 0; When drawing: // convert integer to string in mMyHealthStr, set mMyHealthLen

[android-developers] Custom checkable ImageView

2010-11-15 Thread Bret Foreman
I trying to create an ImageView with 3 states - default, pressed, and checked. I've extended ImageView, implemented the Checkable interface, and created a selector drawable file with entries for the three states. But I'm confused about just how it all is supposed to work. I've got the default and p

Re: [android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread Dianne Hackborn
On Mon, Nov 15, 2010 at 8:37 AM, kk wrote: > private StringBuilder m_healthString = new StringBuilder(8); > I update by doing: > m_healthString.replace(0, 8, Integer.toString(myHealth)); > Is this expensive/wrong? Is there a better way to update a > StringBuilder with a new String? > You haven'

[android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Neilz
Yes please Kostya, and thanks for your input :-) On Nov 15, 5:50 pm, Kostya Vasilyev wrote: > Since this came up before, and generally *seems* useful, should I post > the entire recipe somewhere? (i.e. my blog)? > > 15.11.2010 20:32, Neilz пишет: > > > Maybe I can shuffle the order of your long l

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Pent
> I'd consider going android:layout_height="0px" on the WebView. I'm not > sure what wrap_content means in this context, particularly if the > content is long. Yes, that's the usual combo, and works here too. Most of my dialog layouts are the result of 30 rounds of 'maybe this wiill work' tweakin

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 12:50 PM, Kostya Vasilyev wrote: > Since this came up before, and generally *seems* useful, should I post the > entire recipe somewhere? (i.e. my blog)? Sounds cool by me! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commons

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Kostya Vasilyev
Since this came up before, and generally *seems* useful, should I post the entire recipe somewhere? (i.e. my blog)? 15.11.2010 20:32, Neilz пишет: Maybe I can shuffle the order of your long list ;-) Yes and yes, though probably not easily. You might consider Kostya's approach. Creating a Curs

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Kostya Vasilyev
Sure. This is my list view activity, including the adapter: http://pastebin.com/MrD03Uv9 This is the "plain" list item layout: http://pastebin.com/6fKWEkfc And this is the layout that starts a new group, with the header: http://pastebin.com/QMB12kWD The code in the list adapter probably cha

Re: [android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Mark Murphy
I'd consider going android:layout_height="0px" on the WebView. I'm not sure what wrap_content means in this context, particularly if the content is long. On Mon, Nov 15, 2010 at 12:15 PM, Pent wrote: > Here's a dialog I have with a webview top and a button row bottom. > > In general I've found di

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Neilz
Nico, the problem here is that I want the dialog to wrap (shrink) where the text isn't that big. I simply can't get hold of the size of the dialog once it's displayed, so I have no idea when to set what you show below. So the layout itself has to do the shrinking, but stay at a maximum height where

[android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Neilz
Maybe I can shuffle the order of your long list ;-) > Yes and yes, though probably not easily. You might consider Kostya's > approach. Creating a CursorHeadingAdapter or some such is on my > 18,000-item to-do list. -- You received this message because you are subscribed to the Google Groups "And

Re: [android-developers] New Line in SMS

2010-11-15 Thread Marcin Orlowski
> i'm trying to send 2 line of sms with this code > > String messageToSent = "Some line\nAnother line"; Blind guess - tried CR? -- 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@googleg

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 8:12 AM, Neilz wrote: > It seems to me that you must have your list content already separated > before adding them to the ListView. So, you add one Array, then you > add a different View, then you add another Array. That's what MergeAdapter does. As I hinted at earlier in

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Pent
Here's a dialog I have with a webview top and a button row bottom. In general I've found dialogs to be a total pain to layout. Pent http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="ver

Re: [android-developers] Modularity: advises to develop an applicatin "plugin" that could access application Sqlite, preferences, ...

2010-11-15 Thread Thierry Legras
Thanks TreKing. This seems a very good start. I will try that. Thierry. 2010/11/15 TreKing > On Mon, Nov 15, 2010 at 5:09 AM, Thierry Legras wrote: > >> - that separate plugin application should be able to access some tables in >> the main application DB. Is it possible to do that without bro

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Thierry Legras
Could you please share the way you grab the previous row from within setViewValue? :) 2010/11/15 Kostya Vasilyev > Ok, so I had a cursor-based ListView laying around, and decided to try and > practice what I preach :) > > Got it working in just a few minutes, actually. > > The second screenshot

  1   2   >