Re: [android-developers] Re: Market sales suddenly cut in half
I am also experiencing sales drop these two days especially today, On Tue, Apr 26, 2011 at 4:51 AM, Brill Pappin bpap...@sixgreen.com wrote: FYI - CANCELLED would include uninstalls AND failed orders. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Kill an app / package in API 8 (Froyo)
You can use getRunningTaskInfo compare against getRunningAppProcessInfo. If process of particular component is not in runnAppProcess list, then you know it is deleted. I used this trick to work around the new kill process behavior. On Thu, Jul 22, 2010 at 11:12 PM, Marcin_GUmeR marcin.bogdan...@gmail.comwrote: Is there any way to replicate old behavior of task killers in froyo? (i.e. kill everything associated with an app, including notifications etc. and make it never come back, unless manually restarted) It can be from command line using root. Thanks On Jun 16, 12:10 am, Happy C. taiwanhappin...@gmail.com wrote: Hi Dianne, Sorry to bother you. Does the Force stop in the setting of android 2.2 also use KillBackgroundProcess or use the system level API (developer can't use directly) to make it? I have tried the KillBackgroundProcess and adding the related permission, but it can't stop the running app either or running service like Force stop does. //ddms under Force stop 06-15 22:08:10.505: INFO/ActivityManager(62): Force stopping package com.MyTestApp/com uid=10037 06-15 22:08:10.505: INFO/Process(62): Sending signal. PID: 647 SIG: 9 //ddms under my KillBackgroundProcess 06-15 22:05:32.725: INFO/Process(62): Sending signal. PID: 638 SIG: 9 06-15 22:05:32.754: INFO/WindowManager(62): WIN DEATH: Window{43f4b2d8 com.MyTestApp/com.MyTestApp.act1 paused=false} 06-15 22:05:32.754: INFO/WindowManager(62): WIN DEATH: Window{43fbd930 com.MyTestApp/com.MyTestApp.act2 paused=false} Force stop and my KillBackgroundProcess seems to have sent the same signal 9. but they behave differently. I don't know why it doesn't work in my KillBackgroundProcess. Thanks very much! On 6月3日, 上午6時41分, Dianne Hackborn hack...@android.com wrote: On Wed, Jun 2, 2010 at 1:18 AM, Lee lee.wil...@googlemail.com wrote: killBackgroundProcessesworks (you need a permission for it), but it merely restarts the background services, so it's a little poorly named. Actually it does exactly what it says -- it kills a process. If an application has a service that it wants to keep running, the normal behavior of the system kicks in to restart the service for the app. As the documentation says, this allows the app to do the same thing is the out of memory killer (killing processes) without breaking applications by causing their services to be stopped when they don't expect (or unregister their alarms or the other things that fully stopping an app does). -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: horizontal scrolling in GridView control
but gallery does center lock automatically. Do you know a way make items shown from left to right and not moving to center upon selected? On Fri, Jul 16, 2010 at 6:32 PM, Namrata puranik.namr...@gmail.com wrote: I had the same issue, I am using gallery instead of grid for this. On Jul 16, 3:17 pm, CMF manf...@gmail.com wrote: i have the same question, anybody know the answer? On Jun 23, 3:39 am, dharmveer dharmv...@gmail.com wrote: Hi, Instead of the currently implemented verticalscrollingin theGridViewcontrol, I want to scroll horizontally. So, I want to be able to move left and right by swiping left/right so the contents scroll horizontally. I have tried setting the setNumColumns() but that did not help. Is there any other way that can help me scroll it horizontally. Thanks in advance. -Dharmveer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to store a drawable in database?
Hi folks, is there anyway that I can store drawables into database? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Socket in AsyncTask - application crashesso the UI won't be blocked
You can register a handler in your code and send message to update your UI component in Handler. I used this way to solve a similar problem like urs before. For exapmpel if (socket.isConnected()) { OutputStreamOut = new ObjectOutputStream(socket. getOutputStream()); InputStreamIn = new ObjectInputStream(socket.getInputStream()); // everything worked fine until here //instead of doing this, send msg to a customized handler //statusTxt.setText(App is now connected to:\n + IP + : mHandler.sendEmptyMessage(UPDATE TEXT); //use something like this + Port); // CRASHING connectBt.setText(Disconnect); connected = true; continueBt.setVisibility(0); } else { On Wed, Jul 21, 2010 at 12:25 AM, stephan dkn...@googlemail.com wrote: Yep. It seams quite obvious. Thoug we do not know what happens in statusTxt.setText() you are probably calling any UI object (changing a Dialog message or what so ever). That's not nice. *grin* maybe you should use runOnUiThread(new Runnable() { @Override public void run() { statusTxt.setText(App is now connected to:\n + IP + : + Port); } }); Stephan On 19 Jul., 20:16, Brion Emde brione2...@gmail.com wrote: It looks to me that you are trying to do stuff in the UI Thread while in the doInBackground() function. You are supposed to do UI related stuff in the onPostExecute(), onPreExecute() and onProgressUpdate(), not in doInBackground. This is what I'm talking about: if (socket.isConnected()) { OutputStreamOut = new ObjectOutputStream(socket.getOutputStream()); InputStreamIn = new ObjectInputStream(socket.getInputStream()); // everything worked fine until here This is talking to the UI Thread - not allowed!!! statusTxt.setText(App is now connected to:\n + IP + : + Port); // CRASHING connectBt.setText(Disconnect); connected = true; continueBt.setVisibility(0); } else { throw new UnknownHostException(); } On Jul 19, 11:47 am, Francesco francescoponti...@gmail.com wrote: Hi, when trying to start a socket connection in an AsyncTask, my application crashes for no reason (debugger says android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.). If I remove the Async and use the same code, my application works (of course, if I make the socket connect to a not valid IP or port, the application freezes for 5 seconds, because that's the socket's timeout). As I'd like to avoid that 5 seconds freeze with wrong configurations, I have to implement the AsyncTask. The application works just fine opening the socket and everything related, but as I try and make it change some TextViews, it gives this error. The AsyncTask doc says: AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. So I'm doing something legit. This is the code, it's quite simple: private class ConnectTask extends AsyncTaskVoid, Void, Void { protected Void doInBackground(Void... params) { try { InetAddress inetAddr = InetAddress.getByName(IP); int PORT = Integer.parseInt(Port); if (PORT 0) throw (new NumberFormatException()); if (IP.equals()) throw (new UnknownHostException()); SocketAddress sockaddr = new InetSocketAddress(inetAddr, PORT); socket = new Socket(); socket.connect(sockaddr, 5000); if (socket.isConnected()) { OutputStreamOut = new ObjectOutputStream(socket.getOutputStream()); InputStreamIn = new ObjectInputStream(socket.getInputStream()); // everything worked fine until here statusTxt.setText(App is now
Re: [android-developers] How to see database files of my phone?
You need to root it first and then use adb to connect to your phone. App dbs are normally sotred at /data/data/(name of the app)/databases/(name of the db).db Just use sqlite3 name of the db).db to view it On Wed, Jul 21, 2010 at 7:44 PM, Nency Robert avayam...@gmail.com wrote: HI, I want to see the database files of my phone is it possible? Nexus one Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] can not see app in Market
If u are using milestone and if u just upgraded APAC update, then it is normal. It takes time to view copy protected apps. On Sun, Jun 13, 2010 at 7:08 AM, Andrei gml...@gmail.com wrote: I have 3 android phones with different Os version. I can see all my apps, but one disappeared for more than a day and still can not see it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ListView/Adapter IllegalStateException
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 notifyDataSetChanged() in update method On Mar 30, 11:36 pm, social hub shubem...@gmail.com wrote: prob u need to call notifyDataSetChanged if data is changed. See if that helps On Tue, Mar 30, 2010 at 3:15 PM, ionel ionelt2...@gmail.com wrote: I've implemented a custom ListView and Adapter, and sometimes I receive IllegalStateException exception:” ERROR/AndroidRuntime(3575): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.” Here is some code example: public interface BuddyChangeListener { void onChange(ListBuddy buddys); } public class BuddyListView extends ListView implements BuddyChangeListener public void onChange(ListBuddy Buddy) { MyActivity.instance.handler.post(new Runnable() { public void run() { if (((BuddyAdapter) refreshListView.getAdapter()) ! = null) { ((BuddyAdapter) refreshListView.getAdapter()).update(Buddy); } } }); } public class BuddyAdapter extends BaseAdapter { private ListBuddy buddyList; public BuddyAdapter (Context context, ListBuddy buddyList) { this.buddyList= buddyList; } public void update(ListBuddy buddyList) { this.buddyList= buddyList; this.notifyDataSetChanged(); } } Every time when the content of the list need to be updated I run from onChange method and I use a handler to change the adapter content,to update the content from UI thread. Can someone to tell me if I have made something wrong on update ? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] IllegalStateException after ListView's adapter has changed
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 regarding the exception: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. - seen on Android 1.6+ This problem has been discussed in the past [1][2][3][4], and I have followed all the solutions suggested in those threads. However, few of my users still hit this crash. So I did some source code lookup and have some questions. Here is the description of what my app is doing: I use a ListView and populate it with an adapter. The adapter is a direct derivative of BaseAdapter. I populate the list progressively. As the items are downloaded from network they get added to the adapter. The fetching of items is done in doInBackground() and when they are ready to get added to the adapter I invoke publishProgress(), in the onProgressUpdate() method I add new items one-by-one to the adapter. As soon as I add the item to the adapter, I invoke notifyDataSetChanged(). I believe this is as per the best practices that Android developers have suggested in above mentioned threads. Despite this I get crash reports with this exception. They are rare, but not as rare as ignorable. I myself have hit this crash on my phone/emulator only 1-2 times in last couple of months. The user reported crashes are roughly 1 to 3 per day (approx. at least 600 users use the app per day) (A minority of users may be hitting this crash over and over again) . This leads me to believe that my adapter update logic is mostly right, but not full proof. So I dug into the source code of ListView and BaseAdapter. The exception is thrown because ListView's mItemCount doesn't match the underlying adapter's item count. It happens in layoutChildren() [ListView.java line 1432http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ListView.java;h=7c8151e65132a91aecadd2048fe205bd1c6768a9;hb=HEAD#l1431 ] } else if (mItemCount != mAdapter.getCount()) { throw new IllegalStateException(The content of the adapter has changed but + ListView did not receive a notification. Make sure the content of So in order to avoid this from happening mItemCount should be updated as soon as the adapter has changed its content. So I searched for locations in the code where mItemCount is updated. I found two locations doing that. In setAdapter() [ListView.java 431http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ListView.java;h=7c8151e65132a91aecadd2048fe205bd1c6768a9;hb=HEAD#l431] and in onMeasure() [ListView.java 1033http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ListView.java;h=7c8151e65132a91aecadd2048fe205bd1c6768a9;hb=HEAD#l1033]. Consequently, if I am updating the adapter then either setAdapter() or onMeasure() should be executed before the comparision in layoutChildren() takes place, otherwise the exception will be thrown. My question is, is it possible that my code in onProgressUpdate() that appends to adapter can get executed between onMeasure() and layoutChildren() of the ListView? AFAIU, all three of these methods (onProgressUpdate, onMeasure, layoutChildren) run on the same GUI thread. I call notifyDataSetChanged immediately after I add to adapter in onProgressUpdate(). I looked into its source code. It calls methods on DataSetObservable and DataSetObserver. I couldn't find how it could directly lead to the updating of mItemCount of the ListView, clearly I don't know much of the internal layout code. Please let me know what you think. I am trying to understand this mechanism as thoroughly as possible. Thanks in advance. Links: [1] http://www.mail-archive.com/android-developers@googlegroups.com/msg60355.html [2] http://www.mail-archive.com/android-developers@googlegroups.com/msg65814.html [3] http://groups.google.com/group/android-developers/browse_thread/thread/77722caa85f87697 [4] http://groups.google.com/group/android-developers/browse_thread/thread/a451221261cb6a93/2ab5bea015c38437?lnk=gstq=For+Google+about+BaseAdapter+class#2ab5bea015c38437 [5] ListView.java source code I refered to: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ListView.java;h=7c8151e65132a91aecadd2048fe205bd1c6768a9;hb=HEAD -- Jayesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
Is it one phone per developer account ? We have multiple apps qualified the standard published by 2 developers sharing the same account. On Wed, Mar 3, 2010 at 1:49 PM, polyclefsoftware dja...@gmail.com wrote: Yeah, like some others here it didn't even cross my mind that this was some sort of phishing scam. I signed up immediately. Maybe I would have been more paranoid if the registration form had asked for more sensitive information. Anyway, a clarification from one of the Google folks, please, because it's not necessarily clear from the TC...if a development firm has more than one qualifying app, are we eligible for more than one device? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is the picture format for Picture.WriteToStream?
i am actually trying to use Canvas and draw the Picture object returned from webView to it. From my understandingI the bitmap assigned during Canvas construction probably is used for combining all line drawing, text drawing, and Picture obj drawing onto it. So what I am doing is (1) Create a Canvas obj with a Bitmap object created by me with witdth and hight of the dimension of Picture onject. (2) Draw the picture object to the Canvas Object. (3) compress the Bitmap object to JPEG format and save it to local f/s. I might be wrong too. I will post the codes I wrote tomorrow to let you guys see. Thanks. On Thu, Jun 4, 2009 at 10:15 PM, Streets Of Boston flyingdutc...@gmail.comwrote: I'm not sure, but reading the documentation of Picture, it looks like that only the Picture class can read the data written by WriteToStream. It may as well be a totally proprietary format only known to the Picture class. But, i could be wrong... :) On Jun 4, 1:23 am, Jerry Fan jerryfan1...@gmail.com wrote: bump On Thu, Jun 4, 2009 at 10:09 AM, jerryfan2000 jerryfan1...@gmail.com wrote: Hi, What format of picture will I get by using Picture.WriteToStream?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to convert Picture object to Bitmap object?
Hi Sujay, Did you mean the bitmap assigned to Canvas construction is actually used for combing all kind of text, line, and picture drawing action into one piece of bitmap object? I'll try it and show you the code tomorrow. Thanks for your advice. On Thu, Jun 4, 2009 at 5:26 PM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: If u r talking in the context of storing a canvas to a bitmap, then i'd ask u to use the canvas constructor that takes a bitmap as arg... once ur drawing is complete, jus store this bitmap... that'll do... On Thu, Jun 4, 2009 at 2:47 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: try PictureDrawable class.. PictureDrawable pd=new PictureDrawable(String source); since this is a drwable, typecasting to Drawable, and getBitmap()... jus a suggestion... c if it works cheers! On Thu, Jun 4, 2009 at 12:45 PM, jerryfan2000 jerryfan1...@gmail.comwrote: Hi , I am trying to figure out how to do convertion of Picture object generated by webView to Bitmap for later JPEG encoding and saving to local f/s. I tried to create a bitmap from pre created Picture object by BitmapFactory.decodeStream and failed. Seems like Picture object is unreconginzed format by Bitmap factory. Just wondering is there any method to do the convertion? -- Regards, Sujay Mark Twain http://www.brainyquote.com/quotes/authors/m/mark_twain.html - There is no sadder sight than a young pessimist. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: what is the picture format for Picture.WriteToStream?
bump On Thu, Jun 4, 2009 at 10:09 AM, jerryfan2000 jerryfan1...@gmail.comwrote: Hi, What format of picture will I get by using Picture.WriteToStream? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: webView: How to click a web link and display in my WebView app
I got the answer by myself. If anyone is also interested to know how to do it, please go to below URL for a tutorial. http://developer.android.com/guide/tutorials/views/hello-webview.html On Thu, May 14, 2009 at 8:01 AM, jerryfan2000 jerryfan1...@gmail.comwrote: Hi, I am trying to add a webview in my app to display a web page. However, every time I click link on the web page, Browser will be launched to display content in that link. I understand it is something about intent but I am still wondering is there any simpler method to ask webview to display link content within its View ? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---