[android-developers] Re: Any way to get some equivalent to the adb log while the device is not plugged into computer?

2010-04-07 Thread fadden
On Apr 6, 10:20 pm, patbenatar patbena...@gmail.com wrote: Does Android keep an internal log that is similar or identical to the log you can view with adb logcat via a Terminal window? It's difficult when my app crashes while I test it out in the field... Any help would be great! I'm hoping

[android-developers] Re: Why I get the permission alert?

2010-04-07 Thread Kumar Bibek
As far as I know, these are only warnings. In the newer versions of the SDK, these permissions are required by default. Even if you don't mention it, while installing, implicit permisisions are added to your package. I don't think this should stop you from installing your apps. Thanks and

[android-developers] Re: Any way to get some equivalent to the adb log while the device is not plugged into computer?

2010-04-07 Thread Kumar Bibek
There are some apps which do this. SendLog is one of them. You can try and figure out how they do it. And this works on all the phones. Thanks and Regards. Kumar Bibek On Apr 7, 11:26 am, fadden fad...@android.com wrote: On Apr 6, 10:20 pm, patbenatar patbena...@gmail.com wrote: Does

[android-developers] Re: Going forever into /sys folder? Why?

2010-04-07 Thread fadden
On Apr 6, 4:21 pm, jfbaro jfba...@gmail.com wrote: If you use any file browser/manager and starting going into /sys/ devices/w1 bus master/subsystem/devices/w1 bus master/subsystem it will go inner forever, repeating that pattern [b]devices/w1 bus master/ subsystem/[/b] forever. So when I

[android-developers] Re: Announcing RoboGuice 1.0

2010-04-07 Thread ko5tik
On Apr 6, 9:06 pm, Michael Burton m...@niskala.org wrote: Hi ko5tik, Good idea, I agree that injection is not as simple as it should be for objects instantiated manually.  I've added your suggestion here:http://code.google.com/p/roboguice/issues/detail?id=34 When you say you're not

[android-developers] Re: HeapWorker is wedged problem

2010-04-07 Thread fadden
On Apr 3, 2:52 am, Mr. Kakakuva Bird ashish531...@gmail.com wrote: I am using edtftpj-pro3.1 trial copy in my android app to make SFTP connection with the server. After few connections with the server with 5-6 file transfers, my app is crashing with following exception HeapWorker is wedged.

[android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread fadden
On Apr 3, 1:05 am, ratson materem...@gmail.com wrote: is there an SDK way to find out the exact amount of memory consumed by a process identified by its pid? If you have a development device, adb shell procrank will give you a summary, and adb shell showmap pid will give you details. I don't

[android-developers] Re: Need Help for Storing the Values

2010-04-07 Thread patbenatar
For learning databases, the Notepad tutorial is a great one: http://developer.android.com/intl/fr/resources/tutorials/notepad/index.html .. There's probably also some code in the Samples section... Browse around the Resources tab on the Developer site. Here are the docs for the Application class:

[android-developers] Re: Getting Bitmap of all the Views in ViewFlipper?

2010-04-07 Thread javame_android
Hi, solved it by setting the visibility of all the views to visible. Regards Sunil -- 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,

[android-developers] Re: Unable to reject the incoming call

2010-04-07 Thread Abdul Qavi Paracha
Thank you so much for your prompt respnse. Ok.. then i also try to forward calls to voice mail Best regards, Abdul Qavi On Apr 6, 10:52 pm, Kumar Bibek coomar@gmail.com wrote: Ok, thats fine. I have never tried this app. But I suspect, it doesn't really block your calls. It simply forwards

[android-developers] JVM tool interface support? in android vm - I want to register get/set hooking callback function at my class

2010-04-07 Thread always19
I release a class. In the class, there are public fields that can be written. I want to register the callback function which will be called right after my field is accessed. I think I can do that by using JVM tool interface which is supposed to be used for a debugger software. JVM tool

[android-developers] Re: Complains of shrinking font sizes

2010-04-07 Thread Ivan
Thank you so much, you saved me a lot of time. I used millimeters all over my code previously, and suddenly it looks like you can't do that anymore in 2.1 On Apr 5, 5:20 pm, polyclefsoftware dja...@gmail.com wrote: Okay, you just need to make sure you define yourfontsizes in scale- independent

[android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread ratson
i have found cat /proc/pid/statm is a good way, but it is extensive to open shells for every process i want to examine. so is there no SDK way? On Apr 7, 8:42 am, fadden fad...@android.com wrote: On Apr 3, 1:05 am, ratson materem...@gmail.com wrote: is there an SDK way to find out the exact

[android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread ratson
i mean expensive... :) On ápr. 7, 09:15, ratson materem...@gmail.com wrote: i have found cat /proc/pid/statm is a good way, but it is extensive to open shells for every process i want to examine. so is there no SDK way? On Apr 7, 8:42 am, fadden fad...@android.com wrote: On Apr 3, 1:05 

[android-developers] Re: Flashing the android device

2010-04-07 Thread MobDev
HTC got a page for developers on which they also have some versions of the Android OS... On that same page a whole procedure is explained regarding the flashing of those Android OS versions... It might be helpfull in your case ? For example : http://developer.htc.com/google-io-device.html On 6

[android-developers] Re: PackageStats : how to get application size ?

2010-04-07 Thread Kumar Bibek
As Dianne had mentioned in that post, as of now, you cannot do it. No public API is available Thanks and Regards, Kumar Bibek On Apr 6, 2:30 pm, arnouf arnaud.far...@gmail.com wrote: Hi all, I'm trying to know the application size (only the code size). I found some topics related, but

[android-developers] Re: Getting the url of an http response

2010-04-07 Thread jw
Hi all, thanks for your time and sorry that I wasn't clear enough. I'm making a http post request to a web page which redirects me to different urls depending on the accuracy of my parameters sent in the request. This means that if I do it correct, I'll get redirected to for example

[android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread AJ
Hi ratson, thanks for sharing the command. When I run that command 7 numbers in a row. They did not have any column name. Can you please tell us what exactly number is for? Thanks, AJ On Apr 7, 10:21 am, ratson materem...@gmail.com wrote: i mean expensive... :) On ápr. 7, 09:15, ratson

Re: [android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread Rémiás Máté
2nd from right in kb On Wed, Apr 7, 2010 at 9:45 AM, AJ ajeet.invinci...@gmail.com wrote: Hi ratson, thanks for sharing the command. When I run that command 7 numbers in a row. They did not have any column name. Can you please tell us what exactly number is for? Thanks, AJ On Apr 7,

[android-developers] Re: Error: expected: START_TAG

2010-04-07 Thread Dieng
Philip De Smedt philip.desmedt at gmail.com writes: hello, I have just the same exact problem Please who could help me ? thank you in advence... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Url to app example on Document is not valid

2010-04-07 Thread Kumar Bibek
This URI is not an http one. Only the Android Market app can open this URL directly. The browser cannot. And also, you cannot open this URL using any Http requests. Http requests are only meant for http/https connections. Thanks and Regards, Kumar Bibek On Apr 4, 7:35 pm, Churky chu...@gmail.com

[android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread Farha Ansari
but i am getting location in method onLocationChanged() and this is where i want to check that if i dont get update say within 1 minute, thn is hould end handler. So, how can i do it here? Thanks On Apr 7, 9:32 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: One method you could use

[android-developers] Re: Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

2010-04-07 Thread patbenatar
Thanks Romain! Some great info in your articles on Optimization! A quick question: how does the DDMS Allocation Manager help me out if it doesn't tell me any stack traces in my package? It seems the whole trace is from Android and Java stuff... -Nick On Apr 6, 9:59 pm, Romain Guy

[android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread AJ
I actually want the information regarding foe each column when you issue this command like cat /proc/1976/statm 25930 4123 1825 1 0 2484 0 - AJ On Apr 7, 10:46 am, Rémiás Máté materem...@gmail.com wrote: 2nd from right in kb On Wed, Apr 7, 2010 at 9:45 AM, AJ ajeet.invinci...@gmail.com

Re: [android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread mike
On 04/07/2010 01:36 AM, Farha Ansari wrote: but i am getting location in method onLocationChanged() and this is where i want to check that if i dont get update say within 1 minute, thn is hould end handler. So, how can i do it here? Thanks There are lots of ways to generate timeouts. If

[android-developers] How to parse JSON in Java?

2010-04-07 Thread Maxood
I have the following JSON text that i need to parse to get pageName, pagePic, post_id, etc. What is the required code? pageInfo: { pageName: abc pagePic: http://profile.ak.fbcdn.net/object2/367/… } posts: [ { post_id: 160119538822_302076968822 actor_id: 1183856639 picOfPersonWhoPosted:

[android-developers] One view displays multiple canvas, back button doesn't work.

2010-04-07 Thread sblantipodi
Hi, I have a views on the main class and many other class with an onDraw() method to draw a canvas. Java: public boolean onKeyDown(int kc, KeyEvent event) { if (kc == KeyEvent.KEYCODE_BACK) { // Do something } // Ripitto invalidate(); return

Re: [android-developers] Re: Getting the url of an http response

2010-04-07 Thread mike
On 04/07/2010 12:40 AM, jw wrote: Hi all, thanks for your time and sorry that I wasn't clear enough. I'm making a http post request to a web page which redirects me to different urls depending on the accuracy of my parameters sent in the request. This means that if I do it correct, I'll get

Re: [android-developers] How to parse JSON in Java?

2010-04-07 Thread Agus
new JSONObject(YOUR_JSON_TEXT); On Wed, Apr 7, 2010 at 2:05 AM, Maxood maqs...@salsoft.net wrote: I have the following JSON text that i need to parse to get pageName, pagePic, post_id, etc. What is the required code? pageInfo: { pageName: abc pagePic:

Re: [android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread Rémiás Máté
I don't know... please post if you find it... On Apr 7, 2010 10:51 AM, AJ ajeet.invinci...@gmail.com wrote: I actually want the information regarding foe each column when you issue this command like cat /proc/1976/statm 25930 4123 1825 1 0 2484 0 - AJ On Apr 7, 10:46 am, Rémiás Máté

[android-developers] Re: Getting the url of an http response

2010-04-07 Thread jw
Hi, thanks for the idea, but it didn't help. response.getHeaders(Location)[0] gives me null. I've also tried to print all header keys and vaules, and none of them are Location. Any other ideas? /J On Apr 7, 11:12 am, mike enervat...@gmail.com wrote: On 04/07/2010 12:40 AM, jw wrote: Hi

Re: [android-developers] Re: Getting the url of an http response

2010-04-07 Thread mike
On 04/07/2010 02:30 AM, jw wrote: Hi, thanks for the idea, but it didn't help. response.getHeaders(Location)[0] gives me null. I've also tried to print all header keys and vaules, and none of them are Location. Are you sure you're actually getting a 3xx code back from the http response? A

[android-developers] Re: Google Analytics for Android: Dispatcher thinks it finished, but there were 65 failed events

2010-04-07 Thread Skeniver
Hey Stefan I was wondering if you have found a solution for this yet? I have tried tracker = null; from stack overflow, but that hasn't fixed the problem. Thanks in advance, Neil On 19 Mar, 12:27, Stefan Klumpp stefan.klu...@gmail.com wrote: There is also a discussion going on

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-07 Thread JDS
Called brightpoint in sweden and they have not any phones from google and does not even have any productnumber for the Nexus One in their system so Google is not using brightpoint when it comes to delivering the phones to us here in sweden. I sen't them a mail asking how they send them to us but

[android-developers] .apk and system.img

2010-04-07 Thread elham
Hi All! I know how to push a 3rd party app into system.img given the source code but is it possible to push a 3rd party app into system.img with only .apk file . If so please let me know the steps for doing it . Thank you, -- You received this message because you are subscribed to the Google

[android-developers] How to save both Image and Text with SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

2010-04-07 Thread David
Dear All, I want get both Image and Text from the sqLite database and show them on the ListView, at present, I can save the text with sqLite well, but failed to save the imges. Any sample code will be grateful. Best Regards, D.Y -- You received this message

[android-developers] Re: how to find out memory usage by pid?

2010-04-07 Thread AJ
yeah i got the info of each column • size total program size • resident resident set size • share shared pages • trs text (code) • drs data/stack • lrs library • dt dirty pages thanks, AJ On Apr 7, 12:25 pm, Rémiás Máté materem...@gmail.com wrote: I

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-07 Thread Arnon
I called Brightpoint Netherlands, which stated before here that sent phones to Germany for ADC. The guy was very nice, he asked me to send him a personal email and said he will check and reply. I will update here if any useful information comes up. On Apr 7, 1:08 pm, JDS

[android-developers] Re: How to save both Image and Text with SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

2010-04-07 Thread AJ
Hi David There in Bookmarks [Android Browser] same thing has been done. You can refer that. You can find the code as well. Thanks, AJ On Apr 7, 1:13 pm, David android.and...@gmail.com wrote: Dear All,          I want get both Image and Text from the sqLite database and show them on the

Re: [android-developers] Re: How to save both Image and Text with SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

2010-04-07 Thread David
Hi AJ, I just development the project with SDK 2.1, and I found the bookmark in android browser can match my requirement, but is there any source project can run on the emulator? The other question, if user click the item on the listview, the app will create a new Activity to

[android-developers] Re: Basic Chat Application

2010-04-07 Thread Eurig Jones
Have a look at XMPP, this is what you'd probably need to look into first. On Apr 6, 9:12 pm, aspekt9 aspe...@gmail.com wrote: I'm starting to get into networking on android and I was wondering what the requirements are to setup a simple messaging application. Do I need to host a central server

[android-developers] Re: Getting the url of an http response

2010-04-07 Thread jw
Well, I'm able to set the response url in the web service, but it's the parameters I'm interested in... For now I've just set the response URL to www.google.com and the web service adds my parameter which gives www.google.com/?x=1y=2... Since this page is not available, I get the 404 status code,

[android-developers] How can I test ACTION_POWER_CONNECTED event?

2010-04-07 Thread javame_android
Hi, I would like to do certain action on the Broadcast Receiver for ACTION_POWER_CONNECTED. Can someone let me know the way of testing this on emulator. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] How can I test ACTION_POWER_CONNECTED event?

2010-04-07 Thread Mark Murphy
I would like to do certain action on the Broadcast Receiver for ACTION_POWER_CONNECTED. Can someone let me know the way of testing this on emulator. http://developer.android.com/guide/developing/tools/emulator.html#limitations The emulator does not emulate determining battery charge level and

[android-developers] Re: How can I test ACTION_POWER_CONNECTED event?

2010-04-07 Thread javame_android
Hi, Thanks a lot for your quick response Mark. Well, this broadcast will let me know when the Power Adapter is attached to it. Correct me if I am wrong? Moreover, Can we start Bluetooth automatically? Thanks Regards Sunil On Apr 7, 4:13 pm, Mark Murphy mmur...@commonsware.com wrote: I

Re: [android-developers] Re: How can I test ACTION_POWER_CONNECTED event?

2010-04-07 Thread Mark Murphy
Well, this broadcast will let me know when the Power Adapter is attached to it. Correct me if I am wrong? It should be broadcast when the device is connected to external power. That could be an AC adapter or just USB power from a connected desktop or notebook. Moreover, Can we start Bluetooth

[android-developers] Re: BluetoothServerSocket: how to close correctly?

2010-04-07 Thread VovaN
Possible workaround: you can use accept with timeout as parameter. On Apr 5, 4:25 pm, Reason reason...@gmail.com wrote: I hv the same problem, can anyone help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How to add activity rotation animation in 2.1 when orientation changed

2010-04-07 Thread James Wang
Hi, I wonder whether developer can customize activity rotation animation in 2.1 when orientation changed. Can SDK do such thing? Best Regards James -- 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] Animations problem/suggestion needed

2010-04-07 Thread satish bhoyar
Hi all, I am having a little problem with animation. I need to perform two animation one after the other. this is for like one view is going another is coming in. but how i should start the other one . like after some times of the first one started i want to start the second. if the user does

[android-developers] Read Vcard

2010-04-07 Thread pramod.deore
Is it possible to read data from vard in android 1.6? If yes then how can it is possible please help me. Thanks in advance -- 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] EditText functionality

2010-04-07 Thread dan
Hello,I have a login view on an application with an EditText for entering a username. I can't seem to restrict the EditText to be a single line. I don't want the user to be able to press "return" on the soft keyboard and get a second line. I tried setting maxLines to 1, but that appears to control

[android-developers] Connect two emulator instances through the network

2010-04-07 Thread Yuri Morais
Hello developers, I'm doing a distributed system using Android for my research project. In order to test it, I have connected two emulator instances in the same host machine. However, I need to put these two instances in separate host machines and make them connect through the local network

Re: [android-developers] EditText functionality

2010-04-07 Thread Mark Murphy
I have a login view on an application with an EditText for entering a username. I can't seem to restrict the EditText to be a single line. I don't want the user to be able to press return on the soft keyboard and get a second line. I tried setting maxLines to 1, but that appears to control

Re: [android-developers] Animations problem/suggestion needed

2010-04-07 Thread Mark Murphy
Hi all, I am having a little problem with animation. I need to perform two animation one after the other. this is for like one view is going another is coming in. but how i should start the other one . Set up an AnimationListener on the first one, and start the second one in

Re: [android-developers] Read Vcard

2010-04-07 Thread Mark Murphy
Is it possible to read data from vard in android 1.6? Using some vCard parsing Java library, perhaps. This program works for me, so perhaps you can extract its vCard logic: http://code.google.com/p/vcardio/ -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] Re: Send email in background

2010-04-07 Thread RMD
Thanks for all the responses. I was just getting the phone to email me gps data about were my phone has been. It might be easier to have it go to a web server and just log in to look at it. I figured as much about the spam possibilities I suppose it was mostly, I wonder if I can..., knowing

[android-developers] urgent-not able to display remote images in gallery

2010-04-07 Thread anushree
i am storing the imagesurl in an arrayadapter. i want to display all the images that i get from the server in a gallery. i am pasting my code here can anyone tell me what i am doing wrong?? public class HelloAndroid extends Activity { /** Called when the activity is first created. */ ImageView

Re: [android-developers] EditText functionality

2010-04-07 Thread Nandan .
yaa you can do this using coding in java EditText1.setSingleLine(true); Regards** Bhavesh kumar ** On Wed, Apr 7, 2010 at 5:55 PM, Mark Murphy mmur...@commonsware.com wrote: I have a login view on an application with an EditText for entering a username. I can't seem to restrict the

[android-developers] Re: How to save both Image and Text with SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

2010-04-07 Thread AJ
Hi David, Sorry I don't have any such project/source. You can check the following link. It may help you. http://groups.google.com/group/android-developers/browse_thread/thread/0ecad32a314c/8f17cf4ea95964e0?lnk=raot Thanks, AJ On Apr 7, 1:54 pm, David android.and...@gmail.com wrote: Hi AJ,

[android-developers] Re: Selling apps from Canada in the Market?

2010-04-07 Thread Brill Pappin
Thanks. I may try and use it or rewrite it for branding. Actually, I bet if you branded it like the Android Market, google would notice :) They would ask you to take it down but at least you'd get their attention! - Brill On Apr 6, 11:59 am, Rob r...@hobbyistsoftware.com wrote: you can link to

[android-developers] Re: Selling apps from Canada in the Market?

2010-04-07 Thread Brill Pappin
Hi Scott! Yah, it has, Startup Weekend Toronto I think, but I see posts from you now and then :) I am *very* amazed at the fact that I can't sell anything in the Market. Based on how long this and other issues (link linking) are taking to resolve I'm starting to question Googles commitment to

[android-developers] Re: PackageStats : how to get application size ?

2010-04-07 Thread arnouf
Oki thanks for your confirmation. BR On Apr 7, 9:31 am, Kumar Bibek coomar@gmail.com wrote: As Dianne had mentioned in that post, as of now, you cannot do it. No public API is available Thanks and Regards, Kumar Bibek On Apr 6, 2:30 pm,arnoufarnaud.far...@gmail.com wrote: Hi

[android-developers] connecting to internet via app

2010-04-07 Thread Ashish Mahamuni
Hi Is there any way to start/enable the internet through Wifi/GPRS/EDGE/UMTS from my android application?? Thanks and Regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread Brill Pappin
I'm doing that by using a Timer as a watchdog. It wakes periodically and checks to see if we have a fix yet. If it doesn't over a specified period of time, it can set a flag or generate an event to let the rest of the app know. - Brill Pappin On Apr 6, 11:34 pm, Farha Ansari

[android-developers] Re: Eclipse setup - how can I run the Email app from the plattform source

2010-04-07 Thread Brill Pappin
If your rewriting the email app, I'd be willing to help... coming from the iPhone, I'm not all that impressed with it on the Android and would like a better alternative. - Brill On Apr 6, 9:17 pm, patbenatar patbena...@gmail.com wrote: I'm also running into issues of missing dependencies and

[android-developers] Re: urgent-not able to display remote images in gallery

2010-04-07 Thread AJ
Hi anushree, I have done something like before. But right now I am not able to find that code. If I am able to find it out i will paste the code. Thanks, AJ On Apr 7, 3:35 pm, anushree godbole.anush...@gmail.com wrote: i am storing the imagesurl in an arrayadapter. i want to display all the

[android-developers] Re: Unable to edit the SyncAdapter Contacts

2010-04-07 Thread piyu
Hi Jegadeesam M, No only photo and name details you can edit, For that you can create your own edit activity with same intent filter. On Apr 5, 9:03 pm, Jegadeesan M jeg...@gmail.com wrote: Hi All , Actually i tried the SampleSyncAdapter (Sample Sync Adapter examples), its working fine

[android-developers] Re: connecting to internet via app

2010-04-07 Thread theSmith
What do you mean enable? If you mean bypass the permission, then no. But if you application has the internet permission then you can connect several different ways. Either using the apache http library or I believe you can also use sockets (but I never have). Using the apache library I know it

[android-developers] AsyncTask : java.util.concurrent.RejectedExecutionException

2010-04-07 Thread arnouf
Hello, I'm trying to launch a lot of remote connection retrieve picture on a server. To do this, I use AsyncTask. This pics are displayed in a listview using adapter. If I implement this in my adapter, images are retrieved but the display is bad (problem with index or something like that). If I

[android-developers] Re: How to save both Image and Text with SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

2010-04-07 Thread theSmith
David, Why would you want to save the image in the sqLite database? I feel like you are using up an unnessary amount of valuable storage space on the device. Wouldn't a better solution be to save the image to the SD card and only save the location of the image to the database?

[android-developers] Listview append with new element on RUNTIME

2010-04-07 Thread Károly Holczhauser
Hi all ! Guys we need some help with the following task: My problem, I would like to append newer element to the list, but on runtime. So if the user click on the APPEND button, a new element should be arrive at the end of the list. Can anybody give some solution or some tutorial for it ?

[android-developers] Re: Selling apps from Canada in the Market?

2010-04-07 Thread gosh
I wouldn't hold your breathe there Brill. If you do a search in this group on thread titled 'Countries for selling priced applications in Android Market' you'll see that many others 'were' asking this question back in August 2009 (and elsewhere in this group). Google allowed nine countries to

Re: [android-developers] Re: ListView/Adapter IllegalStateException

2010-04-07 Thread Jerry Fan
I have a fix for this. Just set the visibility of ur ListView to Gone during update and back to visible after update. By doing so, u can avoid the inconsistency of ur adapter and listView item count. On Wed, Mar 31, 2010 at 4:35 PM, ionel ionelt2...@gmail.com wrote: I am calling

Re: [android-developers] IllegalStateException after ListView's adapter has changed

2010-04-07 Thread Jerry Fan
I have a fix for this. Just set the visibility of ur ListView to Gone during update and back to visible after update. By doing so, u can avoid the inconsistency of ur adapter and listView item count. On Mon, Feb 22, 2010 at 3:31 PM, Jayesh Salvi jayeshsa...@gmail.com wrote: Hi, This is

Re: [android-developers] AsyncTask : java.util.concurrent.RejectedExecutionException

2010-04-07 Thread Mark Murphy
What is this exception ? The second link in a Google search for RejectedExecutionException turns up: http://pveentjer.wordpress.com/2008/02/06/are-you-dealing-with-the-rejectedexecutionexception/ Your problem is probably the second on that list -- you have tried to start too many AsyncTasks.

Re: [android-developers] Listview append with new element on RUNTIME

2010-04-07 Thread Mark Murphy
Hi all ! Guys we need some help with the following task: My problem, I would like to append newer element to the list, but on runtime. So if the user click on the APPEND button, a new element should be arrive at the end of the list. Can anybody give some solution or some tutorial for it

[android-developers] Re: Multiple Activity History Management

2010-04-07 Thread mr.winky
Thanks Dianne, thats exactly what I was looking for. On Apr 6, 11:14 am, Dianne Hackborn hack...@android.com wrote: If you just want to these to live as separate tasks, use android:taskAffinity to set them to be different things; use for no task affinity, or for example :other or whatever

[android-developers] handling rotation...

2010-04-07 Thread sdphil
hi, i have a question regarding rotation. I am looking into using: android:configChanges=orientation|keyboardHidden in my manifest file for an activity in my application. that of course is accompanied with -- @Override public void onConfigurationChanged(Configuration newConfig) {

[android-developers] Re: StartActivity(ForResult) at the creation of Main activity

2010-04-07 Thread Will
Hey On 3 avr, 04:50, Lance Nanek lna...@gmail.com wrote: If you are using an older version of Android then it could be this bug, which has an easy workaround:http://groups.google.com/group/android-developers/browse_thread/threa... Thanks a lot, I'll try this asap ! -- Will -- You received

[android-developers] sdcard file permissions for system user

2010-04-07 Thread Niraj
When I insert SD card in my android device, /sdcard directory has permissions: d---rwxr-x with “system” as owner. d---rwxr-x system sdcard_rw 2008-08-23 13:17 sdcard Here, the owner is system and doesn't have any permissions. When I tried to write a file from android

Re: [android-developers] Re: Getting the url of an http response

2010-04-07 Thread mike
On 04/07/2010 03:56 AM, jw wrote: Well, I'm able to set the response url in the web service, but it's the parameters I'm interested in... For now I've just set the response URL to www.google.com and the web service adds my parameter which gives www.google.com/?x=1y=2... Since this page is not

[android-developers] sharing data between activities.

2010-04-07 Thread poohtbear
Hi. I was playing a bit with adapters cursors and activities. Let's assume i have a cursor containing a query I've made (it doesn't matter if it's to DB or content provider). Now lets assume i bind some of the data (first two rows) to a list activity. Every click on one of those items should open

[android-developers] Re: AsyncTask : java.util.concurrent.RejectedExecutionException

2010-04-07 Thread arnouf
Ok thanks Mark. When you have a lot of Image to load this is a big limitation. Strangely, we don't have this situation If I call the same number of element inside a listview...But another issue appears : images are not placed on good lines :( On Apr 7, 3:57 pm, Mark Murphy

Re: [android-developers] Re: AsyncTask : java.util.concurrent.RejectedExecutionException

2010-04-07 Thread Mark Murphy
When you have a lot of Image to load this is a big limitation. You can: -- Grab the source code to AsyncTask, clone it into your own package, and modify the LinkedBlockingQueue. I did this with my AsyncTaskEx class. -- Skip AsyncTask and roll your own thread pool. -- Mark Murphy (a Commons

Re: [android-developers] sharing data between activities.

2010-04-07 Thread Mark Murphy
Is there another sharing method that i don't know off Use a Service. Have the Service manage the querying. Have activities retrieve the Cursor from the Service using an API supplied via bindService(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] Re: Getting the url of an http response

2010-04-07 Thread jw
I'm sorry, I don't know how to put this in HTTP 1.1 terms since I'm not familiar to the full standard. I tried to explain as simple as possible. But I can buy that the response has no Location header if the status code is 404. Here's the flow: My app is sending a HttpPost with DefaultHttpClient.

Re: [android-developers] Re: Getting the url of an http response

2010-04-07 Thread Kevin Duffey
As Mike says, it seems something is missing from your description. From what you said in your response earlier, you are being redirected. However, because you are making the first request, the only way you could be redirected is if the response you got back was a 301 with a Location header filled

[android-developers] Re: Selling apps from Canada in the Market?

2010-04-07 Thread Brill Pappin
I suspect the issues is actually not that they don't want to allow it, I think that the issue is that they are trying to keep everything inside their own umbrella. What I mean is, Google has a payment processor business and they have the app business; they are trying to keep everything under one

[android-developers] Re: sharing data between activities.

2010-04-07 Thread poohtbear
Isn't that an overkill ? create a service to share a single cursor between 2 activities ? if it were a generic service that i used to share many cursor from many queries (lets say it's a query management service) and several activities will use it then i can understand the efficiency and code

Re: [android-developers] Re: Getting the url of an http response

2010-04-07 Thread Kevin Duffey
Just posted this right before I posted mine... Ok, so once again, you are in programmatic control here.. you make the first request, you get back a response BEFORE a redirect happens. You would be the one to make the second request to the redirected URL. When you say it redirects to a URL if

[android-developers] Re: Getting the url of an http response

2010-04-07 Thread jw
Kevin, see my previous reply Thanks On Apr 7, 4:47 pm, Kevin Duffey andjar...@gmail.com wrote: As Mike says, it seems something is missing from your description. From what you said in your response earlier, you are being redirected. However, because you are making the first request, the only

Re: [android-developers] Re: sharing data between activities.

2010-04-07 Thread Mark Murphy
Isn't that an overkill ? create a service to share a single cursor between 2 activities ? if it were a generic service that i used to share many cursor from many queries (lets say it's a query management service) and several activities will use it then i can understand the efficiency and

[android-developers] Re: Getting the url of an http response

2010-04-07 Thread mscwd01
I think your asking for the final URL you are redirected to... right? If so this should help nicely: http://www.example-code.com/java/http_redirect.asp I think you need to pay attention to this part: if (http.get_WasRedirected() == true) { System.out.println(This was a redirect

[android-developers] Re: sharing data between activities.

2010-04-07 Thread poohtbear
I agree with you, static members don't have to be a manace regarding GC, but they do carry the memory leaks danger if you don't treat them well, i close the cursor and null the instance in onDestroy and recreate it in onCreate. However in a big complicated program with a lot of code it's a

Re: [android-developers] Re: Eclipse setup - how can I run the Email app from the plattform source

2010-04-07 Thread Michael MacDonald
On 04/07/10 09:19, Brill Pappin wrote: If your rewriting the email app, I'd be willing to help... coming from the iPhone, I'm not all that impressed with it on the Android and would like a better alternative. - Brill On Apr 6, 9:17 pm, patbenatar patbena...@gmail.com wrote: The K9 mail

[android-developers] getting the SDK samples (a tale of woe and intrigue and two questions)

2010-04-07 Thread greg
Using Eclipse, I thoroughly messed up the creation of my SDK sample projects (e.g., ApiDemos) ... as I was paying too much attention to the Butler vs Duke game and not enough attention to the project creation options I was selecting. The result was 100+ levels of ApiDemos subdirectories that

[android-developers] Re: One view displays multiple canvas, back button doesn't work.

2010-04-07 Thread DulcetTone
You must call super.onKeyDown(int kc, KeyEvent event) when appropriate to derive the back behavior. tone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: AsyncTask : java.util.concurrent.RejectedExecutionException

2010-04-07 Thread arnouf
I'm not sure that it will resolve my first problem related to the image loaded from remote and display in my listview I can use Asynctask in my adapter to load each image. But when I do a bog scroll, displayed image are not to the good place (ex. : the image number 4 is displayed at the line 15

Re: [android-developers] Re: Multiple Listviews in single Activity?

2010-04-07 Thread ~ TreKing
On Tue, Apr 6, 2010 at 7:44 PM, DonFrench dcfre...@gmail.com wrote: And the truth is that even then the odds are that no one will answer you. I highly disagree. I recently posted a very simple and clear one-sentence question Which was what, out of curiosity? that I know a high

[android-developers] Re: handling rotation...

2010-04-07 Thread Bob Kerns
This doesn't save you from ANY of the complexities of the activity lifecycles. It only removes SOME of the reasons you'll transition through them. You should still code for the lifecycle. It makes your job harder, because not only to you get to debug your current problem -- you lose an easy way

  1   2   3   >