[android-developers] Re: Code for capturing the screenshot of live wallpaper
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 your Market listing, use DDMS. If you want something dynamic in your app at runtime... I'd think your best bet is to create an Activity which uses the system wallpaper as a background, and show that to the user as a screenshot. String -- 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: Cannot get ANDROID_ID on 1.6 systems
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 here it looked like you were ignoring the help he'd already offered. Sorry! :^) String -- 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: The server could not process your apk. Try again.
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 helpful... Without a doubt. For the benefit of anyone reading this in the future, I tried again with a NON-EMPTY uses-configuration element, and it still failed. I didn't test exhaustively, but in the end, I only got the update to take by removing uses-configuration entirely. String -- 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] get name of list item
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 onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) { try { info = (AdapterView.AdapterContextMenuInfo) menuInfo; } catch (ClassCastException e) { e.printStackTrace(); } long id = getListAdapter().getItemId(info.position); System.out.println (^^^+id);// here id is the index of list item and I want name of this list item. } -- 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] Who is familiar with the Opengl es 2.0?
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: get name of list item
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 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 onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) { try { info = (AdapterView.AdapterContextMenuInfo) menuInfo; } catch (ClassCastException e) { e.printStackTrace(); } long id = getListAdapter().getItemId(info.position); System.out.println (^^^+id);// here id is the index of list item and I want name of this list item. } -- 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: Android tablet
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: Project structure is the same, AVD is the same, yes, you can. There's is no difference in these two as far as the SDK is concerned. It doesn't provide phone/tablet specific APIs to the developers. All the of APIs would work the same way as expected. On Fri, Nov 12, 2010 at 1:31 PM, Ravi Shankar Kumar ravircc...@gmail.comwrote: Hi, Can anyone suggest me that is there any difference between android phone android tablet in application development. I want to develop an application for android tablet. so plz tell me that what should know me regarding general info to develop application for android tablet. can i use same AVD with appropriate resolution for it? can i use same project structure of android phone to android tablet? please help me. Regards Ravi Shankar Kumar -- 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 -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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] sqlite returned: error code = 1, msg = table customer has no column named totalpurchase
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 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: Android tablet
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 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: Project structure is the same, AVD is the same, yes, you can. There's is no difference in these two as far as the SDK is concerned. It doesn't provide phone/tablet specific APIs to the developers. All the of APIs would work the same way as expected. On Fri, Nov 12, 2010 at 1:31 PM, Ravi Shankar Kumar ravircc...@gmail.comwrote: Hi, Can anyone suggest me that is there any difference between android phone android tablet in application development. I want to develop an application for android tablet. so plz tell me that what should know me regarding general info to develop application for android tablet. can i use same AVD with appropriate resolution for it? can i use same project structure of android phone to android tablet? please help me. Regards Ravi Shankar Kumar -- 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 -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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] sqlite returned: error code = 1, msg = table customer has no column named totalpurchase
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. 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 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Send SMS from Widget
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. 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] Connect to MSN messenger in android
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 -- 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: Local Service vs Remote Service
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 the pending force close and all sorts of bizarre stuff. If you do it in a different thread and don't wait, then the force close kills your thread before you send the majority of the time. I've tried both. There are a couple rare cases where I don't pass the exception on to the default handling. I hash the stack trace, compare it to a white list of known harmless exceptions, and don't pass the exception on if it matches one of them. This is only good with a very small subset of exceptions, however. I think I have like an exception or two from Quattro and Millennial Media ad Networks in there, for example. I hate using buggy ad networks, but they pay way more per click than AdMob. Most exceptions you can easily wrap in your own code anyway. These were getting thrown from threads I don't even start, I think. At a company where I work they exit the process and restart, but that adds all sorts of other complications, like restoring state on your own and making sure you don't get stuck in an endless loop if the app dies immediately again. If you are restarting over and over, then obviously it is time to use the original handler, but that's annoying to detect. use Thread.setDefaultUncaughtExceptionHandler() to eliminate the force-close dialog and deal with the unexpected exception myself, such as logging it to a server. This does not require a remote process. I definitely don't recommend trying to keep using the process for anything user facing after an unhandled exception in general. I've tried that and it just doesn't work reliably. Think about it, how is an activity or UI going to run if the exception killed the loop in the main UI thread that processes messages or something like that? Only ever eat the exception if it is something you've reproduced on your own machines and checked that the process isn't hosed. Most of the exceptions I get reported aren't something I can reproduce, unfortunately. I test on all the devices I can get my hands on and lots of emulator images. We're not talking about common exceptions here. If the user hits the report button, the crash information will be available through market feedback. The official Android reporting sucks. It is only on the latest versions and requires Market. It requires a double opt-in button press each time, so users hardly every do it, and yes I have numbers to prove that. It would have been much better to have an opt-out of sending stack traces when a user activates or upgrades to a new Android version that supports it, or when they install an app, and then an opt-in every time for sending additional, potentially more private information. Stack traces would still get sent if the user is lazy and hits force close and doesn't care either way. Something like that. What good is having all that information when hardly any users actually send it? It's fine if they don't send for privacy reasons, but they are not sending because the process is badly implemented and a pain in the ass for the user. Er... fix the force close in your app...? :p There are unfixable ones in the Android platform, unfortunately. One particular one thrown by ViewGroup.offsetRectBetweenParentAndChild can't even be wrapped by my code. See this thread: http://groups.google.com/group/android-developers/msg/d378a3dc1b467b44 There are also ones in libraries I use or used, like Millennial Media and Quattro advertising as mentioned above. I suppose I could decompile their libraries, fix their bugs, and recompile. Reporting the bugs to them was about as useful as reporting Android bugs on b.android.com, which we aren't even allowed to do for anything but the latest Android versions nowadays anyway, which shows how completely out of touch that process is with the bugs developers have to work around every day. There are also lots of issues that might not be worth fixing as well. All phones, but Droids especially, can get corrupt databases on upgrade even though my DB code matches the official tutorials, for example. Spending time to account for that might help so few users, however, that it would be better for me to write a feature that would help much more users instead. Too bad the platform is so unreliable that even stuff based on the official samples sucks when put out in production and gives your users force closes. On Nov 11, 4:14 am, Kostya Vasilyev kmans...@gmail.com wrote: The default Android force close dialog is displayed by the default uncaught exception handler. If you replace the uncaught exception handler, make sure to call the previous uncaught exception handler from yours, presumably after writing / sending the exception information. So you can have the best of
[android-developers] Re: Accessing style items by style ID
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 Tarasenko vitta...@gmail.com wrote: Hello. I have a problem. Any View have a constructor public View (Context context, AttributeSet attrs, int defStyle) which called when View declared with a style attribute So, if I have some class inherited from View class, I can access to declared attributes (like android:layout_width or android:background) via AttributeSet attrs in a constructor. But when I move attributes to style I cannot see attributes and values exists in a style - I want to read items declared in style but I have only styleID in defStyle parameter. Is there some way to read style Items using styleID? -- 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: Mutating of nine-patch images
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 there is not one-pixel black line around button on stretched image. Does anyone no how to forbid this changing? On 15 ноя, 19:57, Евгений Григорьев grigoriev.evgen...@gmail.com wrote: I mark only 2 center pixels as stretchable area. The problem is not stretching, but small changes in color of line and little mutations of corners. I thought it can be resolved by putting original picture to raw resource folder, but in this case it is not stretched correctly. On 15 ÎÏÑ, 15:00, Kumar Bibek coomar@gmail.com wrote: You should stretch the areas that are uniform. That is, do not stretch the corners. That should fix this problem 2010/11/15 å×ÇÅÎÉÊ çÒÉÇÏÒØÅ× grigoriev.evgen...@gmail.com Hi all. I have a problem with using nine patch images. I have an original picture: http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg... Than i use nine-patch tool from sdk to set 2-pixel stretchable area in the center of horizontal line. Then i set this image like background of linear layout. And as a result i get such image: http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg... So my image not only stretches, but also changes in some strange way. Even corner areas, that should be the same changes. Has anyone the same problem? -- 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%2bunsubs-cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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: Slow execution getThumbnail in HTC hero
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 slowly. On 12 Лис, 07:16, Lovely vashuf...@gmail.com wrote: I am using MediaStore.Images.Thumbnails.getThumbnail to create bitmap of thumbnail in htc hero , it takes lots of time to execute this. I other device it works faster. Please suggest any alternative to this method to create bitmap thumbnail so speed improves. -- You received this message because 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] android edittext
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 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: Rapidly load data on Re-launch of an Activity
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, Kostya Vasilyev kmans...@gmail.com wrote: Paresh, There are a couple options, depending on how large the data is, how quickly it changes, and how important it is to completely avoid unnecessary reloads: 1 - Use SQLiteDatabase or SharedPreferences. This is truly persistent, and will survive the death/resurrection of not just the Activity, but of the process as well, and even the phone being rebooted. 2 - Keep an in-memory data structure (a Java singleton should work well). This will survive activity lifecycle, but will go away when the process does. However, this may not happen immediately after the user leaves the activity, so there is still value here. -- Kostya 12.11.2010 16:05, paresh mayani пишет: Hello all, Actually, i am fetching XML from the web, parsing it and display it on the screen. The problem which i am getting is that the activity tries to load the data from web each time the activity is called.(Actually, my mobile app requires frequent trips to the server) So i am in search of the below solution: On Re-launch of an activity, the data from web should not be loaded again. (But it should load data from the cache or local database that we have created while calling the web-xml for the first time). creating a class that i can use to transparently make application faster by selectively caching items in memory. And thus, making users very happy and This class can even apply individual refresh times to each cached item. So, i think i need to store the data in Cache , or in local database or something like that. Is there any way/technique to implement such thing ? so that it need not to load from web every-time on Re-launch of an activity. [Note: I want to do to make client happy by decreasing the loading time and running the application efficiently and optimizing application's loading time] -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: Rapidly load data on Re-launch of an Activity
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 database. That will be considerably faster. On Nov 12, 6:05 pm, paresh mayani pareshmay...@gmail.com wrote: Hello all, Actually, i am fetching XML from the web, parsing it and display it on the screen. The problem which i am getting is that the activity tries to load the data from web each time the activity is called.(Actually, my mobile app requires frequent trips to the server) So i am in search of the below solution: On Re-launch of an activity, the data from web should not be loaded again. (But it should load data from the cache or local database that we have created while calling the web-xml for the first time). creating a class that i can use to transparently make application faster by selectively caching items in memory. And thus, making users very happy and This class can even apply individual refresh times to each cached item. So, i think i need to store the data in Cache , or in local database or something like that. Is there any way/technique to implement such thing ? so that it need not to load from web every-time on Re-launch of an activity. [Note: I want to do to make client happy by decreasing the loading time and running the application efficiently and optimizing application's loading time] -- 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] Q: How to do an expand animation?
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 the list down. How would you implement that? I place the third/new container in my layout. Then I need to make it visible before I start the animation, because otherwise I wouldn't see it. However then in the parent there will be a gap for the third component right away and the gap will have the full size (the calculated/measured size) right away. Hence when I then start the animation to scaleY from 0.0 to 1.0 I first see the complete space of the underlying container and then slowly the actual component appears ;( What I want is that space growing with the animation. Any ideas? Do I need to set the height to 0 first and then measure myself to define the goal height/Y of the animation as well as to set the component's height myself after the animation is done? Do you know a code sample that does that? Cheers, Mariano -- 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 merge column of a table
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 Room:5:Bulb 3:Kitchen:6:CFL 3::Kitchen:7:Fan 3:::Kitchen:8:TV 1::BedRoom:9:cooler 4:Guest Room:10:cooler 5:Study Room:11:AC 5:Study Room:12:Tube 2::Guest Room:13:Bulb Now what I want is depending upon first column (i.e RoomID) other column must have to be merge and therefore data will be like this 1:BedRoom:1:AC:2:CFL:3:Tube:9:cooler How it is do? 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
[android-developers] Problems with uploading files to webservice
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) BodyPart bp = multiPart.getBodyParts().get(0); etc.. Now I tried to write a client on android to send a file to this server. So I used the normal way to send multipart message on android: HttpClient client = new DefaultHttpClient(); client.getParams().setParameter(http.socket.timeout, new Integer(9)); // 90 second HttpPost httpPost = new HttpPost(http://127.0.0.1:8080/webapp/ transferFile); httpPost.setHeader(Content-Type, MediaType.MULTIPART_FORM_DATA ); //tried with and without base64 byte [] encodedWavestream = Base64.encodeBytesToBytes(wavestream); InputStream ins = new ByteArrayInputStream(encodedWavestream); InputStreamBody body = new InputStreamBody(ins, test ); int send = ins.available(); MultipartEntity requestContent = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE ); requestContent.addPart(stream, body); httpPost.setEntity(requestContent); HttpResponse Response = client.execute(httpPost); An this gives an annoying response from the server : HTTP Status 400 - Bad Request The request sent by the client was syntactically incorrect (Bad Request). I check the server log files but there is nothing there. So I don't know what's the origin of this error. I have wrote a simple html page with a post formula and 'multipart/form-data' content-type and it works. I created a Jersey client on a PC and it also works. However I have big problems with implementing this Jersey api on android. Why my android client does not work? Can anybody help please? -- 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: Send SMS from Widget
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 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. 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: Send SMS from Widget
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 to launch the user's choice of SMS client to send the SMS. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] android security
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 Dalvik VM (except for the code itself). Could you please point me to any useful information on the subject or possibly to specific places in the code where I could do some static analysis or add some other additional checking of the security properties of apps? Thank you very much indeed! Daniela -- 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] Data Connection Retries
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 reduce number of reconnection attempts? Also is there any settings so that after n retries of failed 3G data call, Android waits for x hours to initiate next connection. BR, Hvr -- 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] Data Connection Retries
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 GsmDataConnectionTracker.java, but can't figure out how to reconfigure this so as to reduce number of reconnection attempts? This class is in com.android.internal.* package, so how are you trying to use it? There is a timeout in Socket.connect(SocketAddress address, int timeout), which will block for the timeout period trying to reconnect or will throw IOException, when things did not go well. React to both of those scenarios and wait some time between next attempt to connect. You could also set the max number of attempts, before longer wait kicks in. Daniel -- 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] android security
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 struggling to find detailed documentation for the architecture and implementation of the Dalvik VM (except for the code itself). Could you please point me to any useful information on the subject or possibly to specific places in the code where I could do some static analysis or add some other additional checking of the security properties of apps? Thank you very much indeed! Daniela Daniela, What aspects would you like to verify is probably the most important question. 2nd most important one is: Are you trying to do it for your application or for other applications too? About the latter, I am not sure, whether you will be able to achieve this from an application. What would make your application special that the APIs or the system would grant you access to other apps? What I am saying is that leaving such functionality open could pose security concerns. To achieve this in your application, have a look at Guice: http://code.google.com/p/google-guice/wiki/AOP ...and its flavour for Android: http://code.google.com/p/roboguice/ Also have a look at classes in following packages: dalvik.* security.* Daniel -- 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 read the current frame buffer
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 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: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase
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 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 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 -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase
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 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. 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 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 -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase
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 delete, then reinstall the app. Plus you might want to try cleaning your project and building anew. On Nov 16, 2:38 am, 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. 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 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] Need help for Google map API
*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 using some sort of KEY (I am not getting where i will get it). * ** PLEASE HELP ME OUT!!! THANKS, SAGAR BORSE BE IT GECA Registered Linux User #500860 स्वताः मुक्त व्हा , अन नंतर स्वॅाफ्टवेअर मुक्त करा. -- 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] Need help for Google map API
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??? 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 using some sort of KEY (I am not getting where i will get it). * ** PLEASE HELP ME OUT!!! THANKS, SAGAR BORSE BE IT GECA Registered Linux User #500860 स्वताः मुक्त व्हा , अन नंतर स्वॅाफ्टवेअर मुक्त करा. -- 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Problem with UI Thread which hangs up
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 using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- 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] Can an Update.zip be installed through ADB Shell?
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 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] Problem with UI Thread which hangs up
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 7:11 PM, umakantpatil umakantpat...@gmail.comwrote: 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 using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Bar Application wheel
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. 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] Bar Application wheel
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 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. 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Bar Application wheel
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 instructions, but they should point you in the right direction. On Tue, Nov 16, 2010 at 9:56 AM, pedr0 pulsarpie...@gmail.com wrote: 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. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: android security
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 point me to some more specific locations in the code? I had already looked at the packages you suggested, but being pressed for time, I would really appreciate some more specific pointers. Also, if you deem my approach wrong, I would be very grateful if you could give me some other ideas for how to proceed. Thanks again! Daniela On Nov 16, 12:05 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: 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 struggling to find detailed documentation for the architecture and implementation of the Dalvik VM (except for the code itself). Could you please point me to any useful information on the subject or possibly to specific places in the code where I could do some static analysis or add some other additional checking of the security properties of apps? Thank you very much indeed! Daniela Daniela, What aspects would you like to verify is probably the most important question. 2nd most important one is: Are you trying to do it for your application or for other applications too? About the latter, I am not sure, whether you will be able to achieve this from an application. What would make your application special that the APIs or the system would grant you access to other apps? What I am saying is that leaving such functionality open could pose security concerns. To achieve this in your application, have a look at Guice:http://code.google.com/p/google-guice/wiki/AOP ...and its flavour for Android:http://code.google.com/p/roboguice/ Also have a look at classes in following packages: dalvik.* security.* Daniel -- 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: Bar Application wheel
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, pedr0 pulsarpie...@gmail.com wrote: 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. 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%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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: Bar Application wheel
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 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, pedr0 pulsarpie...@gmail.com wrote: 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. 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%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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] Bar Application wheel
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 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 instructions, but they should point you in the right direction. On Tue, Nov 16, 2010 at 9:56 AM, pedr0pulsarpie...@gmail.com wrote: 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. 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] HTTPClient post delay
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 long? The client setup looks like below HttpParams params2 = new BasicHttpParams(); params2.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); params2.setParameter(CoreConnectionPNames.TCP_NODELAY, true); params2.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8); params2.setParameter(CoreProtocolPNames.USER_AGENT, Apache-HttpClient/ Android); params2.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 15000); params2.setParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false); HttpClient client = new DefaultHttpClient(params2); // params are a bunch of post params about 5 of them. HttpPost post = new HttpPost(baseURL); post.setEntity(getPostContent(params)); client.execute(post); The timing for this look like below. 11-16 08:10:50.709: VERBOSE/SG Log verb(332): Call complete 5753 11-16 08:10:50.979: VERBOSE/SG Log verb(332): Call complete 271 11-16 08:10:51.099: VERBOSE/SG Log verb(332): Call complete 114 11-16 08:10:51.319: VERBOSE/SG Log verb(332): Call complete 221 11-16 08:10:51.419: VERBOSE/SG Log verb(332): Call complete 97 11-16 08:10:51.579: VERBOSE/SG Log verb(332): Call complete 165 11-16 08:10:51.689: VERBOSE/SG Log verb(332): Call complete 106 11-16 08:10:51.849: VERBOSE/SG Log verb(332): Call complete 161 Any help is much appreciated! -- 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] HTTPClient post delay
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 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 long? The client setup looks like below HttpParams params2 = new BasicHttpParams(); params2.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); params2.setParameter(CoreConnectionPNames.TCP_NODELAY, true); params2.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8); params2.setParameter(CoreProtocolPNames.USER_AGENT, Apache-HttpClient/ Android); params2.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 15000); params2.setParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false); HttpClient client = new DefaultHttpClient(params2); // params are a bunch of post params about 5 of them. HttpPost post = new HttpPost(baseURL); post.setEntity(getPostContent(params)); client.execute(post); The timing for this look like below. 11-16 08:10:50.709: VERBOSE/SG Log verb(332): Call complete 5753 11-16 08:10:50.979: VERBOSE/SG Log verb(332): Call complete 271 11-16 08:10:51.099: VERBOSE/SG Log verb(332): Call complete 114 11-16 08:10:51.319: VERBOSE/SG Log verb(332): Call complete 221 11-16 08:10:51.419: VERBOSE/SG Log verb(332): Call complete 97 11-16 08:10:51.579: VERBOSE/SG Log verb(332): Call complete 165 11-16 08:10:51.689: VERBOSE/SG Log verb(332): Call complete 106 11-16 08:10:51.849: VERBOSE/SG Log verb(332): Call complete 161 Any help is much appreciated! -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: Bar Application wheel
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 setProgressBarIndeterminateVisibility(true / false); -- Kostya 16.11.2010 18:02, 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 instructions, but they should point you in the right direction. On Tue, Nov 16, 2010 at 9:56 AM, pedr0pulsarpie...@gmail.com wrote: 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. 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: android security
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, so I will try to change the platform code in some way. Do you think you could point me to some more specific locations in the code? I had already looked at the packages you suggested, but being pressed for time, I would really appreciate some more specific pointers. Also, if you deem my approach wrong, I would be very grateful if you could give me some other ideas for how to proceed. Daniela, I am working within application space myself, so I rely and can talk about the stuff that is publicly available through Android's public Java APIs. If you need to modify platform, then it is out of my depths, but I am sure there will be people that will point you towards something, however this group is only about Android SDK. Have a look at 'android-platform' group. I still don't understand what exactly you want to check/verify within an application. There can be plenty aspects of an application that you could check and each of those will pose different problems and will force you down different routes. - would you like to add a layer of additional security? say only classes from verified publishers can be executed? - would you like to search for use of some important to you APIs? - would you like to reverse engineer the app, to find out the dependencies between the classes? - ... I suggested the packages, as some of the calls allow you to query the platform for various things, admittedly quite high level view of the platform. Finally, I don't feel qualified to tell, whether your approach is right or wrong. Maybe this link will have some answers or will direct you towards more specific questions: http://www.netmite.com/android/mydroid/dalvik/docs/dexopt.html Good luck, -- Daniel -- 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: Bar Application wheel
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 Nov 16, 4:28 pm, Kostya Vasilyev kmans...@gmail.com wrote: 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 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 instructions, but they should point you in the right direction. On Tue, Nov 16, 2010 at 9:56 AM, pedr0pulsarpie...@gmail.com wrote: 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. 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: HTTPClient post delay
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 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 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 long? The client setup looks like below HttpParams params2 = new BasicHttpParams(); params2.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); params2.setParameter(CoreConnectionPNames.TCP_NODELAY, true); params2.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8); params2.setParameter(CoreProtocolPNames.USER_AGENT, Apache-HttpClient/ Android); params2.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 15000); params2.setParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false); HttpClient client = new DefaultHttpClient(params2); // params are a bunch of post params about 5 of them. HttpPost post = new HttpPost(baseURL); post.setEntity(getPostContent(params)); client.execute(post); The timing for this look like below. 11-16 08:10:50.709: VERBOSE/SG Log verb(332): Call complete 5753 11-16 08:10:50.979: VERBOSE/SG Log verb(332): Call complete 271 11-16 08:10:51.099: VERBOSE/SG Log verb(332): Call complete 114 11-16 08:10:51.319: VERBOSE/SG Log verb(332): Call complete 221 11-16 08:10:51.419: VERBOSE/SG Log verb(332): Call complete 97 11-16 08:10:51.579: VERBOSE/SG Log verb(332): Call complete 165 11-16 08:10:51.689: VERBOSE/SG Log verb(332): Call complete 106 11-16 08:10:51.849: VERBOSE/SG Log verb(332): Call complete 161 Any help is much appreciated! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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] HTTPClient post delay
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 100 to 200 ms. I am using the Apache client so does anyone know why this takes so long? The client setup looks like below Did you look at DDMS, what happens, when you cause the first call? I never used HttpClient. Since it does a lot, it probably is a bit heavy, so class loading and instantiating could take time. Once in memory it simply works. It is just a stab in the darkness. -- Daniel -- 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: HTTPClient post delay
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 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 100 to 200 ms. I am using the Apache client so does anyone know why this takes so long? The client setup looks like below Did you look at DDMS, what happens, when you cause the first call? I never used HttpClient. Since it does a lot, it probably is a bit heavy, so class loading and instantiating could take time. Once in memory it simply works. It is just a stab in the darkness. -- Daniel -- 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: Problem with UI Thread which hangs up
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 because they re-use the list-item views (by calling the list-adapter's getView(...) method and allowing to re-use a contentVie (list-item view)). On Nov 16, 8:41 am, umakantpatil umakantpat...@gmail.com wrote: 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 using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- 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: Problem with UI Thread which hangs up
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 - light gray). - Implement odd / even item views as two distinct layouts. For this, override getViewTypeCount and getItemViewType in the adapter, and inflate one of two layouts in getView. With the second way, you'd have more flexibility for making odd / even list items different, such as playing with indentation or alignment. -- Kostya 16.11.2010 19:38, 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 because they re-use the list-item views (by calling the list-adapter's getView(...) method and allowing to re-use a contentVie (list-item view)). On Nov 16, 8:41 am, umakantpatilumakantpat...@gmail.com wrote: 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 using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: HTTPClient post delay
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 using HttpClient much in my app(s). Used it for one activity that was much easier to achieve as a web view and never looked at its performance. To be sure about your times, try snooping on the network traffic just to see, how quickly your POST gets down the wire... This will require emulator and a traffic capture tool, like Wireshark. You should see whether there is a noticeable delay between first call and data being actually sent. Also, could it be possible that your server is implemented, so that it needs warming up? Maybe you test it locally with server restarts between various tests? Either way, as soon as you can establish rough delays between data actually sent and data actually received, then you will know, whether the problem is with your app or somewhere external. -- Daniel Drozdzewski -- 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] implementing an android framework
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? Adding the Framework app to the build path of the two other apps won't work. greets -- 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] Using onCreateDrawableState
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 with android.R.attr.state_checked then the view is draw with the checked state. So apparently my call to setImageState is not updating the state of the ImageView. The documentation for setImageState is totally blank in the case of an ImageView. What does this mean? Here's my code: private static final int[] CHECKED_STATE_SET = {android.R.attr.state_empty}; @Override public boolean isChecked() { int[] ds = getDrawableState(); return ds[checkedItemIndex] == android.R.attr.state_checked; } @Override public void setChecked(boolean isChecked) { int[] ds = getDrawableState(); if( isChecked ) { ds[checkedItemIndex]=android.R.attr.state_checked; } else { ds[checkedItemIndex]=android.R.attr.state_empty; } setImageState(ds,false); refreshDrawableState(); } @Override public void toggle() { setChecked( !isChecked() ); } @Override public int[] onCreateDrawableState(int extraSpace) { int[] drawableState = super.onCreateDrawableState(extraSpace + CHECKED_STATE_SET.length ); checkedItemIndex = drawableState.length - CHECKED_STATE_SET.length; mergeDrawableStates( drawableState , CHECKED_STATE_SET ); return drawableState; } -- 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] implementing an android framework
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 activities in my other 2 apps ? Whats the common approach for doing this? Adding the Framework app to the build path of the two other apps won't work. greets Did you try setting the common code as Library Project? http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject -- Daniel Drozdzewski -- 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: Problem with UI Thread which hangs up
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: 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 - light gray). - Implement odd / even item views as two distinct layouts. For this, override getViewTypeCount and getItemViewType in the adapter, and inflate one of two layouts in getView. With the second way, you'd have more flexibility for making odd / even list items different, such as playing with indentation or alignment. -- Kostya 16.11.2010 19:38, 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 because they re-use the list-item views (by calling the list-adapter's getView(...) method and allowing to re-use a contentVie (list-item view)). On Nov 16, 8:41 am, umakantpatilumakantpat...@gmail.com wrote: 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 using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: Problem with UI Thread which hangs up
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 with ORDER BY clause. http://www.sql-tutorial.net/SQL-ORDER-BY.asp -- Kostya 16.11.2010 20:32, 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 Vasilyevkmans...@gmail.com wrote: 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 - light gray). - Implement odd / even item views as two distinct layouts. For this, override getViewTypeCount and getItemViewType in the adapter, and inflate one of two layouts in getView. With the second way, you'd have more flexibility for making odd / even list items different, such as playing with indentation or alignment. -- Kostya 16.11.2010 19:38, 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 because they re-use the list-item views (by calling the list-adapter's getView(...) method and allowing to re-use a contentVie (list-item view)). On Nov 16, 8:41 am, umakantpatilumakantpat...@gmail.comwrote: 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 using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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 make a trial version which starts a limited amount of times?
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 through the Market, the Market will force people to buy it before they download it. You can't distribute both free and paid apps with the same package name. Nathan On Nov 16, 6:41 am, MobileVisuals eyv...@astralvisuals.com wrote: Or maybe it is better make the trial version with the License Verification Library (LVL)? An application can check the licensing status and then apply custom constraints that allow the user to run it unlicensed for a specific number of times, according to the information on : http://developer.android.com/guide/publishing/licensing.html This seems however a bit messy and time consuming to implement. Has anyone used the License Verification Library (LVL) for making a trial version? -- 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: Mutating of nine-patch images
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 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 there is not one-pixel black line around button on stretched image. Does anyone no how to forbid this changing? On 15 ноя, 19:57, Евгений Григорьев grigoriev.evgen...@gmail.com wrote: I mark only 2 center pixels as stretchable area. The problem is not stretching, but small changes in color of line and little mutations of corners. I thought it can be resolved by putting original picture to raw resource folder, but in this case it is not stretched correctly. On 15 ÎÏÑ, 15:00, Kumar Bibek coomar@gmail.com wrote: You should stretch the areas that are uniform. That is, do not stretch the corners. That should fix this problem 2010/11/15 å×ÇÅÎÉÊ çÒÉÇÏÒØÅ× grigoriev.evgen...@gmail.com Hi all. I have a problem with using nine patch images. I have an original picture: http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg... Than i use nine-patch tool from sdk to set 2-pixel stretchable area in the center of horizontal line. Then i set this image like background of linear layout. And as a result i get such image: http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg... So my image not only stretches, but also changes in some strange way. Even corner areas, that should be the same changes. Has anyone the same problem? -- 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%2bunsubs-cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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 -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android security
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 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 point me to some more specific locations in the code? I had already looked at the packages you suggested, but being pressed for time, I would really appreciate some more specific pointers. Also, if you deem my approach wrong, I would be very grateful if you could give me some other ideas for how to proceed. Thanks again! Daniela On Nov 16, 12:05 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: 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 struggling to find detailed documentation for the architecture and implementation of the Dalvik VM (except for the code itself). Could you please point me to any useful information on the subject or possibly to specific places in the code where I could do some static analysis or add some other additional checking of the security properties of apps? Thank you very much indeed! Daniela Daniela, What aspects would you like to verify is probably the most important question. 2nd most important one is: Are you trying to do it for your application or for other applications too? About the latter, I am not sure, whether you will be able to achieve this from an application. What would make your application special that the APIs or the system would grant you access to other apps? What I am saying is that leaving such functionality open could pose security concerns. To achieve this in your application, have a look at Guice: http://code.google.com/p/google-guice/wiki/AOP ...and its flavour for Android:http://code.google.com/p/roboguice/ Also have a look at classes in following packages: dalvik.* security.* Daniel -- 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 -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Transfer Preferences from demo to paid app
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). My customers didn't want to have two app icons once they installed the license. So I made it invisible. Now I have users that say they can't open the license after purchase. For those special people, use this: http://developer.android.com/reference/android/content/Intent.html#CATEGORY_INFO You can open it in the Market but doesn't show up in the launcher. I'm sure some people will still find something to complain about. =P - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 make a trial version which starts a limited amount of times?
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 that it is better to make the trial version without the LVL? If the users are forced to buy the app before downloading, like you wrote, then it seems impossible to make trial versions with LVL. On 16 Nov, 18:58, Nathan critter...@crittermap.com wrote: 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 through the Market, the Market will force people to buy it before they download it. You can't distribute both free and paid apps with the same package name. Nathan On Nov 16, 6:41 am, MobileVisuals eyv...@astralvisuals.com wrote: Or maybe it is better make the trial version with the License Verification Library (LVL)? An application can check the licensing status and then apply custom constraints that allow the user to run it unlicensed for a specific number of times, according to the information on : http://developer.android.com/guide/publishing/licensing.html This seems however a bit messy and time consuming to implement. Has anyone used the License Verification Library (LVL) for making a trial version?- Dölj citerad text - - Visa citerad 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 make a trial version which starts a limited amount of times?
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 the underlying infrastructure without the most obvious features in mind - and now they're stuck with it. At a minimum, it should have: -Coupons. We should be able to generate single-use coupon codes from the developer console and send them to key early adopters. -Limited time trials. We should be able to set the refund period on a per-app basis. The current 24-hours is way too short for my potential customers. -Subscriptions. The market should support a monthly subscription model. -- 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: Transfer Preferences from demo to paid app
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 back in the full version (and deleted once it's absorbed). My customers didn't want to have two app icons once they installed the license. So I made it invisible. Now I have users that say they can't open the license after purchase. For those special people, use this:http://developer.android.com/reference/android/content/Intent.html#CA... You can open it in the Market but doesn't show up in the launcher. I'm sure some people will still find something to complain about. =P Thank you. Since I have to do something today to stop the flood of 'can't Open' messages, I'll try the Category_Info. 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? Nathan -- 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: Transfer Preferences from demo to paid app
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, 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: Transfer Preferences from demo to paid app
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:name=android.intent.category.INFO / /intent-filter /activity -- 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] Buggy sample code for an interview
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 something like this sitting around that I could use? Any suggestions? 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
[android-developers] Re: implementing an android framework
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 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? Adding the Framework app to the build path of the two other apps won't work. greets Did you try setting the common code as Library Project? http://developer.android.com/guide/developing/eclipse-adt.html#librar... -- Daniel Drozdzewski -- 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: Cannot get ANDROID_ID on 1.6 systems
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 Murphymmur...@commonsware.com wrote: On Mon, Nov 15, 2010 at 7:17 PM, John Gabyjg...@gabysoft.com wrote: I just double checked it on a Motorola Devour running 1.6 and it is definitely returning a null. I will see if I can find another 1.6 device and check to see if it is just this particular one. Given that this call CAN return null, is there some other way to get a unique id for the device? There are a few. They all suck for one reason or another, as I recall. This has been discussed probably 20 times on this list in the past 20 months. Please search the archives for more details. Here are two off the top of my head: -- IMEI from TelephonyManager and getDeviceId() -- MAC address from WifiManager and getConnectionInfo() -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] Buggy sample code for an interview
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 layout done with px units. Code that does database inserts with literal values in the SQL statement string, rather than using parameters. An Activity that runs an AsyncTask but fails to terminate it or carry it over during orientation changes. -- Kostya 16.11.2010 22:08, 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 something like this sitting around that I could use? Any suggestions? Thanks, -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: Send SMS from Widget
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 sending SMS to from phone to be so rare and uncommon task that you do not believe search query I suggested would really work for you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 an Update.zip be installed through ADB Shell?
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 sd card access. For simulator you may want to check this: http://developer.android.com/guide/developing/tools/emulator.html#sdcard -- 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: Transfer Preferences from demo to paid app
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 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 use the default preferences everywhere, though, so if you use differently-name preferences, they might have different file names. Reading it in is a bit more work, but there's only 5 types supported that you have to worry about (int, long, float, boolean, string), so it's not that bad. On Tue, Nov 16, 2010 at 12:55 PM, Bret Foreman bret.fore...@gmail.comwrote: 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? http://code.google.com/p/android/issues/detail?id=12590 There you go. 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. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 an Update.zip be installed through ADB Shell?
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 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 sd card access. For simulator you may want to check this: http://developer.android.com/guide/developing/tools/emulator.html#sdcard -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: HTTPClient post delay
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, 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 using HttpClient much in my app(s). Used it for one activity that was much easier to achieve as a web view and never looked at its performance. To be sure about your times, try snooping on the network traffic just to see, how quickly your POST gets down the wire... This will require emulator and a traffic capture tool, like Wireshark. You should see whether there is a noticeable delay between first call and data being actually sent. Also, could it be possible that your server is implemented, so that it needs warming up? Maybe you test it locally with server restarts between various tests? Either way, as soon as you can establish rough delays between data actually sent and data actually received, then you will know, whether the problem is with your app or somewhere external. -- Daniel Drozdzewski -- 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] Can I get a web link to my newly published app
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? 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
[android-developers] How to reduce heap size to get space for BitmapFactory.decodeFile()
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 will be freed by the GC. But the (total) heap size - as displayed by the DDM - remains large. In this situation there is not enough heap space outside of the Java heap to decode even medium sized image files using BitmapFactory.decodeFile(). At the moment I limit the size of encrypted files to ensure that the Java heap space never increases to more than 10 MB. This ensures that there is enough memory for BitmapFactory.decodeFile(). But this is not very elegant. Is it possible to tell the dalvik-vm to reduce the (total) heap size to have more space for decoding images or is there another solution? Thanks, manayv -- 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 I get a web link to my newly published app
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 of link I can add that the user can click on that will take them to the market to download my app? See the bottom of http://developer.android.com/guide/publishing/publishing.html. I *think* it should just work if you put one of those as links and someone clicks it on their phone. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Can I get a web link to my newly published app
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 Android. Pity. On Nov 16, 12:45 pm, TreKing treking...@gmail.com wrote: 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 of link I can add that the user can click on that will take them to the market to download my app? See the bottom ofhttp://developer.android.com/guide/publishing/publishing.html. I *think* it should just work if you put one of those as links and someone clicks it on their phone. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Transfer Preferences from demo to paid app
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 use the default preferences everywhere, though, so if you use differently-name preferences, they might have different file names. Bear in mind that Android could conceivably change the data store for preferences sometime. The SharedPreference API could be backed up by a SQLite database, for example. I doubt they will make that change, but keep in the back of your mind that your restore process might need to be a bit more complicated in the future if they do make a change. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] MOVING BACKGROUND IMAGE FOR ANDROID GAME
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 used drawing stuff in Android too much, but most rendering APIs will have some way of specifying where to draw what portion of an image. So you could draw the right half of the image on the left half of the screen and vice versa. Then you could draw into those two areas, moving the wrap point to give the illusion of movement. If you can't do something like this, your two-image idea is worth a shot, assuming they're small. Or look into OpenGL - there's gotta be a way of doing such things with that. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] application crashes when trying to play media in res/raw
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 http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Transfer Preferences from demo to paid app
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 implement (for now) and provides such a huge bonus for users that it's worth the potential future maintenance headache, IMO. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Transfer Preferences from demo to paid app
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 something and have no idea if it works. 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. Nathan -- 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: Can I get a web link to my newly published app
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, etc). There are a lot of things that that iPhone does that one would think would set some kind of standard for common sense - like a functional website and enough room to properly describe an app - that the Android Market utterly fails at. I take it, by your response, that there is no such equivalent for Android. Well, not *yet*. Such amazing technology was demoed at Google IO and ... well, that was pretty much it. There has not been any more movement, AFAIK. Pity. Get used to it buddy :-) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Transfer Preferences from demo to paid app
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 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. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase
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 16 nov, 09:38, 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. 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 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: Transfer Preferences from demo to paid app
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 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. So I've been told, but this has *never* worked for me. I can install a signed release apk, clear the Market cache and data, and I have never seen the app under Downloads. It may work for others, just never worked for me on my Nexus One with 2.2. Nathan -- 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: Can I get a web link to my newly published app
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 work. And just wait for Google to penalize your website for having a broken link. :( Nathan -- 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] Using onCreateDrawableState
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 all, which this doesn't). Here is the code of interest from CompoundButton that adds its checked state to the state set: private boolean mChecked; private static final int[] CHECKED_STATE_SET = { R.attr.state_checked }; public boolean isChecked() { return mChecked; } public void setChecked(boolean checked) { if (mChecked != checked) { mChecked = checked; refreshDrawableState(); // ... } } @Override protected int[] onCreateDrawableState(int extraSpace) { final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); if (isChecked()) { mergeDrawableStates(drawableState, CHECKED_STATE_SET); } return drawableState; } Also any state you set in to ImageView will be merged in to the state set, because it does do the appropriate thing in onCreateDrawableState(): @Override public int[] onCreateDrawableState(int extraSpace) { if (mState == null) { return super.onCreateDrawableState(extraSpace); } else if (!mMergeState) { return mState; } else { return mergeDrawableStates( super.onCreateDrawableState(extraSpace + mState.length), mState); } } And the function you call to set the additional state keeps hold of it and ensures the current drawables are updated with it: public void setImageState(int[] state, boolean merge) { mState = state; mMergeState = merge; if (mDrawable != null) { refreshDrawableState(); resizeFromDrawable(); } } (Though actually I see there is a small bug here -- if you haven't set the image view's Drawable it should still do refreshDrawableState() to ensure any background drawing gets updated.) On Tue, Nov 16, 2010 at 9:28 AM, Bret Foreman bret.fore...@gmail.comwrote: 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 with android.R.attr.state_checked then the view is draw with the checked state. So apparently my call to setImageState is not updating the state of the ImageView. The documentation for setImageState is totally blank in the case of an ImageView. What does this mean? Here's my code: private static final int[] CHECKED_STATE_SET = {android.R.attr.state_empty}; @Override public boolean isChecked() { int[] ds = getDrawableState(); return ds[checkedItemIndex] == android.R.attr.state_checked; } @Override public void setChecked(boolean isChecked) { int[] ds = getDrawableState(); if( isChecked ) { ds[checkedItemIndex]=android.R.attr.state_checked; } else { ds[checkedItemIndex]=android.R.attr.state_empty; } setImageState(ds,false); refreshDrawableState(); } @Override public void toggle() { setChecked( !isChecked() ); } @Override public int[] onCreateDrawableState(int extraSpace) { int[] drawableState = super.onCreateDrawableState(extraSpace + CHECKED_STATE_SET.length ); checkedItemIndex = drawableState.length - CHECKED_STATE_SET.length; mergeDrawableStates( drawableState , CHECKED_STATE_SET ); return drawableState; } -- 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 -- 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
[android-developers] Re: Adding separators to a ListView
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 if you pressed the header, the rest of the list item was highlighted - it was still clickable. I want the separator to be completely untied to the list item, so that if you click it, nothing happens. Does your solution act in this manner? On Nov 16, 1:49 pm, Kostya Vasilyev kmans...@gmail.com wrote: Ok, here it is: http://kmansoft.wordpress.com/2010/11/16/adding-group-headers-to-list... -- Kostya 15.11.2010 21:48, Neilz пишет: Yes please Kostya, and thanks for your input :-) On Nov 15, 5:50 pm, Kostya Vasilyevkmans...@gmail.com wrote: Since this came up before, and generally *seems* useful, should I post the entire recipe somewhere? (i.e. my blog)? 15.11.2010 20:32, Neilz пишет: Maybe I can shuffle the order of your long list ;-) Yes and yes, though probably not easily. You might consider Kostya's approach. Creating a CursorHeadingAdapter or some such is on my 18,000-item to-do list. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: Game performance degrading over time - any ideas?
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 both do the same thing. I'll post some code in case someone can tell me what I'm doing wrong: private AnimationDrawable m_animationDrawable; m_animationDrawable = (AnimationDrawable) m_inGameView.getResources().getDrawable(p_animDrawableID); then my doDraw method looks like: final void doDraw(final Canvas p_canvas, final Rect p_bbox, final boolean p_applyColorFilter) and it does the following: m_animationDrawable.getFrame(m_currentFrame).setBounds(p_bbox.left, p_bbox.top, p_bbox.right, p_bbox.bottom); // some color filter stuff that's irrelevant to the leak go here m_animationDrawable.getFrame(m_currentFrame).draw(p_canvas); // m_currentFrame gets updated in doUpdate // p_bbox is a rect that represents the drawable's bounding box...different frames can have different bbox sizes (e.g. during an explosion) The call to setBounds above shows as an alloc in DDMS :( I've called it passing p_bbox directly as well (i.e. the rect version of setBounds) and it makes no difference. How can I prevent the allocation there? Thank you in advance, kk. On Nov 15, 8:37 pm, kk kkostia...@gmail.com wrote: Top stuff Kostya/Dianne. Thank you for the feedback. I think before I look into anything else, I should do this first to get rid of the thousands of micro-allocations that take place there. UI elements are drawn about 20 times per second and although I cache values that don't change, a lot of the values do change quite frequently. I'll report back if I'm still having issues after I do this. Thanx again, kk. On Nov 15, 7:31 pm, Kostya Vasilyev kmans...@gmail.com wrote: What I was suggesting was, rather than using Integer.toString(), or any other String / StringBulider methods, format the value yourself. In class declaration: char[] mMyHealthStr = new char[8]; int mMyHealthLen = 0; When drawing: // convert integer to string in mMyHealthStr, set mMyHealthLen canvas.draw(mMyHealthStr, 0, mMyHealthLen, . blah blah .); -- Kostya 15.11.2010 21:48, Dianne Hackborn ?: On Mon, Nov 15, 2010 at 8:37 AM, kk kkostia...@gmail.com mailto:kkostia...@gmail.com wrote: private StringBuilder m_healthString = new StringBuilder(8); I update by doing: m_healthString.replace(0, 8, Integer.toString(myHealth)); Is this expensive/wrong? Is there a better way to update a StringBuilder with a new String? You haven't gained anything here, because Integer.toString() has already had to make a string for that integer before you even get in to the StringBuilder. -- Dianne Hackborn Android framework engineer hack...@android.com mailto: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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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 read the current frame buffer
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 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 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: Adding separators to a ListView
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 given position is a header, return false, otherwise true. Note, however, that a disabled list-item's separators disappear. On Nov 16, 5:01 pm, Neilz neilhorn...@gmail.com wrote: 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 if you pressed the header, the rest of the list item was highlighted - it was still clickable. I want the separator to be completely untied to the list item, so that if you click it, nothing happens. Does your solution act in this manner? On Nov 16, 1:49 pm, Kostya Vasilyev kmans...@gmail.com wrote: Ok, here it is: http://kmansoft.wordpress.com/2010/11/16/adding-group-headers-to-list... -- Kostya 15.11.2010 21:48, Neilz пишет: Yes please Kostya, and thanks for your input :-) On Nov 15, 5:50 pm, Kostya Vasilyevkmans...@gmail.com wrote: Since this came up before, and generally *seems* useful, should I post the entire recipe somewhere? (i.e. my blog)? 15.11.2010 20:32, Neilz пишет: Maybe I can shuffle the order of your long list ;-) Yes and yes, though probably not easily. You might consider Kostya's approach. Creating a CursorHeadingAdapter or some such is on my 18,000-item to-do list. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com- 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 read the current frame buffer
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 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 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: Transfer Preferences from demo to paid app
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. FWIW, this trick hasn't worked for me since Donut. String -- 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] Tracking revenue on the Android Market
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 many devs make use of it as possible. Here's a link to the Google Code project (with screenshots): http://code.google.com/p/chartdroid/wiki/DeveloperRevenueAnalysis That page has a QR code and direct link to download from the Android market. The app is called Developer Revenue Analysis. It makes use of the ChartDroid library (also open source) to display graphs. Karl -- 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