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

2010-11-16 Thread String
On Nov 16, 6:20 am, Vic kvic2...@gmail.com wrote: 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? Not in code, no, unless the device is rooted. If you just want a static screenshot, e.g. for

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

2010-11-16 Thread String
On Nov 16, 5:55 am, John Gaby jg...@gabysoft.com wrote: Yes he did, and I appreciated his help.  I had posted this message before his came through, so I was not asking again. Ah yes, I see now by the timestamps that they were pretty much at the same time. I apologize for my curt tone; from

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

2010-11-16 Thread String
On Nov 16, 6:14 am, Howard M. Harte hhar...@gmail.com wrote: 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. Dang, that did it. Thanks! Definitely the Market error message could be more

[android-developers] get name of list item

2010-11-16 Thread pramod.deore
I have a List and ContextMenu for that List. Now when I long pressed on list then onCreateContextMenu ( ...) method is invoked. Now I want to know on which list item I long pressed. I had tried but I got only got index. of that list item. How to get name of that list item? public void

[android-developers] Who is familiar with the Opengl es 2.0?

2010-11-16 Thread 袁堂夫
I want ask some questions about Opengl es 2.0? Who can help me ? -- 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: get name of list item

2010-11-16 Thread pramod.deore
Ok I got it. its - Object obj = getListAdapter().getItem((int) id); System.out.println (+obj.toString()); Thanks On Nov 16, 1:16 pm, pramod.deore deore.pramo...@gmail.com wrote: I have a List and ContextMenu for that List. Now when I long pressed on list then

[android-developers] Re: Android tablet

2010-11-16 Thread Nithin
Main difference is in screen size. Tablet has a large screen size so, modify your UI, in such a way that , to fully utilize the existing screen size (600*1024 for Samsung). Then camera, gps etc are not there in tablet... Nithin On Nov 16, 10:43 am, Kumar Bibek coomar@gmail.com wrote:

[android-developers] sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread Rahul Garg
Hi guys, I am facing problem with my database while inserting values that it is showing that it has no column named totalpurchase. While I clearly declared it in my table and the other columns are not showing this problem. can you suggest what is wrong with this. -- Rahul -- You received this

[android-developers] Re: Android tablet

2010-11-16 Thread Saurabh
There is a emulator image available for Samsung Galaxy tab. http://innovator.samsungmobile.com/galaxyTab.do Try to run your application on it. Also use the higher resolution images (hdpi) rather than the lower ones BR, Saurabh On Nov 16, 4:33 pm, Nithin nithin.war...@gmail.com wrote: Main

Re: [android-developers] sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread Kumar Bibek
You probably have to uninstall and re-install the app if you added the column later. On Tue, Nov 16, 2010 at 2:08 PM, Rahul Garg rahul.lnm...@gmail.com wrote: Hi guys, I am facing problem with my database while inserting values that it is showing that it has no column named totalpurchase.

Re: [android-developers] Send SMS from Widget

2010-11-16 Thread Marcin Orlowski
On 16 November 2010 07:58, Rohith Nandakumar rohith.nandaku...@gmail.com wrote: Hi. I want to send a preset SMS message when I click on my widget. How do I do it? http://tinyurl.com/2f8fnqk -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Connect to MSN messenger in android

2010-11-16 Thread Marcin Orlowski
On 12 November 2010 04:58, Nagaraj Shet nagarajvinayaks...@gmail.com wrote: 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. http://tinyurl.com/24o48hz --

[android-developers] Re: Local Service vs Remote Service

2010-11-16 Thread Lance Nanek
Yeah, in my personal apps I call the previously registered default uncaught exception handler from my own. That's why users still get the force close option. Doing a network call beforehand in the same process doesn't work well. If you wait you can get situations where there's an ANR as well as

[android-developers] Re: Accessing style items by style ID

2010-11-16 Thread Vitaliy Tarasenko
I found a solution. defStyle parameter is not needed for it. All I need exists in attrs parameter. TypedArray attrsArray = context.obtainStyledAttributes(attrs, R.styleable.MyComponent); bg = attrsArray.getResourceId(R.styleable.MyComponent_attribute, defaultId); On 15 ноя, 22:38, Vitaliy

[android-developers] Re: Mutating of nine-patch images

2010-11-16 Thread Евгений Григорьев
I found interesting thing here: http://developer.android.com/guide/topics/graphics/2d-graphics.html There is a sample of button image, used like nine-patch drawable. And in a sample of using this picture you can see that it is not only stretched, but angles are mutating in some strange way. Also

[android-developers] Re: Slow execution getThumbnail in HTC hero

2010-11-16 Thread viktor
You can try caching thumbs in RAM. Don't update your view every time if you are using List or something else scrolled. I had the same situation as your. When I start investigation, I sow that thumbs never create on a SDCARD (.thumbnails folder). Every time an app make new thumd and it is so

[android-developers] android edittext

2010-11-16 Thread yanamala siddaiah
hai u sent one result thats not working pls send again good code android:ellipsize not working for edittext . how to truncate text in edittext ,if length is too. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Rapidly load data on Re-launch of an Activity

2010-11-16 Thread paresh mayani
thanx Kostya for the support and sorry for late reply, Actually, data is going to be changed frequently, and i am also confused that whether i should implement Database or File ?? pls show me a way to my problem as i have stated above (data is going to be changed frequently). On Nov 12, 8:27 pm,

[android-developers] Re: Rapidly load data on Re-launch of an Activity

2010-11-16 Thread paresh mayani
Thanx for the support and sorry for the late reply, Actually, data is going to be changed frequently, so i am also confused that what should i implement actually i.e. whether File or Database ?? On Nov 12, 8:05 pm, Kumar Bibek coomar@gmail.com wrote: Of course, save your results to a local

[android-developers] Q: How to do an expand animation?

2010-11-16 Thread Mariano Kamp
Hi, please consider the following. I have two containers and in between them I want to expand/grow a third container that should show some temporary information. The undo message in the Gmail app is an example for that. It expands between the status bar and the body of the list, thereby pushing

[android-developers] how to merge column of a table

2010-11-16 Thread pramod.deore
Hi, I have a table which has four columns as say (RoomId, RoomName, SwitchID, SwitchName.) Now I want to merge last three columns depending upon first column(i.e RoomID) means supppose in a table I have following data 1:BedRoom:1:AC 1:BedRoom:2:CFL 1:BedRoom:3:Tube 2:Guest Room:4:cooler 2:Guest

[android-developers] Problems with uploading files to webservice

2010-11-16 Thread Serdel
Hello, I have a rest webservice that takes a POST metod with multipart message: @Path(transferFile) @POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_XML) public String multipartTest(com.sun.jersey.multipart.MultiPart data) { try { // get first body part (index 0)

[android-developers] Re: Send SMS from Widget

2010-11-16 Thread Rohith Nandakumar
Thankyou, but that wasn't very nice. I want to the send the sms from a homescreen widget. On Nov 16, 2:00 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 16 November 2010 07:58, Rohith Nandakumar rohith.nandaku...@gmail.com wrote: Hi. I want to send a preset SMS message when I click

Re: [android-developers] Re: Send SMS from Widget

2010-11-16 Thread Mark Murphy
On Tue, Nov 16, 2010 at 6:27 AM, Rohith Nandakumar rohith.nandaku...@gmail.com wrote: Thankyou, but that wasn't very nice. I want to the send the sms from a homescreen widget. Have your AppWidgetProvider use SmsManager to send the SMS. Or, have your AppWidgetProvider use an ACTION_SENDTO Intent

[android-developers] android security

2010-11-16 Thread daniela
Dear all, I would like to add some additional static checking of apps probably within the Dalvik verifier. Alternatively, I may add checks to other security related parts of the Android platform. I have been struggling to find detailed documentation for the architecture and implementation of the

[android-developers] Data Connection Retries

2010-11-16 Thread Hemant
Hi, I have a scenario where I need to control how many retries are allowed per hour for data connection establishment in case of failure? How can this be achieved? There is something like nextReconnectDelay in GsmDataConnectionTracker.java, but can't figure out how to reconfigure this so as to

Re: [android-developers] Data Connection Retries

2010-11-16 Thread Daniel Drozdzewski
On Tue, Nov 16, 2010 at 12:05 PM, Hemant hemant.ramd...@gmail.com wrote: Hi, I have a scenario where I need to control how many retries are allowed per hour for data connection establishment in case of failure? How can this be achieved? There is something like nextReconnectDelay in

Re: [android-developers] android security

2010-11-16 Thread Daniel Drozdzewski
On Tue, Nov 16, 2010 at 11:44 AM, daniela daniela.anton...@gmail.com wrote: Dear all, I would like to add some additional static checking of apps probably within the Dalvik verifier. Alternatively, I may add checks to other security related parts of the Android platform. I have been

[android-developers] How to read the current frame buffer

2010-11-16 Thread Vic
Is there a method to read the frame buffer of the current screen? I searched some data about the frame buffer. Some one used the glReadPixels method, but the information was not enough. Does anyone know how to read the current frame buffer in detail? -- You received this message because you are

[android-developers] Re: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread DanH
Not true. One simply needs to implement the database update stuff. On Nov 16, 2:47 am, Kumar Bibek coomar@gmail.com wrote: You probably have to uninstall and re-install the app if you added the column later. On Tue, Nov 16, 2010 at 2:08 PM, Rahul Garg rahul.lnm...@gmail.com wrote: Hi

Re: [android-developers] Re: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread Kumar Bibek
Update stuff might not be the right solution while developing. On Tue, Nov 16, 2010 at 6:07 PM, DanH danhi...@ieee.org wrote: Not true. One simply needs to implement the database update stuff. On Nov 16, 2:47 am, Kumar Bibek coomar@gmail.com wrote: You probably have to uninstall and

[android-developers] Re: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread DanH
First thing to do is to VERY CAREFULLY read the code that you use to create the DB and to reference the column. Very likely the problem is a typo in one of the names or in the definition statements. Check carefully the spelling of everything. And it never hurts to do as Kumar suggests and

[android-developers] Need help for Google map API

2010-11-16 Thread sagar borse
*I need help to start map API for Android..??? I mean what shoud i do to work with MAP??? thr r 2 kind of maps 1) GPS map 2) Google Maps via map API I think 2nd option is better as GPS is really slow in India and i guess costly too. I read some things bout map API but it need registration

Re: [android-developers] Need help for Google map API

2010-11-16 Thread Kumar Bibek
Read the docs. All the info is given there. If you are stuck somewhere, let us know and we will be glad to help you out. On Tue, Nov 16, 2010 at 6:30 PM, sagar borse sagarborse.bo...@gmail.comwrote: *I need help to start map API for Android..??? I mean what shoud i do to work with MAP???

[android-developers] Problem with UI Thread which hangs up

2010-11-16 Thread umakantpatil
Hi all, I have to draw list of 30 articles. I tired using list view but there was some problem as I wanted to user alternate colors like first is white and 2nd is blue where as again 3rd is white and 4th is blue and it goes on.. So I decided to have scrollview and table into it. I set the view

[android-developers] Can an Update.zip be installed through ADB Shell?

2010-11-16 Thread ashwani
Hi All, Can an Update.zip be installed through ADB Shell? Regards Ashwani -- 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

Re: [android-developers] Problem with UI Thread which hangs up

2010-11-16 Thread Kumar Bibek
Alternate colors: Listview can handle that. Couldn't understand much from what you have explained, but I am sure, there's something wrong you are doing. Please be a bit more elaborate on what exactly are you doing and what is not working. What's an article by the way. On Tue, Nov 16, 2010 at

[android-developers] Bar Application wheel

2010-11-16 Thread pedr0
Hi! I would like add a rotating wheel which indicates that my application do somethings in the application bar (where its name appears ). Someone knows how should I do? Thanks a lot. pedr0. -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Bar Application wheel

2010-11-16 Thread Kumar Bibek
http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate%28boolean%29 You can use this. On Tue, Nov 16, 2010 at 8:26 PM, pedr0 pulsarpie...@gmail.com wrote: Hi! I would like add a rotating wheel which indicates that my application do somethings in the

Re: [android-developers] Bar Application wheel

2010-11-16 Thread Mark Murphy
Call requestWindowFeature(Window.FEATURE_PROGRESS); in onCreate(). Then call setProgressBarIndeterminate(true). When you are done, call setProgressBarIndeterminateVisibility(false); I have only used the determinate mode (where it's a bar, not a circle), so I may be slightly off in these

[android-developers] Re: android security

2010-11-16 Thread daniela
Dear Daniel, Thanks for your response! I have yet to figure out what exactly to add, which mainly depends on what is reasonable for a 2-month project. As for the second question, I didn't think an app would be useful, so I will try to change the platform code in some way. Do you think you could

[android-developers] Re: Bar Application wheel

2010-11-16 Thread pedr0
I tried and I have not error but I see nothing difference ! I have to add something in the manifest? On Nov 16, 4:00 pm, Kumar Bibek coomar@gmail.com wrote: http://developer.android.com/reference/android/app/Activity.html#setP... You can use this. On Tue, Nov 16, 2010 at 8:26 PM,

[android-developers] Re: Bar Application wheel

2010-11-16 Thread pedr0
I think this code is okay, You agree? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_PROGRESS); setProgressBarIndeterminate(true); On Nov 16, 4:19 pm, pedr0 pulsarpie...@gmail.com wrote: I tried and I have not error

Re: [android-developers] Bar Application wheel

2010-11-16 Thread Kostya Vasilyev
For the progress *wheel*, it's: requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); // setContentView here setProgressBarIndeterminateVisibility(true / false); -- Kostya 16.11.2010 18:02, Mark Murphy пишет: Call requestWindowFeature(Window.FEATURE_PROGRESS); in onCreate(). Then

[android-developers] HTTPClient post delay

2010-11-16 Thread SImplyG2010
Good morning everyone, I am having a hugely annoying issue with delays using HTTPClient and post the first time I call execute on the client the response takes 5 seconds to come back. Subsequent calls take around 100 to 200 ms. I am using the Apache client so does anyone know why this takes so

Re: [android-developers] HTTPClient post delay

2010-11-16 Thread Kostya Vasilyev
Just to take a guess: DNS ? What happens if you use the IP address in the url, rather than server name? -- Kostya 16.11.2010 18:31, SImplyG2010 пишет: Good morning everyone, I am having a hugely annoying issue with delays using HTTPClient and post the first time I call execute on the client

[android-developers] Re: Bar Application wheel

2010-11-16 Thread pedr0
I cannot see the wheel, my activity is a tab activity, can this make wrong something? Tanks a lot! On Nov 16, 4:28 pm, Kostya Vasilyev kmans...@gmail.com wrote: For the progress *wheel*, it's: requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); // setContentView here

Re: [android-developers] Re: android security

2010-11-16 Thread Daniel Drozdzewski
On Tue, Nov 16, 2010 at 3:08 PM, daniela daniela.anton...@gmail.com wrote: Dear Daniel, Thanks for your response! I have yet to figure out what exactly to add, which mainly depends on what is reasonable for a 2-month project. As for the second question, I didn't think an app would be useful,

[android-developers] Re: Bar Application wheel

2010-11-16 Thread pedr0
I found the problem, see: http://stackoverflow.com/questions/1138809/android-showing-indeterminate-progress-bar-in-tabhost-activity On Nov 16, 4:41 pm, pedr0 pulsarpie...@gmail.com wrote: I cannot see the wheel, my activity is a tab activity, can this make wrong something? Tanks a lot! On

[android-developers] Re: HTTPClient post delay

2010-11-16 Thread SImplyG2010
Hey Kostya It's the same result with IP address also I should point out it is way faster on an N1 running 2.2 than it is on an emulator or physical device (hero) running 2.1. On Nov 16, 10:33 am, Kostya Vasilyev kmans...@gmail.com wrote: Just to take a guess: DNS ? What happens if you use the

Re: [android-developers] HTTPClient post delay

2010-11-16 Thread Daniel Drozdzewski
On Tue, Nov 16, 2010 at 3:31 PM, SImplyG2010 thomas.sheppar...@gmail.com wrote: Good morning everyone, I am having a hugely annoying issue with delays using HTTPClient and post the first time I call execute on the client the response takes 5 seconds to come back. Subsequent calls take around

[android-developers] Re: HTTPClient post delay

2010-11-16 Thread SImplyG2010
Daniel what do you use instead? The weird thing is that the timings shown above are purely for the execute call not the creation of the client object or anything. On Nov 16, 11:09 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, Nov 16, 2010 at 3:31 PM, SImplyG2010

[android-developers] Re: Problem with UI Thread which hangs up

2010-11-16 Thread Streets Of Boston
This is not about the hanging/freezing of your UI, but not using a listview for your articles may pose another problem. If you have a lot of articles to show, the number of children (i.e. TableRows) may become too large and you'll get UI problems (UI too 'wide'). ListView get around this problem

Re: [android-developers] Re: Problem with UI Thread which hangs up

2010-11-16 Thread Kostya Vasilyev
Umakant, I suggest you take another go at making ListView work. It's just better for memory usage and the initial time to bring up the UI. You have two options: - In the getView method of the adapter, set the background color from code, based on the index of the list item (odd - white, even

Re: [android-developers] Re: HTTPClient post delay

2010-11-16 Thread Daniel Drozdzewski
On Tue, Nov 16, 2010 at 4:22 PM, SImplyG2010 thomas.sheppar...@gmail.com wrote: Daniel what do you use instead? The weird thing is that the timings shown above are purely for the execute call not the creation of the client object or anything. Thomas, What I meant was that I have not been

[android-developers] implementing an android framework

2010-11-16 Thread ping
Hello, I have 2 apps which should both contain some similar activities Now I decided to write a new app, some kind of framework, which contains these activities, to avoid to write the code twice. How can I use these activities in my other 2 apps ? Whats the common approach for doing this?

[android-developers] Using onCreateDrawableState

2010-11-16 Thread Bret Foreman
Leaving aside the lamentable wording of the documentation for this method, it's not really acting as I hoped for an ImageView. I call toggle() from the onClick method of the view but the view system does not redraw my drawable with the checked state. However, if I initialize CHECKED_STATE_SET

Re: [android-developers] implementing an android framework

2010-11-16 Thread Daniel Drozdzewski
On Tue, Nov 16, 2010 at 5:21 PM, ping bernd.warm...@gmail.com wrote: Hello, I have 2 apps which should both contain some similar activities Now I decided to write a new app, some kind of framework, which contains these activities, to avoid to write the code twice. How can I use these

[android-developers] Re: Problem with UI Thread which hangs up

2010-11-16 Thread umakantpatil
Thanks Kostya.. Point one I can do. But if you see my image i.e. feeds are sort based on dates under the date row. thats what I find difficult. Can you give me a short code sample for a getview method which solves my problem? On Nov 16, 10:07 pm, Kostya Vasilyev kmans...@gmail.com wrote:

Re: [android-developers] Re: Problem with UI Thread which hangs up

2010-11-16 Thread Kostya Vasilyev
If you need your data to be ordered - sort it. For in-memory sort, before adding data to ListView, take a look at Collections.sort (it's part of Java). http://download.oracle.com/javase/tutorial/collections/interfaces/order.html If get data for your ListView from a database, use a SELECT

[android-developers] Re: How to make a trial version which starts a limited amount of times?

2010-11-16 Thread Nathan
I asked and the LVL was not intended for time limited trials. It was intended for how many change you give it to verify a license not for giving users the chance to evaluate an app. Here's the biggest problem: how are you going to distribute this app with these custom constraints? If it is

Re: [android-developers] Re: Mutating of nine-patch images

2010-11-16 Thread Dianne Hackborn
Are you saying there is not the lines from the original images? That is correct, this is a nine-patch image (with extension .9.png), so the borders are interpreted as the nine-patch data and stripped from the rendered image. 2010/11/16 Евгений Григорьев grigoriev.evgen...@gmail.com I found

Re: [android-developers] Re: android security

2010-11-16 Thread Dianne Hackborn
If you are making modifications to the platform, you'll want to go to one of the appropriate groups like android-porting or android-platform. On Tue, Nov 16, 2010 at 7:08 AM, daniela daniela.anton...@gmail.com wrote: Dear Daniel, Thanks for your response! I have yet to figure out what exactly

Re: [android-developers] Transfer Preferences from demo to paid app

2010-11-16 Thread TreKing
On Tue, Nov 16, 2010 at 11:50 AM, Nathan critter...@crittermap.com wrote: I'm sure that some of you are old hands at this and can give some advice. I have an export option in the free version that writes data to the SD card, then read back in the full version (and deleted once it's absorbed).

[android-developers] Re: How to make a trial version which starts a limited amount of times?

2010-11-16 Thread MobileVisuals
I want to make a trial which can be started a limited number of times, it should not be time limited. But LVL is not intended for this type of trial version either? Using the LVL would also impose a requirement of network connectivity on the users whenever they want to run the apps,so I assume

[android-developers] Re: How to make a trial version which starts a limited amount of times?

2010-11-16 Thread Bret Foreman
From a marketing perspective, the Android Market is really primitive. Most of the required features are such no-brainers that I can only conclude that there are some technical issues that make them hard to implement. I'm guessing the people who architected the Market were not marketeers and built

[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread Nathan
On Nov 16, 10:41 am, TreKing treking...@gmail.com wrote: On Tue, Nov 16, 2010 at 11:50 AM, Nathan critter...@crittermap.com wrote: I'm sure that some of you are old hands at this and can give some advice. I have an export option in the free version that writes data to the SD card, then read

[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread Bret Foreman
Tre, The preferences transfer that you implemented is such an obvious need that it should be part of the framework. Can you generate a feature request along those lines? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread Nathan
I believe this is how I would use the INFO category. Correct? activity android:name=.LicenseActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category

[android-developers] Buggy sample code for an interview

2010-11-16 Thread ClarkBattle
I think too many interviews are of the write new code variety and not enough of the analyze this code variety. I would like to ask a candidate to analyze some android code. I am looking for a good example with some bugs or potential optimizations in it that can be improved. Does anyone have

[android-developers] Re: implementing an android framework

2010-11-16 Thread ping
Thank you, That is exactly what I was looking for :) greets On Nov 16, 6:30 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, Nov 16, 2010 at 5:21 PM, ping bernd.warm...@gmail.com wrote: Hello, I have 2 apps which should both contain some similar activities Now I

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

2010-11-16 Thread Kostya Vasilyev
Another Motorola phone with ANDROD_ID issues? Since Google has LVL, where using ANDROID_ID is recommended to identify the device, shouldn't this be added to the compliance suite? -- Kostya 16.11.2010 3:27, John Gaby пишет: Thanks, I will give those a try. On Nov 15, 4:24 pm, Mark

Re: [android-developers] Buggy sample code for an interview

2010-11-16 Thread Kostya Vasilyev
Ok, a few off top of my head: A ListView, an adapter for it, and getView that doesn't recycle views. Or one that recycles, and only sets values if a new layout is loaded. Code that makes network calls on the UI thread. Code that treats Thread as a Runnable, without calling thread.start() A

Re: [android-developers] Re: Send SMS from Widget

2010-11-16 Thread Marcin Orlowski
On 16 November 2010 12:27, Rohith Nandakumar rohith.nandaku...@gmail.com wrote: Thankyou, but that wasn't very nice. I want to the send the sms from a homescreen widget. Aside from LMGTFY not working fully correct I got a feeling you didn't try what I suggested, right? I wonder why you expect

Re: [android-developers] Can an Update.zip be installed through ADB Shell?

2010-11-16 Thread Marcin Orlowski
On 16 November 2010 14:43, ashwani ash1...@gmail.com wrote: Can  an Update.zip be installed through ADB Shell? Update.zip shall (if you refer to *that* update.zip) exist on sdcard not main memory so adb won't be helpful here. For real device plug the usb cable and change the connection type to

Re: [android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread TreKing
On Tue, Nov 16, 2010 at 12:54 PM, Nathan critter...@crittermap.com wrote: Since I may still move to a FULL version model, did your export of preferences end up being custom code, extracting one preference at a time to a proprietary format, or are there Preference apis that helped? Custom

Re: [android-developers] Can an Update.zip be installed through ADB Shell?

2010-11-16 Thread Kostya Vasilyev
You can use adb to reboot the device into recovery mode, so that update.zip installation is possible (by the user). I believe the command is adb shell reboot recovery. -- Kostya 16.11.2010 22:54, Marcin Orlowski пишет: On 16 November 2010 14:43, ashwaniash1...@gmail.com wrote: Can an

[android-developers] Re: HTTPClient post delay

2010-11-16 Thread SImplyG2010
I had a look using wireshark it seems in between execute being called and the post being sent over the network is 1 second so it seems the delay is in the execute call. Anyone know why this might be? On Nov 16, 12:17 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, Nov 16,

[android-developers] Can I get a web link to my newly published app

2010-11-16 Thread John Gaby
I have just published my application and would to be able to provide a link on my website that will show my application? Also, if they browse to my website on their phone, is there some kind of link I can add that the user can click on that will take them to the market to download my app?

[android-developers] How to reduce heap size to get space for BitmapFactory.decodeFile()

2010-11-16 Thread manayv
I learned from several discussions of this group that BitmapFactory.decodeFile() allocates heap memory outside of the java heap. My app receives encrypted files from a remote server. Decoding those files needs a lot of heap space. After finishing this decoding step most of the allocated heap space

Re: [android-developers] Can I get a web link to my newly published app

2010-11-16 Thread TreKing
On Tue, Nov 16, 2010 at 2:30 PM, John Gaby jg...@gabysoft.com wrote: I have just published my application and would to be able to provide a link on my website that will show my application? Show your application where? Also, if they browse to my website on their phone, is there some kind

[android-developers] Re: Can I get a web link to my newly published app

2010-11-16 Thread John Gaby
Well, for the iPhone, you can have a link that takes you to a web page which shows the same information you see when you look up your app in iTunes or on the phone itself (i.e. the description, screen shots, price, ratings, etc). I take it, by your response, that there is no such equivalent for

Re: [android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread Mark Murphy
On Tue, Nov 16, 2010 at 3:09 PM, TreKing treking...@gmail.com wrote: Custom code, but it's fairly trivial - settings are (currently) stored as an XML file, so I just copy that over to the SD card then read it back in. It's /data/data/packageName/shared_prefs/packageName_preferences.xml, FYI. I

Re: [android-developers] MOVING BACKGROUND IMAGE FOR ANDROID GAME

2010-11-16 Thread TreKing
On Thu, Nov 11, 2010 at 10:12 PM, elioncho elion...@gmail.com wrote: Is there a way to make the background- image repeat endlessly or should I load the image twice and move them one behind the other one. Can anyone guide me on this one? Well, since no one else is responding ... I haven't

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

2010-11-16 Thread TreKing
On Thu, Nov 11, 2010 at 8:45 PM, Daniel Quach dan.a.qu...@gmail.com wrote: I cannot figure out why. Neither can we without more information. Like a stack trace perhaps? - TreKing

Re: [android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread TreKing
On Tue, Nov 16, 2010 at 3:01 PM, Mark Murphy mmur...@commonsware.comwrote: Bear in mind that Android could conceivably change the data store for preferences sometime. Yup - actually I think I've seen Dianne mention that his might change. That's why I said currently :-) But it's so trivial to

[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread Nathan
On Nov 16, 12:09 pm, TreKing treking...@gmail.com wrote: On Tue, Nov 16, 2010 at 1:00 PM, Nathan critter...@crittermap.com wrote: I believe this is how I would use the INFO category. Correct? Sure? =P Haven't actually done that myself, but looks about right. Really? Then I just released

Re: [android-developers] Re: Can I get a web link to my newly published app

2010-11-16 Thread TreKing
On Tue, Nov 16, 2010 at 3:01 PM, John Gaby jg...@gabysoft.com wrote: Well, for the iPhone, you can have a link that takes you to a web page which shows the same information you see when you look up your app in iTunes or on the phone itself (i.e. the description, screen shots, price, ratings,

Re: [android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread TreKing
On Tue, Nov 16, 2010 at 3:20 PM, Nathan critter...@crittermap.com wrote: Since I can't buy my own paid app, I can't test that intent to see if it really comes up from the Market. If you install the release version of your app on your phone, the Android Market should mark it as installed and

[android-developers] Re: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread MarcoAndroid
The only way to be sure that the table and its colums are as you think they should be is to connect to the sqlite database on your emulator/ device and check the schema that's there. So: adb -s emulator_device_id shell sqlite3 /data/data/your_package/databases/app_name.db .schema tablename On

[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread Nathan
On Nov 16, 1:22 pm, TreKing treking...@gmail.com wrote: On Tue, Nov 16, 2010 at 3:20 PM, Nathan critter...@crittermap.com wrote: Since I can't buy my own paid app, I can't test that intent to see if it really comes up from the Market. If you install the release version of your app on your

[android-developers] Re: Can I get a web link to my newly published app

2010-11-16 Thread Nathan
The link to your listing will return 404 on anything besides an Android. Yes really. To get a link that will work, you might have to use Android Zoom or another Market scraper. For entertainment, try an Adwords ad that links to your listing and watch it not get approved because the url doesn't

Re: [android-developers] Using onCreateDrawableState

2010-11-16 Thread Dianne Hackborn
Yeah this code is... wrong. I don't know what checkedItemIndex is, but you aren't supposed to look up a particular index to find an int... the array is a set of ints. And you can't retrieve the array and modify it; nobody else will know that you modified it (if you even modify it correctly at

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

2010-11-16 Thread Neilz
Hi Kostya. At first glance, your solution does not look that much different by the one suggested by Thierry above. Essentially, there's an alteration to the list row view where a header is present - or in your case a different list row view. The problem with Thierry's solution (for me) was that

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

2010-11-16 Thread kk
Hi all, Got rid of all the Integer.toString allocations by having my own intToString method and using char[] as suggested. The only thing showing now on the DDMS allocs are the Drawable.setBounds calls (lots of them). I've used both the rect version and the four-ints version of setBounds but they

[android-developers] Re: How to read the current frame buffer

2010-11-16 Thread Per
Not sure what you mean by frame buffer, but maybe View.getDrawingCache() would work for you? http://developer.android.com/reference/android/view/View.html#getDrawingCache I have successfully used it to implement in-app screendumps. BR Per On 16 Nov., 13:32, Vic kvic2...@gmail.com wrote: Is

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

2010-11-16 Thread Streets Of Boston
Add these methods to your list-view's adapter: @Override public boolean areAllItemsEnabled() { return false; } @Override public boolean isEnabled(int position) { return !itemIsHeader(position); } where you implement the itemIsHeader based on the position in the adapter. If the item on the

[android-developers] Re: How to read the current frame buffer

2010-11-16 Thread Streets Of Boston
Did you search for 'glReadPixels' on this forum? This thread may help you: http://groups.google.com/group/android-developers/browse_frm/thread/386ba8c695f6d008/ae46da5156ed3901?lnk=gstq=glReadPixels# On Nov 16, 7:32 am, Vic kvic2...@gmail.com wrote: Is there a method to read the frame buffer

[android-developers] Re: Transfer Preferences from demo to paid app

2010-11-16 Thread String
On Nov 16, 9:22 pm, TreKing treking...@gmail.com wrote: If you install the release version of your app on your phone, the Android Market should mark it as installed and you should be able to verify the change. If it asks you to buy the app, try clearing the Market data / cache and try again.

[android-developers] Tracking revenue on the Android Market

2010-11-16 Thread kostmo
Hey All, I'd like to share an application that I recently open-sourced. It has two main functions: *Plot revenue across apps over time *Notify the developer of low-rated Market comments I had it listed as a paid application for a while, but with only a few sales, I decided I'd rather have as

  1   2   3   >