[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
Thanks Earlence, but... it's self explanatory if you are already clear about what it does! That is, if you actually don't need it For me, it is FAR FROM self explanatory, actually as thick as mud. I am skilled at apple iPhone SDK and find that quite self explanatory, but again, that's because I

[android-developers] Re: Failed to upload .apk on device

2010-09-12 Thread Tonny
I have just fixed this problem. You can turn off usb debug in Setting --- Apllication Development, then turn on usb debug. On Sep 3, 7:09 am, Phil wolf...@gmail.com wrote: I had this same error come up after successfully uploading to my android device many times. My solution was to use a

[android-developers] Re: Failed to upload .apk on device

2010-09-12 Thread Tonny
I have just fixed this problem. You can turn off usb debug in Setting --- Apllication Development, then turn on usb debug. On Sep 3, 7:09 am, Phil wolf...@gmail.com wrote: I had this same error come up after successfully uploading to my android device many times. My solution was to use a

Re: [android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Dianne Hackborn
An IME is essentially just a regular UI that is running as an InputMethodService, which makes calls on InputConnection to do whatever editing operations it wants. If you are stuck on changing the keyboard UI to some other kind of UI, that isn't really anything specific to writing an IME but just

Re: [android-developers] How to launch the app from the Web page?

2010-09-12 Thread Dianne Hackborn
Please don't use a scheme unless it is one that you have registered. Schemes are global to the universe, and since you will be putting this out in the universe via your web page you want to follow the rules for them. Another approach you can take is to just create an Intent that you want to have

[android-developers] Re: is there a way to implement screenshot functionality in android

2010-09-12 Thread Peter Webb
Actually, I want to get access to the screen as well. I have a market application called Steamy Windows which appears to do exactly this. So I am thinking it must be possible ... On Sep 11, 12:06 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 10, 2010 at 9:53 AM, dadada

[android-developers] Possible to display a string or button on top a listview?

2010-09-12 Thread Mystique
Hi, I can seems to get it write. What is wrong with my layout? ---code--- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/main android:layout_width=fill_parent android:layout_height=fill_parent TextView

Re: [android-developers] Re: is there a way to implement screenshot functionality in android

2010-09-12 Thread Romain Guy
This application is just a transparent activity. On Sat, Sep 11, 2010 at 11:39 PM, Peter Webb r.peter.w...@gmail.com wrote: Actually, I want to get access to the screen as well. I have a market application called Steamy Windows which appears to do exactly this. So I am thinking it must be

[android-developers] Re: Testing C2DM service on Android 2.2 emulator

2010-09-12 Thread julius
Hi, I have the same problem - not quite sure what I'm doing wrong. I'd like to use the emulator to be able to check the networking. Perhaps my c2dm account isn't really set up yet. Regards, Julius. On Sep 10, 9:08 pm, Hatch tomislav.hecimo...@gmail.com wrote: Been trying for ages (at least,

Re: [android-developers] Possible to display a string or button on top a listview?

2010-09-12 Thread Dianne Hackborn
You can't use wrap_content with a list view, because that will cause it to expand to whatever size its full contents are. If you want the list view to expand to fill all space except the text views above and below, use android:layout_height=0px and android:layout_weight=1 on it. On Sat, Sep 11,

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Hi Dianne, Thank you for confirming my expectations. I hope your colleagues will consider device enumeration as being important for limiting future fragmentation of a supposedly open platform and for encouraging new application areas, going well beyond nice. Regards On Sep 12, 12:40 am,

[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.

2010-09-12 Thread Binggrae
I think it' s not good to refer Launcher2's Android.mk see here http://source.android.com/porting/build_cookbook.html The following is a very simple example. You just need to change LocalPackage to Helloworld you want to create as APK's name. Building a simple APK

[android-developers] Re: How do I write Android.mk for an application using com.google.android.maps.jar

2010-09-12 Thread Binggrae
Yes, you're right. it's more related to android-platform. Anyway thank you for reply. Actually. as you mentioned, it's done already. but I'll check it again.. Thank you... On Sep 8, 4:55 pm, FrankG frankgru...@googlemail.com wrote: What is wrong? IMHO first of all the group, as this is more

Re: [android-developers] Re: Testing C2DM service on Android 2.2 emulator

2010-09-12 Thread Julius Spencer
Hi, Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found Oh maybe this can't be done in the emulator: To develop and debug on an actual device, you need a device running an Android 2.2 system image that includes the Market application. I don't

[android-developers] Re: Possible to display a string or button on top a listview?

2010-09-12 Thread Mystique
Hi, thanks for the advice. Not sure what is wrong, I try putting android:layout_height=0px and android:layout_weight=1 but it still doesn't appear. On Sep 12, 2:55 pm, Dianne Hackborn hack...@android.com wrote: You can't use wrap_content with a list view, because that will cause it to expand to

[android-developers] Call Blocking through ndk or latest sdk

2010-09-12 Thread rizwan
Hi , is it possible to block a call through ndk in Android 2.1 and later OS ,please refer to some materiel/code snippt to how to achieve that ? or still it is impossible to do ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: Testing C2DM service on Android 2.2 emulator

2010-09-12 Thread Julius Spencer
Uh disregard that I didn't see the next bit: To develop and test on the Android Emulator, you need to download the Android 2.2 version of the Google APIs Add-On into your SDK using the Android SDK and AVD Manager. Specifically, you need to download the component named Google APIs by Google Inc,

[android-developers] Getting platform files from command line

2010-09-12 Thread Dan Roberts
Hi Everyone, I apologize if I'm in the wrong place, and I apologize if you've already seen this message, but to the best of my knowledge this message never made it through (since I was a brand new user at the time) I can't figure out how to get the platform files for development, without

[android-developers] Re: HTTP Multipart POST: data + text

2010-09-12 Thread Tonny
Here code in server (example.php): ?php $target_path = uploads/; $target_path = $target_path . basename( $_FILES['myFile']['name']); if(move_uploaded_file($_FILES['myFile']['tmp_name'], $target_path)) { echo The file . basename( $_FILES['myFile']['name']). has been uploaded; } else{ echo

Re: [android-developers] Re: Possible to display a string or button on top a listview?

2010-09-12 Thread Dianne Hackborn
Try using hierarchyviewer to see what is going on with your layout. On Sun, Sep 12, 2010 at 12:30 AM, Mystique joven.ch...@gmail.com wrote: Hi, thanks for the advice. Not sure what is wrong, I try putting android:layout_height=0px and android:layout_weight=1 but it still doesn't appear. On

[android-developers] is there a way to retrieve the latest image taken using system camera?

2010-09-12 Thread dadada
hi all, so i have an intent that use the system camera. so after i taken the photo, it brings me back my application. I want to display the image (just taken) as a thumbnail. How do i retrieve that latest image from MediaStore.Images.Thumbnails. thanks! bryan -- You received this message

Re: [android-developers] java issues in mac and window

2010-09-12 Thread Frank Weiss
Which JDK version do you have installed on the Mac? Which JDK version is the tool that had issues using? -- 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

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Dianne Hackborn
Do you practice at being this way, or is it a talent? On Sat, Sep 11, 2010 at 11:59 PM, blindfold seeingwithso...@gmail.comwrote: Hi Dianne, Thank you for confirming my expectations. I hope your colleagues will consider device enumeration as being important for limiting future

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Please stay on topic. Device enumeration is a generalization of the ability to have and use more than one SD card. You have made it quite clear now that you have little interest in that or in adding device enumeration for other device classes. On Sep 12, 9:54 am, Dianne Hackborn

[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.

2010-09-12 Thread mani
Hi Binggare thanks for the reply...!! I changed the .mk file as below and kept my helloworld folder under / package/apps and compiled at / Still i couldnt see the .apk generated in ~/mydroid/out/target/product/generic/system/app. I couldnt see in the emulator list though...!! Why is it so

Re: [android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-12 Thread Federico Paolinelli
Another option could be periodically starting a service with an alarm, try to get the location and then shut down the location updates. In this way I would be pretty sure the radio is off when I don't need location updates. Right. Creating a variation on WakefulIntentService that supports

[android-developers] Asynctask and database lock

2010-09-12 Thread Kim D.
Hello guys, My problem is about asynctask and database lock. I have an asynctask which does a full restore (from an amazon s3 storage) of my database. In order to avoid any inconsistency I use a sqllite transaction. From the UI thread I display a loading message while launching this asynctask

Re: [android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 5:23 AM, Federico Paolinelli fedep...@gmail.com wrote: I think a classic service would be more suitable than an IntentService for this purpouse. Correct. The intent service, and therefore your wakeful one, does its job and then dies after the onHandleIntent is called.

Re: [android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-12 Thread Federico Paolinelli
On Sun, Sep 12, 2010 at 12:09 PM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 12, 2010 at 5:23 AM, Federico Paolinelli fedep...@gmail.com wrote: I think a classic service would be more suitable than an IntentService for this purpouse. Correct. The intent service, and therefore

Re: [android-developers] How to launch the app from the Web page?

2010-09-12 Thread Mark Murphy
On Sat, Sep 11, 2010 at 9:46 PM, ls02 agal...@audible.com wrote: I added to the manifest file for the activity to be launched: intent-filter action android:name=android.intent.action.VIEW/action category android:name=android.intent.category.DEFAULT/category category

Re: [android-developers] Getting platform files from command line

2010-09-12 Thread Mark Murphy
Try getting the files on a GUI-capable machine, then copying your SDK directory to your dev server. I think the latest rev of the dev tools added some sort of headless-update option, but I haven't gone looking for details. On Sun, Sep 12, 2010 at 3:44 AM, Dan Roberts ademan...@gmail.com wrote:

[android-developers] Re: Min SDK Bug ???

2010-09-12 Thread Lance Nanek
When you don't set minSdkVersion/targetSdkVersion, it is considered to be 1 by default. One thing that does is convince the system you don't support all screen types: http://developer.android.com/guide/topics/manifest/supports-screens-element.html So on a Nexus One the system will report a

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 2:59 AM, blindfold seeingwithso...@gmail.com wrote: I hope your colleagues will consider device enumeration as being important for limiting future fragmentation of a supposedly open platform and for encouraging new application areas, going well beyond nice. I imagine

[android-developers] Re: Getting platform files from command line

2010-09-12 Thread Chris Stratton
Google on sdk offline install or something like that - someone figured out the url of the xml file it grabs which contains paths of the downloads relative to itself. On Sep 12, 3:44 am, Dan Roberts ademan...@gmail.com wrote: Hi Everyone,     I apologize if I'm in the wrong place, and I

[android-developers] How to reduce padding between cells in TableLayout

2010-09-12 Thread William Ferguson
I have a 3*3 TableLayout that contains buttons. But I cannot seem to remove the spacing between the buttons in the Table. Setting pading to zero for the buttons has no effect. Setting padding and layout_margin to zero for the TableRow has no effect. Setting layout_margin for the TableLayout has

Re: [android-developers] Re: Ho to take a screenshot of the current activity and email it to a specific email id

2010-09-12 Thread lokesh gupta
Go to DDMA perspective, there you will find an icon to print only the screen,... Its near push-pull icon .. On Sun, Sep 12, 2010 at 5:34 AM, Traveler jadkins...@gmail.com wrote: If you are using Windows, this should work: The Print Screen key will copy the screen image to the windows

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Chris Stratton
In the case of features like dual sd cards, dual cameras, dual sims, etc which already exist on shipping smarthpones of other flavors, its a safe bet that they will show up on an android device sooner or later. The android architects can provide leadership on how to handle them - or they can

[android-developers] Re: How to launch the app from the Web page?

2010-09-12 Thread ls02
So, that's the link in the Web page to launch your app? On Sep 12, 6:14 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Sep 11, 2010 at 9:46 PM, ls02 agal...@audible.com wrote: I added to the manifest file for the activity to be launched: intent-filter action

[android-developers] Re: How to launch the app from the Web page?

2010-09-12 Thread ls02
I am not sure I understand. My app can be launched both by a Web page in embedded WebView and the same Web page in a separate Browser app. If I cannot use custom scheme, I a mfine using standard http or other scheme. Can you tell me please what the link is in the Web page that launches my app?

Re: [android-developers] Re: How to launch the app from the Web page?

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 8:49 AM, ls02 agal...@audible.com wrote: So, that's the link in the Web page to launch your app? No, that's a link to a GitHub project, demonstrating an application that responds to a few different link structures. The corresponding Web page -- referenced in the code --

Re: [android-developers] Re: limited distribution

2010-09-12 Thread Phill Wiggin
On Fri, Sep 3, 2010 at 10:49 AM, Lance Nanek lna...@gmail.com wrote: Maybe he comes from the iPhone world. There are some sort of limits there. 100 specifically provisioned device IDs, 50 promo codes after app acceptance, etc. - stuff like that, I think. I suppose technically we do have a

[android-developers] VideoView with cookie.

2010-09-12 Thread kenmaz
Hi. Can VideoView access to web server with cookie ? Our video server protect video data with cookie authentication. Video player app must authenticate and store session key to cookie strage before access to video server. First, My android video player app access to authentication server using

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Chris Stratton
Additionally, I think the galaxy's hardware design makes more sense if viewed not as having two sd cards, but rather as product designers trying to combine the best of both large fixed storage ala iphone or pre with user price point scalable removable storage ala other android devices, blackberry,

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Hi Mark, I appreciate your thoughtful comments. Some things are fairly trivial at API level, but hard at implementation level. Sometimes it is also at API level not immediately clear which choices are most elegant and future proof. I also realize that the Android team has been exceedingly busy

[android-developers] Re: VideoView with cookie.

2010-09-12 Thread Chris Stratton
You could look in the docs, or the source code. If the answer is no, how about generating a customized client-specific url upon authentication and sending the video player to that. This would then timeout after a few hours and be replaced with a short video error message. On Sep 12, 9:22 am,

[android-developers] Re: (EDITED by author) My app gets killed ... but I think I know why now

2010-09-12 Thread tony obrien
(Good Morning) Oh but you see, in fact, that's JUST WHAT THEY WANT... and is the whole purpose of the application ;) Its funny because as I've endeavored to bring my app to life; most of what I need to do flies in the face of 'proper' etiquette; as you have surmised. But it is just the ability

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 9:29 AM, blindfold seeingwithso...@gmail.com wrote: Therefore I felt that I am not just sketching some hypothetical situation that awaits concrete examples of devices that are being sold by the millions. Oh, in many of these cases, the hardware concept is certainly

Re: [android-developers] Re: VideoView with cookie.

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 9:30 AM, Chris Stratton cs07...@gmail.com wrote: You could look in the docs, or the source code. If you're using built-in streaming, I don't see where there's a spot to inject a cookie. If there were a VideoTrack analogue to AudioTrack, then you could stream it yourself,

[android-developers] Re: Unable to update my android app

2010-09-12 Thread Kumar Bibek
Are you sure that you are using the same keystore? I guess, thats the only problem and the solution. -Kumar Bibek http://techdroid.kbeanie.com On Sep 10, 6:31 pm, android.memore aumkiiwebsolut...@gmail.com wrote: Hi together, we are facing problems to update our android app. Error message is

[android-developers] Re: canvas woe

2010-09-12 Thread dadada
thanks for your reply. I changed this part to if (mValues != null) { matrix.reset(); matrix.setRotate(-mValues[0]); mPath.transform(matrix); } However, the transformation still goes infinitely. what should be the correct method ?

[android-developers] flashing element in ArrayAdapter

2010-09-12 Thread Simone
I have an ArrayAdapter in my activity, and when a certain event occur, I'd like to make a specific element flash, or have it highlighted in some way for a couple of seconds. Is there a way to do that? Thanks, Simone -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Kumar Bibek
Sure, But, you will have to implement your own adapter if you would like to do this. You can change the particular items background for sometime and restore it. Simple I guess. -Kumar Bibek http://techdroid.kbeanie.com On Sep 12, 8:19 pm, Simone simone.russ...@gmail.com wrote: I have an

[android-developers] Re: is there a way to retrieve the latest image taken using system camera?

2010-09-12 Thread Kumar Bibek
In the result, you would be receiving the Uri of the image taken. Now use the MediaStore content provider to retrieve the file path, and create the thumbnail using this file path. -Kumar Bibek http://techdroid.kbeanie.com On Sep 12, 12:52 pm, dadada ytbr...@gmail.com wrote: hi all, so i have

Re: [android-developers] Re: canvas woe

2010-09-12 Thread Kostya Vasilyev
Seems like you apply transformations to mPath over and over again, without resetting. Try moving the code that constructs mPath so it gets created from scratch every time through, as a temporary test. If this works, consider keeping the path constant, applying the transform at canvas level. --

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Eeks, better not the Apollo 13 bit, Mark. I tried the Houston, we have a problem persiflage once before, and it was certainly not appreciated. :-) By and large we agree, I think. I see the trade-offs that you mention. The one main opening that a constructive discussion could have created is that

[android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Simone
My class already extends ArrayAdapter. I was just wondering how can I retrieve a list of all the Views contained in the adapter, or if I had to keep track of them myself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Shomari Prince
True. What the Android team could have initiated long ago is to publish draft API proposals, such that you and I and anyone else here can take a stab at them (review them and suggest improvements) and thus help improve quality before the result gets incorporated in an official Android

[android-developers] Re: How to launch the app from the Web page?

2010-09-12 Thread ls02
Launching via intent by some reason does not work: I see in LogCat 09-12 12:28:00.908: INFO/ActivityManager(1100): Starting activity: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=intent:#Intent;action=com.my_company.my_application.ACTION_LAUNCH_APP;end (has

[android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Simone
Allright, I solved it. I made it so that the array adapter contains the list of the Views, and the getView() method simply returns list.get(position). I make the View flash by switching its visibility between VISIBLE and INVISIBLE for a second every 100ms, and it looks pretty decent. Thanks Simone

[android-developers] Monkey usage with Scripts/Network Control not working

2010-09-12 Thread Tez
Hi, I am trying to do 2 things with monkey 1. Execute a script with a command like adb shell monkey -p MY_PACKAGE --setup scriptfile -f /sdcard/ mon_script1.txt 1 where mon_script.txt contains a few touch commands. After I execute this, I see nothing happening on the screen. It even does not

Re: [android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 12:34 PM, Simone simone.russ...@gmail.com wrote: Allright, I solved it. I made it so that the array adapter contains the list of the Views, and the getView() method simply returns list.get(position). I make the View flash by switching its visibility between VISIBLE and

[android-developers] Re: AsyncTask and screen rotation

2010-09-12 Thread davemac
So we could use something as simple as the following? @Override public Object onRetainNonConfigurationInstance() { return myAsyncTask; } And in onCreate(): if( (myAsyncTask = (MyAsyncTask)getLastNonConfigurationInstance()) != null)

Re: [android-developers] Re: Samsung Galaxy S and Bluetooth Issues

2010-09-12 Thread dan raaka
let me know the build fingerprint of your device -Dan On Fri, Sep 10, 2010 at 4:21 AM, snedex sne...@gmail.com wrote: Hi Don, Thanks for responding, Sorry about the slow response. OK at least that gives me more information on trying to circumvent this issue, still having no joy with it.

[android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Simone
Well, the view isn't long (average 5 elements, maximum 20). What do you suggest? -- 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] Re: flashing element in ArrayAdapter

2010-09-12 Thread Simone
I meat the list of course, not view :D -- 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: mkdir() fails when min sdk version is 4

2010-09-12 Thread milind
There is no uses-permission-group tag.  Permissions are just for declaring permissions, for help in displaying them to the user. You are right. That was careless of me. I mistakenly used that tag after looking at http://developer.android.com/reference/android/Manifest.permission_group.html

Re: [android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 12:52 PM, Simone simone.russ...@gmail.com wrote: Well, the view isn't long (average 5 elements, maximum 20). What do you suggest? Other than rethink your approach, I don't have a suggestion off the top of my head. I'm just telling you that if your maximum goes from 20 to

Re: [android-developers] Re: AsyncTask and screen rotation

2010-09-12 Thread Mark Murphy
That should work, so long as MyAsyncTask is a static inner class or a regular standalone public class (not a non-static inner class). See: http://github.com/commonsguy/cw-android/tree/master/Rotation/RotationAsync/ On Sun, Sep 12, 2010 at 12:47 PM, davemac davemac...@gmail.com wrote: So we

[android-developers] Re: ADT plugin layout editor - additional device configurations?

2010-09-12 Thread Kumar Bibek
You can create your own configurations. Have a look here. http://techdroid.kbeanie.com/2010/09/getting-started-with-tablets-they-are.html -Kumar Bibek http://techdroid.kbeanie.com On Sep 11, 7:07 pm, PulseDev dev4pu...@gmail.com wrote: You know that layout editor in the Android ADT plugin that

[android-developers] Saving drawables to sd card?

2010-09-12 Thread arberb
My application has alot of pictures in it and I was wondering if its possible if one of my users click a button to send that picture to the sd card? If this is possible please let me know -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Monkey usage with Scripts/Network Control not working

2010-09-12 Thread Tez
An update: I was using an incorrect script file. The correct version is as described here http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cmds/monkey/src/com/android/commands/monkey/MonkeySourceScript.java;h=9b2328d23fdf297a6f9c2201b89876bb42971ad2;hb=HEAD I am trying to

[android-developers] Re: [android-porting] Re: Network Time is not auto updating with some service provider???

2010-09-12 Thread Rajesh Jounwal
I had tested on : LG Thunder : In which i saw the issue. With Reliance/ BSNL carrier. in india working fine with LG Swift GT540: Rajesh On Fri, Sep 10, 2010 at 10:47 PM, Robert Greenwalt rgreenw...@google.comwrote: When an OEM ports froyo to their device, the may change the code

[android-developers] Re: How to get value from ListView onListItemClick?

2010-09-12 Thread Mystique
Another question seeking help. When I click the listview item, I pop up a form as dialog format to enable user to edittext. All is fine, I have an option to cancel editing by calling removeDialog(ID1); But if the user click back (android key) instead of the cancel button and pick another item in

[android-developers] Re: How to get value from ListView onListItemClick?

2010-09-12 Thread Mystique
Also, my listview doesn't seems to update/refresh with new data until I refresh it manually. How do I refresh the new listview after updating? On Sep 13, 1:28 am, Mystique joven.ch...@gmail.com wrote: Another question seeking help. When I click the listview item, I pop up a form as dialog

[android-developers] BackupManager dataChanged() not static, need a reference to BackupManager?

2010-09-12 Thread Craigo
Hi, From: http://developer.android.com/guide/topics/data/backup.html To inform the BackupManager that the data has changed, you are supposed to call dataChanged(). However, that method is not static, so you need a reference to the BackupManager. How do you get a reference to the BackupManager?

[android-developers] Re: Monkey usage with Scripts/Network Control not working

2010-09-12 Thread Tez
count= number of events speed= in ms start data DispatchPointer(long downTime, long eventTime, int action, float x, float y, float pressure, float size, int metaState, float xPrecision, float yPrecision, int device, int edgeFlags) DispatchTrackball same as DispatchPointer

[android-developers] Re: AsyncTask and screen rotation

2010-09-12 Thread Eric Mill
Why wouldn't that work if it's a non-static inner class? Dave's solution is basically what I do, with the AsyncTask being a private (non-static) inner class of the Activity that uses it. Store it across screen flips, and then if it's present in onCreate, feed it the new context. -- Eric On Sep

Re: [android-developers] Re: AsyncTask and screen rotation

2010-09-12 Thread Mark Murphy
On Sun, Sep 12, 2010 at 2:26 PM, Eric Mill kproject...@gmail.com wrote: Why wouldn't that work if it's a non-static inner class? Dave's solution is basically what I do, with the AsyncTask being a private (non-static) inner class of the Activity that uses it.  Store it across screen flips, and

Re: [android-developers] Saving drawables to sd card?

2010-09-12 Thread { Devdroid }
On 12 September 2010 19:14, arberb beqi...@gmail.com wrote: My application has alot of pictures in it and I was wondering if its possible if one of my users click a button to send that picture to the sd card? If this is possible please let me know No, there's no magic button, beside moving the

[android-developers] Re: Behaviour of launchMode=“ singleTask” not as described?

2010-09-12 Thread joebowbeer
singleTask is one of four launch modes, but its appealing name and description belies the fact that it is not recommended for general use: http://developer.android.com/guide/topics/manifest/activity-element.html I suspect you can achieve your desired result using a general-purpose launch mode

Re: [android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread TreKing
On Sun, Sep 12, 2010 at 11:52 AM, Simone simone.russ...@gmail.com wrote: What do you suggest? Try thishttp://developer.android.com/reference/android/widget/AdapterView.html#getFirstVisiblePosition%28%29and

Re: [android-developers] Re: How to get value from ListView onListItemClick?

2010-09-12 Thread TreKing
2010/9/12 Mystique joven.ch...@gmail.com How to solve this issue? 1 - Add an onCancelListener to your dialog that calls removeDialog(ID1) on it so it gets removed regardless of how it's canceled. or 2 - Override onPrepareDialog to set the data in the dialog as necessary based on the item

[android-developers] any tool in android to find memory leak and code optimization

2010-09-12 Thread Sohan badaya
Hi All, I would like to know is there any tool in android to find memory leak and code optimization. Thanks, Sohan Badaya -- 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] Fil-rate workaround with FBOs?

2010-09-12 Thread Samsyn
My apologies if this is a stupid question... Might I get a net frame rate improvement if I did something like this: * create an FBO of resolution less than the full phone screen dimensions (user-selected quality vs speed option) * do most of my scene rendering into that FBO * then the 'real'

[android-developers] Re: any tool in android to find memory leak and code optimization

2010-09-12 Thread Samsyn
I believe DDMS has much of what you need. For code profiling, search for 'TraceView' * you will want to add some UI to your app to let you toggle tracing on and off, so you can capture samples while your code is doing the thing you're interested in improving. For memory leak checking, you need

[android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Simone
Ok, thanks. But I can say for sure that the list is not gonna be 2000 items long ;) Simone On 12 Set, 19:00, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 12, 2010 at 12:52 PM, Simone simone.russ...@gmail.com wrote: Well, the view isn't long (average 5 elements, maximum 20). What do

Re: [android-developers] Re: flashing element in ArrayAdapter

2010-09-12 Thread Kostya Vasilyev
Simone, ListView has methods for getting indices of first / last visible item. Since only a few can fit on the screen, doing a linear search to find the right list item is still pretty efficient. -- Kostya 13.09.2010 0:23, Simone пишет: Ok, thanks. But I can say for sure that the list is

[android-developers] Copying 1 drawable to SD

2010-09-12 Thread arberb
I wanna copy a drawable to the sd card. Lets say I have picture 1.jpg in my drawable folder and I want the app to copy it to the sd card when a certain button is pressed how can I do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] ADT plugin layout editor - additional device configurations?

2010-09-12 Thread Xavier Ducrohet
You can safely init x/y dpi to 120/160/240. That won't make a big difference. BTW, in r7 there are a few more devices in the built-in list. On Sat, Sep 11, 2010 at 7:07 AM, PulseDev dev4pu...@gmail.com wrote: You know that layout editor in the Android ADT plugin that lets you design the layout

Re: [android-developers] Re: ADT plugin layout editor - additional device configurations?

2010-09-12 Thread Xavier Ducrohet
Kumar, good info on there but your screenshot shows 1024 600 for the xdpi and ydpi. This is wrong. This the density of the screen, not the res. For instance for the Nexus one it's ~180 (which makes it a 160-class device). Xav On Sun, Sep 12, 2010 at 10:06 AM, Kumar Bibek coomar@gmail.com

[android-developers] changing an image in a layout

2010-09-12 Thread dashman
i've got this simple layout in a file derived from Activity ?xml version=1.0 encoding=utf-8? ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dip ImageView android:id=@+id/photo

Re: [android-developers] changing an image in a layout

2010-09-12 Thread Kostya Vasilyev
You don't need to override anything, but rather, whenever you want to change the image, do this: - Get a reference to your ImageView: ImageView photoImageView = (ImageView) findViewById(R.id.photo); - Tell it to use a new image: If it's a resource:

[android-developers] Every few hours Eclipse + ADT runs out of resources...

2010-09-12 Thread mmo
When I am developing for Android and repeatedly running and/or debugging an Android app in the emulator then about every two hours or so I get an Out-of-memory exception, occasionally also an out-of - resources- or out-of-GWT-handles exception. At that point one can only stop and restart eclipse.

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Indicator Veritatis
I really don't think he is the one missing the point. Your talk about supporting an arbitrary number of everything is a straw-man argument. Other than you, nobody proposed that in this thread. What has been observed with 20-20 hindsight though, is that the desirability of two SD cards should have

[android-developers] Re: AsyncTask and screen rotation

2010-09-12 Thread Indicator Veritatis
But just as you say, that is by -default- that it is on the same process and thread. Now does anyone actually use it with that same process being an Activity? Often (though not always), it is launched by an Alarm, not by the main process hosting the UI thread in the first place. Then it is the

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
Thank you for your pointers. I have this layout: ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget79 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/widget93

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
Thank you for your pointers. I have this layout: ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget79 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/widget93

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
Thank you for your pointers. I have this layout: ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget79 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/widget93

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread Dianne Hackborn
On Sun, Sep 12, 2010 at 9:20 AM, Shomari Prince nyuster...@gmail.comwrote: (e.g. froyo's anti-task manager functions recently sent me for a spin). Actually I mentioned a number of times on this group that this was going to be addressed, and it was largely driven by the increasing complaints

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
Thank you for your pointers. I have this layout: ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget79 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/widget93

  1   2   >