Re: [android-developers] Re: Parsing heavy data
Like Frank said... why 10,000? To me, that's a bad design to try to deal with that much data on a mobile device. Make your data in pieces, make subsequent requests, or move it to a web platform and allow the user to use the browser (or embed the webkit in your app) and all the processing to occur there and then display in the web view maybe? On Mon, Jun 7, 2010 at 11:26 PM, nexbug gsuku...@gmail.com wrote: save it to a file, and use the pull parser with the file as the input stream ??? -g On Jun 7, 7:52 pm, Frank Weiss fewe...@gmail.com wrote: AFAIK SOAP is a bit heavyweight for a mobile device, but in many cases people have to use that existing legacy technology. Many people are using lighter weight technologies such as SAX, XPP, JSON to download and REST for bidirectional data. Also, do you really have to download all 10,000 items to make your mobile application work effectively? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to read calendar
Can we read calendar in Vcard format? -- 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] Regarding email and phone number from contact
Hi, I am currently working on SDK 1.5 , and in my app i want to read the phone number and email address of the person from contacts. I got the solution to read phone no using following : phoneid = phoneBookCursor.getInt(phoneBookCursor.getColumnIndex(People.PRIMARY_PHONE_ID)); and phoneno = phoneBookCursor.getString(phoneBookCursor.getColumnIndex(People.NUMBER)); But i couldnt found any way to read email id from cursor since People.email is not available. Is there any alternate way to do this? Thanks, Ameya -- 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] Post APK on the website
I want to post my free version of the APK on my website so people can test it out without going through android market. I am using a third party web host site (windows based server). I tried a href=freeapp.apk, it doesn't work. I did some search and all I found was using Apache server to do that. Is there a way to host this apk on a windows server? What the html should look like? Where can I find more information about it? 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: Post APK on the website
On Jun 9, 7:48 am, yves...@gmail.com yves...@gmail.com wrote: href=freeapp.apk, it doesn't work What does it do? If you want meaningful help, you need to supply a more meaningful problem description than it doesn't work. :^) At a guess, you may need to add configure the MIME type; the correct value is application/vnd.android.package-archive. Perhaps someone else can chime in with how to do that on your web host software. BTW. Windows is an OS, not a web host, but I'm guessing (again) that your server uses IIS simply because you say it's not Apache, and they're the two biggest. 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: Moving from one Activity to another with a pause/delay
On Jun 9, 5:03 am, pawan nimje pawanni...@gmail.com wrote: any kind of suggestion will do .. In your onClick event put your color changing code and a call to Handler.sendEmptyMessageDelayed(). The latter will reference a Handler you create, with the activity-switching code in its handleMessage() method. 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: Is it possible to use the USB connection in my app?
Which rule should your specific hardware play : device or host ? Which usb protocol will it support ? Will this be a solution to a particular device ? If not, IMHO your are forced to work somehow with usb mass storage with your hardware. Good luck ! Frank On 8 Jun., 16:40, Cleverson clevers...@gmail.com wrote: Hi, I'm wondering if it is possible to open a USB connection in my app. The idea is to plug a specific hardware into the phone USB connection and make it to talk with my app. I've already searched the forum but could not find a reliable answer. Thanks a lot! -- 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: Need some Generics Experts inputs
ActivityInstrumentationTestCase2 is parameterized by the Activity under test, as illustrated in the tutorial: http://developer.android.com/resources/tutorials/testing/helloandroid_test.html Without parameterization, this base class would not be able to provide a getActivity method that returned the activity under test: http://developer.android.com/reference/android/test/ActivityInstrumentationTestCase2.html The use of T extends ... bounded type is explained in the Java tutorial: http://java.sun.com/docs/books/tutorial/java/generics/bounded.html Also check out the PECS rule for bounded wildcard types. In Effective Java, 2nd Ed. Joe On Jun 8, 9:02 pm, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, I see in android some special syntax (may be I am unaware of usage of generics this way) such as public static abstract class ActivityInstrumentationTestCase2T extends android.app.Activity extends android.test.ActivityTestCase I am unable to know the exact meaning of ActivityInstrumentationTestCase2T extends android.app.Activity i.e the need and its implications of T extends android.app.Activity Could any one help what this means and where else to hunt for Java Generics support related to such kind of class declaration Regards, Nagendra -- 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: Create Wav File
Sorry but how it's gone help me to find how to create wav file with android SDK ? I know what is wav file format and how to create wav file using c++ for example (add riff header, writing pcm samples ...) My question is : how can I do that with android SDK - java ? 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: ListView problem - items are shrank when while scrolling the view
Thanks for your help but it still shrink the image. about the criteria: I have different criteria but to make it easy to explain i prefer this one. On Jun 9, 8:56 am, mort m...@sto-helit.de wrote: I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android knows there are different views for the items. Example (untested ugly style): public int getItemViewType(int position) { if ( position == 5 ) return 1; else return 0; } public int getItemViewTypeCount() { return 2; } public View getView(int position, View convertView, ViewGroup parent) { if ( getItemViewType(position) == 1 ) { return imgView; } else { TextView tv; if ( convertView != null ) { // Do this to save memory! tv = (TextView) convertView; } else { tv = new TextView(TestActivity.this); } tv.setText(Entry #+position); tv.setMinimumHeight(50); tv.setBackgroundColor(Color.DKGRAY); return tv; } } btw: Querying a fixed position might be a bad idea in the long run. Isn't there a better criteria? -- 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: How to find memory leak?
But when doing that, do not forget to convert the snapshots using * hprof-conv*. I'm still searching for a automatic way. We're using: for i in *.andhprof; do hprof-conv $i `basename $i .andhprof`.new.hprof ;done On Thu, May 20, 2010 at 8:19 PM, Mathias Lin m...@mathiaslin.com wrote: Yourkit, http://yourkit.com/overview/index.jsp, is another profiler tool that could be used. In sdk2.1, you can also do it on a non-rooted device - you can create a hprov from within the app and write it to sdcard. Debug.dumpHprofData(/sdcard/myapp.hprov); At least in v2.1, possible that this wasn't availabe in 1.x sdk. On May 20, 8:10 pm, pacoder sove...@gmail.com wrote: I've been using Eclipse MAT (http://www.eclipse.org/mat/) to look at heap dumps. My phone isn't rooted so I run my app in the emulator then use adb to do a kill -10 which forces a heap dump. I then do an adb pull to grab the file (your logcat will give you the name of the heap dump output file when it runs). Then I use the android hprof-conv tool to convert the heap dump to one that MAT can read. Then just open it up in MAT and you can look around through the dump. It will also suggest leak candidates to you, it's a nice tool. Also, you will need to grant write permissions to the output directory in your emulator. I just go do a chmod 777 /user/data. hth, Sean Overby On May 20, 6:27 am, Jiang webs...@yahoo.cn wrote: When start Activity A, I found the memory usage of application is about 5MB, Then start Activity B from A via startActivity. In Activity B, I created a thread, and traverse file system in this thread, after traversing completed, call finish() and to return to Activity A. at this time, I found the memory usage of application is about 8MB (GC is forced before check memory usage). How to find Where memory leaks? By the way, I checked the memory usage with DDMS. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer
You simply pass the RTSP url to MediaPlayer (although I think this functionality was somewhat broken before 2.1 so I can't be certain that it will work in 1.6-2.0). You can play it in the same way that you would play a file (but instead of passing the file descriptor pass the URL as a string). -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In: http://www.linkedin.com/in/andysavage On Mon, Jun 7, 2010 at 5:35 PM, Jez jeremy.a.co...@baesystems.com wrote: I'm confused by RTSP streaming - I've been trying to stream a LIVE video to Android (2.1) and not sure from the discussion here and previous posts that I've seen if Android can actually receive and play a LIVE video stream? I don't need any control of the video at all so just need to stream it. Jez On Jun 1, 2:30 am, Andy Savage a...@bluewire.net.nz wrote: In my example I am using SIP, so the SDP information is actually exchanged this way. The RTSP is simply for receiving as a hack to Android's built in (arbitrary) limitations. So the idea is to take the SDP for receiving and wrap it over RTSP. -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In:http://www.linkedin.com/in/andysavage On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com wrote: There is a technical limitation to what SDP can legally convey. A single SDP document can contain only one end of media conversation. Therefore it is technically impossible to setup streaming with just one SDP document there have to be an exchange. When using RTSP or SIP terminals exchange their SDP information and thus get to know where to stream to and from where to accept the stream. MediaPlayer could accept just one SDP (i.e. streamer's), but then how would streamer would know where to transmit? Both of them have to exchange at least supported CODEC information and connection information (port and IP). Maybe I am just not aware of SDP format with two node's information. Can someone share an example? On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote: I agree with Andy's comment: On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote: There seems to be a limitation that means that it will only accept SDP information with RTP streams inside if it gets them from the RTSP stream (e.g. it gets this information from SETUP in the RTSP protocal). It is possible to play a stream by requesting it via a RTSP request (both audio and video are sent over RTP and the MediaPlayer is able to decode and play them). But it is not possible to play live RTP stream by requesting the SDP file directly (via an HTTP request). The RTP streams (audio and video) are sent to the device from the server. The MediaPlayer should just get the SDP file, listen on the proper ports and decode the streams. But it generates an error and do not play the streams. Jean -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer
On the subject of this thread I have submitted a bug report... For those interested you may want to star it or add any useful comments: http://code.google.com/p/android/issues/detail?id=8959q=rtpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars I hope we can get this resolved. I'm not really a skilled enough coder to fix this issue myself (in the C sources). But anybody who could help would be much appreciated. -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In: http://www.linkedin.com/in/andysavage On Wed, Jun 9, 2010 at 3:58 PM, Andy Savage a...@bluewire.net.nz wrote: You simply pass the RTSP url to MediaPlayer (although I think this functionality was somewhat broken before 2.1 so I can't be certain that it will work in 1.6-2.0). You can play it in the same way that you would play a file (but instead of passing the file descriptor pass the URL as a string). -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In: http://www.linkedin.com/in/andysavage On Mon, Jun 7, 2010 at 5:35 PM, Jez jeremy.a.co...@baesystems.com wrote: I'm confused by RTSP streaming - I've been trying to stream a LIVE video to Android (2.1) and not sure from the discussion here and previous posts that I've seen if Android can actually receive and play a LIVE video stream? I don't need any control of the video at all so just need to stream it. Jez On Jun 1, 2:30 am, Andy Savage a...@bluewire.net.nz wrote: In my example I am using SIP, so the SDP information is actually exchanged this way. The RTSP is simply for receiving as a hack to Android's built in (arbitrary) limitations. So the idea is to take the SDP for receiving and wrap it over RTSP. -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In:http://www.linkedin.com/in/andysavage On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com wrote: There is a technical limitation to what SDP can legally convey. A single SDP document can contain only one end of media conversation. Therefore it is technically impossible to setup streaming with just one SDP document there have to be an exchange. When using RTSP or SIP terminals exchange their SDP information and thus get to know where to stream to and from where to accept the stream. MediaPlayer could accept just one SDP (i.e. streamer's), but then how would streamer would know where to transmit? Both of them have to exchange at least supported CODEC information and connection information (port and IP). Maybe I am just not aware of SDP format with two node's information. Can someone share an example? On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote: I agree with Andy's comment: On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote: There seems to be a limitation that means that it will only accept SDP information with RTP streams inside if it gets them from the RTSP stream (e.g. it gets this information from SETUP in the RTSP protocal). It is possible to play a stream by requesting it via a RTSP request (both audio and video are sent over RTP and the MediaPlayer is able to decode and play them). But it is not possible to play live RTP stream by requesting the SDP file directly (via an HTTP request). The RTP streams (audio and video) are sent to the device from the server. The MediaPlayer should just get the SDP file, listen on the proper ports and decode the streams. But it generates an error and do not play the streams. Jean -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you
[android-developers] instrumentation tag internals
Hi, Would like to know the best place to get more details on this tag 'instrumentation' for the manifest file. instrumentation android:targetPackage='com.tejasoft.tezzd.mobile.android' android:name='android.test.InstrumentationTestRunner' android:label='TestTezzD' android:functionalTest='true' android:handleProfiling='true'/ Unable to understand its working, specially, how does the InstrumentationTestRunner find all the test cases and what is the way to write the manifest so that it runs only perticular suite and not all the test cases. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.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 lanuch test application from phone
Use adb shell am instrument Check out the platform documentation at http://pdk.android.com/online-pdk/guide/instrumentation_testing.html for an example. On Jun 9, 8:57 am, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Nope.. Sachin, sorry for being less clear on my need. I was referring to a Test case application which has the test cases to test the main application. This TestCase Class inherits from ActivityInstrumentationTestCase2 which is not a activity and hence can't have be shown on Main Application Menu. Regards, Nagendra -- 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] TaskAffinity causes new instance being created when startActivity
Hi, I have a problem about taskAffinity of Activity. Activities A and B with the same taskAffinity. A starts B with FLAG_ACTIVITY_NEW_TASK and the B starts A with FLAG_ACTIVITY_NEW_TASK again. Dumpsys activity of system gives us task stack like below: TOP- A B A According to SDK's reference to FLAG_ACTIVITY_NEW_TASK, the result is supposed to be like below: TOP - A B If we did not set taskAffinity, A will not be created again but in different task stack from B. (A and B are in different Apps) After a little more research, we found FLAG_ACTIVITY_REORDER_TO_FRONT is what we want. My question is whether SDK' reference to FLAG_ACTIVITY_NEW_TASK is wrong? Thanks, James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@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: Troubles with hierarchyviewer
Ha... right. Now, I remember you already mention it during the Paris ADL session ! Sorry for that. :) Thanx for the answer ! On Jun 8, 1:00 am, Romain Guy romain...@android.com wrote: HierarchyViewer cannot be used with user builds, for security reasons. You can use it with debug builds or the emulator. On Mon, Jun 7, 2010 at 3:31 AM, Thom tezan.ens...@gmail.com wrote: Hi, I can't figure out how to acces to the view hierarchy through hierarchyviewer : - my device (tests with NexusOne/Froyo and Galaxy/Cupcake) is connected, - I start hierarchyviewer, I select my device in the device panel, - And when I press start the terminal dispalys : protocol = 2 version = 2 but nothing else appends. Stop Servers, Refresh Windows, Devices and Load View Hierarchy buttons remains unavailable. Did i do smthg wrong ? Thanx. Tom. -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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
[android-developers] Re: Good job Android Team !!
Don't get me wrong, I still think that neither the Android framework, the Android Documentation, or the developpers Market console are very very far from being production ready. And it is really frustrating I agree. BUT... If you go around telling everyone about everything that doesn't work and never tell when something actually is an improvement, you are not helping, you are undermining. Yahel -- 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: Moving from one Activity to another with a pause/delay
Sounds cool ... will try .. On Wed, Jun 9, 2010 at 12:37 PM, String sterling.ud...@googlemail.comwrote: On Jun 9, 5:03 am, pawan nimje pawanni...@gmail.com wrote: any kind of suggestion will do .. In your onClick event put your color changing code and a call to Handler.sendEmptyMessageDelayed(). The latter will reference a Handler you create, with the activity-switching code in its handleMessage() method. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What do users see when i change the project build target?
This question might have been asked a while ago, but i'm still confused, and things could have changed in the mean time. Let's say i'm changing the project build target from Android 1.6 to Android 2.1 (not sure i will, but just hypothetically :) and that the android:minSdkVersion attribute is changed accordingly. What will happen to my current users who don't have Android 2.1? Will they receive the update through Android Market automatically? Will it try to install the app and fail, but the current (already installed) version will still work? Will the failure break the app? Or will the Market ignore such users and they can continue using the 'old' app without any extra notifications? Thanks, Teo -- 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] What do users see when i change the project build target?
This question might have been asked a while ago, but i'm still confused, and things could have changed in the mean time. Let's say i'm changing the project build target from Android 1.6 to Android 2.1 (not sure i will, but just hypothetically :) and that the android:minSdkVersion attribute is changed accordingly. What will happen to my current users who don't have Android 2.1? Will they receive the update through Android Market automatically? Will it try to install the app and fail, but the current (already installed) version will still work? Will the failure break the app? Or will the Market ignore such users and they can continue using the 'old' app without any extra notifications? Thanks, Teo -- 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: Developing Android REST client applications
Ah thanks Streets Of Boston, I did not know about that guarantee. That surely does make it easier and avoids losing updates. Andrew On 9 June 2010 02:29, Streets Of Boston flyingdutc...@gmail.com wrote: I report the result by using onPostExecute. Android guarantees that during a configuration change, no message will be posted to 'the' activity inbetween an onDestroy and an onCreate (i remember a post by Dianna about this). This means that the result from the onPostExecute either arrives before the activity is destroyed or after it is created (during a configuration change). I give the requests unique IDs and save these IDs within the 'last- configuration-change' object. When the onCreate is called, i get the 'last-configuration-change' object and restore these IDs in the new activity instance. When the onPostExecute finishes, it queries which activity of the expected class is on top of the activity stack of my app. If it finds one, the result is sent to this activity and handled by it. If it can't find one, the activity has been paused (hidden) or permanently destroyed and the user is no longer interested in the result. On Jun 8, 7:45 pm, Andrew Brampton bramp...@gmail.com wrote: On 9 June 2010 00:02, Streets Of Boston flyingdutc...@gmail.com wrote: However, that approach can still lose responses or duplicate network usage if the Activity is destroyed/created while the AsyncTask is doing its job Is that an issue with the Droid-fu or with AsyncTask? I don't have that issue. When configuration changes take place, no new requests are duplicated and existing ones just keep going, as long as you put the AsyncTasks in a static context (not an (activity) instance context). Maybe I'm making an assumption about how you are using AsyncTask, but what happens in the gap between the old Activity being destroyed and before the new one has been created. What happens to the result in that gap as you have no valid Activity to display the result? Either you are losing your response, or you have to re-request it (hence duplicate network usage). Or I guess you could be storing the result temporary in your Application class? Andrew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Add organization in contact
Hi, I want to add organization details in any contact.But I am getting java.lang.UnsupportedOperationException: Unknown uri: content://contacts/people/67/organizations. But this error doesnt come in emulator. What can be the reason?How can I resolve this issue?? Any help will be appreciated.. Thanks in Advance Nemat -- 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: Create Wav File
This shows you how to write files to the SD card: http://www.anddev.org/working_with_files-t115.html Then you write your own wav header, and your own pcm samples. Andrew On 9 June 2010 08:37, zenoname zenonamem...@gmail.com wrote: Sorry but how it's gone help me to find how to create wav file with android SDK ? I know what is wav file format and how to create wav file using c++ for example (add riff header, writing pcm samples ...) My question is : how can I do that with android SDK - java ? 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 -- 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: Text to speech unfunctional
*Hi , * *Well , I installed com.svox*.langpack.installer_1.0.1.*apk to my /system/app that actuall install voice data (en_*.bin) files in my /sdcard/svox location .* *Now Mainmenu-settings-Text to speech has install voice data option disabled and other options are enabled now . * *That means voice data is installed now in my sdcard . I have TtsService.apk in my /system/app --so tts library is installed also . Now what to do ?? I * ** *I want to know how to use this TTS .. Is there a sample apllication apk that make things clear to me . * ** ** *Thanks : * *UAnder * . On Mon, Jun 7, 2010 at 5:10 AM, Uander uandro...@gmail.com wrote: Does this link would be indirection for my issue ? http://andappstore.com/AndroidApplications/apps/210486 its asking for language installer apk to be loadedd in /sdcard/* location . what steps are required basically to enable TTS ? and how can one make use of it ? Thanks : Uander On Mon, Jun 7, 2010 at 1:32 AM, Uander uandro...@gmail.com wrote: Hi All , we have ported android 2.1 on one of our custom board . I was checking Text to speech functionality on it . I click Settings-Text to Speech . ..it gives n new screen All options other than Install voice data is greyed out . When I click on install voice data . it says The application Pico TTS has stoppped unexpectedly. PLease try again Can anyone point me what is the issue or how to install voice data on my board having eclair 2.1 . Thanks : Uander -- 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: Map is not dispalying in the android emulator
hi, Thanks for your reply, i have tried all the options which u have given, Map is not displaying still. i am posting some of the logcat errors here, pls suggest me to proceed ..details of Android version and details listed below details of android stack which i am using : android 2.2 sdk is android-sdk_r06-windows ADT Plugin is ADT 0.9.6.zip logcat: 06-09 13:54:10.633: ERROR/MapActivity(288): Couldn't get connection factory client 06-09 13:54:11.154: ERROR/CheckinTask(219): Checkin failed: https://android.clients.google.com/checkin (request #0) 06-09 13:54:11.154: ERROR/CheckinTask(219): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java: 121) 06-09 13:54:11.154: ERROR/CheckinTask(219): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java: 164) thanks aswini -- 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: RTP stream video decoding
Hi everyone, Just a small question. Please tell me what is the a typical payload length in bytes of RTP packet containing voice data? I am sending RTP packets with raw PCM data using AudioRecord class, but the delay is very high at the receiver end !!! Best Regards On May 24, 8:44 am, Andy Savage a...@bluewire.net.nz wrote: Hi everyone, I need a little bit of help from some experts out there. Currently I am developing an application that will stream video using RTP and SIP. I have this mostly working with audio working fine both ways using Java (and native) codecs. I can stream out video also from the camera to a windows client. The problem comes from when I want to receive and decode the video on the android platform. I understand at this stage that Mediaplayer only supports RTSP streams. Ironically it does what I need (by getting the SDP information from using RTSP SETUP call and using that RTP/UDP information to receive the stream). But I can't seem to access this functionality, all it takes as input is a RTSP url. If you are unfamiliar the difference between RTSP using RTP and SIP using RTP. You can read about the differences herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip . What I need to do is take an RTP stream encoded with h.263-1998 and somehow pass it to the mediaplayer (or even a lower level api if somebody can provide an example). The only way I can think around this is to write another service to receive the RTP stream and provide an RTSP interface... but this is a really ugly solution. I would really appreciate if anybody could offer any help with this. Kind regards, Andy Savage -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In:http://www.linkedin.com/in/andysavage -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] unsubscribe from android-developers Groups
android-develop...@googlegroups.c android-developers@googlegroups.com android-developers@googlegroups.com om android-developers@googlegroups.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] Carbide.ui 3.4 Theme Edition Plug-ins
Check out these cool plug-ins which extends the features of Carbide.ui 3.4 Theme Edition to enable the creation of themes for various S60 platform editions and devices from Nokia. New versions of the Nokia E71 and Nokia E66 plug-ins are available. These updates have refined the content of the plug-ins to improve their performance in Carbide.ui and ensure consistency across all the plug-ins. To download these plug-ins go here http://bit.ly/82XAS1 -- 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: Why is Android so buggy?
I would guess that at most there is 10 to 15 maybe less Google employees in this Android team. Sorry, but you have no clue about this. Well do we have to push you far to have a sneak peak of what is really going on inside google's quarters :D Don't be sorry, you are right I had no clue, that's exactly why I gave what I hoped was a very low count just to have someone react :) I don't think you really have an idea of what all is involved in making such a product Oh believe me I do and I have a lot of empathy, I swear :) When you out the two spoke-persons you're only left with Romain and Dianne :D Also, Romain and I are not spoke-persons. Sorry I think you misread me or that my english sucks more than I thought(I vote for the later), I meant that you are the only two engineers left in the team if we take out the two spoke-persons of the team. We take our spare time to spend on this group. And I assure you that this does not goes under the radar. We notice it and we really appreciate it. That's why I cited your names as some kind of weird aknowledgement. I can't hold it against an engineer for not posting here. Well you can't but we can. You engineers are the one making things happening. You know the ins and outs of the beast, we don't. We have to guess using the documentation(sigh) you provide. When you give advice or definitive answers here, it really helps. I think that is the limit of a commercial company working on open source. Since the team is payed to work on it and it's not written in their contract they should help the community, most just don't because it is more work. Having to explain thing to us Android Illiterates seems like a burden and I understand that. And again that's why I, among other really really appreciate your presence here. I would have loved to see the despair in the eyes of Romain Guy or No, that is not how it works. Again just teasing here to try to get an answer, but Xavier said it in the current last message of this thread : We're trying to make the layout editor usable. Layout editor which is present from day one in the eclipse framework. You have to admit that it feels to us rushed out the door. And I was just hopelessly trying to make up a good excuses...Bosses are always a good excuse :D unreasonable to complain like this about something you are not paying anything for. You do realize that with no easy tools to work on the Framework you would have no developpers at all filling the Market with crapwares ? Beside to be honest, I'd rather pay $200 for a software that works with no glitches, and have support and bugs fixed quickly by a dedicated team, than no service at all and half cooked software that will probably someday be fixed. Although to be completely fair with the developer tools team, I never had a problem with this part of Android. I actually find it pretty stable. Let's make it clear because I intend to stay : I love Android, i love the idea behind Android, I love small startrek devices that knows your friends, your location, can make calls, take photos and videos, share them from where ever we are, tell you what that building is, find your way home(or away from home :), sing you songs while recording the pace at wich you runYou get the idea !! I believe it is only a communication problem. We can't get in touch with the Android Team, so the Android team should make it part of their daily job to get in touch with us. A four liner in an Android Developement blog from anyone inside the team feeling like it : Just finished implementing the buttonview in the new layout editor : Feeewww only 18 more widgets to go. Would make great wonders. you'd get supportive comments and all. Dianne, I promise i'll be your first cheerleader :DDD Keep up the work and keep us posted. Sorry for the length of the answer :s Yahel -- 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] Is Android's onTouchEvent() dispatching accurate??
I would say that this is normal behavior. The up-event can definitely have (and often has) another coordinate than the last move-event. But I don't think it has anything to do with inaccuracy in the touch event handling, it's simply the way it works... /Anders -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Peterdk Sent: den 6 juni 2010 17:30 To: Android Developers Subject: [android-developers] Is Android's onTouchEvent() dispatching accurate?? I have a weird bug in my piano app. Sometimes keys (and thus notes) hang. I did a lot of debugging and narrowed it down to what looks like androids inaccuracy of motion event handling: DEBUG/(2091): ACTION_DOWN A4 DEBUG/(2091): KeyDown: A4 DEBUG/(2091): ACTION_MOVE A4 = A4 DEBUG/(2091): ACTION_MOVE ignoring since equal note DEBUG/(2091): ACTION_MOVE A4 = A4 DEBUG/(2091): ACTION_MOVE ignoring since equal note DEBUG/(2091): ACTION_MOVE A4 = A4 DEBUG/(2091): ACTION_MOVE ignoring since equal note DEBUG/(2091): ACTION_UP B4 //HOW CAN THIS BE DEBUG/(2091): KeyUp: B4 DEBUG/(2091): Stream is null, can't stop DEBUG/(2091): Hanging Note: A4 X=240-287 EventX=292 Y=117-200 EventY=164 DEBUG/(2091): KeyUp Note: B4 X=288-335 EventX=292 Y=117-200 EventY=164 Clearly it can be seen here that out of nowhere I suddenly have an ACTION_UP for another note. Shouldn't I definitely get a ACTION_MOVE first? As shown in the end of the log, it's definitely not an error in region detection, since the ACTION_UP event is clearly in the B4 region. Every onTouchEvent() call is logged, so the log is accurate. The relevant pseudo-code for the ACTION_MOVE logging is: Key oldKey = Key.get(event.getHistoricalX(), event.getHistoricalY()); Key newKey = Key.get(event.getX(), event.getY()); Is this normal behaviour for Android (the jumping in coordinates)?? Can ACTION_UP events just arise without any previous ACTION_MOVE towards it coordinates?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to parse the xml from a httpresponse?
Hi , I have two queries based on XML parsing which comes as httpresponse. I am sending an httprequest to a site with a GET header. The response I expect is to be in XML. First, I need to know whether I am getting XML as the httpresponse. Is there any method which checks whether the received response is in XML or not? Second, I need help in parsing the XML which I get from the httpresponse. I am pasting a code snippet here which I have written : URL url = new URL(uri); //url URLConnection conn = url.openConnection(); HttpURLConnection httpcon = (HttpURLConnection)conn; httpcon.setRequestMethod(GET); httpcon.setDoInput(true); httpcon.setDoOutput(true); httpcon.setRequestProperty(, ); //request header SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); MySAXHandler xmlhandler = new MySAXHandler();//xml parsing file xr.setContentHandler(xmlhandler); //from here, i need to parse the xml from httpresponse, but dunno whether this code is right InputStream is = conn.getInputStream(); xr.parse(new InputSource(is)); ArrayListStoreClass arr = xmlhandler.getParsedData(); //for storing the elements in XML Can you guys look at the above code and tell me how to get the xml data from the httpresponse? Thanks, Ashok Jeevan -- 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: Post APK on the website
If you are using IIS as your webserver simply go : Start | administrative tools | Internet Service Manager (IIS) On the left pane select your server, in the right pane you'll be given a lot of options. Scroll down until you see Mime types. Double-click it, you'll see all the combination extension/mime type. Just add the one that String provided below : .apk application/vnd.android.package-archive Click ok. and you might have to restart the webserver. You're done. Yahel -- 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] Updated MultiTouchController.java for simplifying the development of multi-touch applications on Android
If anybody is creating multi-touch apps for Android, you may have noticed the MotionEvent class is getting more and more complicated over time. Additionally you may have discovered your code has different quirky behavior on different devices (e.g. on Synaptics devices, touch-down / touch-up can cause sudden jumps in pointer position before the down/up event is received). I have written a class to simplify the process of writing multi-touch applications for Android, and just updated it to Android 2.2 (and to handle 3+ touch points on true 2D multi-touch sensors, as present on the HTC Incredible and HTC EVO 4G), and moved the project to Google Code hosting: http://code.google.com/p/android-multitouch-controller/ There are numerous advantages to using this controller over trying to reinvent the wheel yourself, including simplicity and automatic device- space / object-space coordinate conversion for pinch-zoom. This also correctly centers the zoom of a pinch operation on the center of the pinch rather than the center of the screen, and supports simultaneous pinch-and-drag for more realistic pinching :-) -- 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: Updated MultiTouchController.java for simplifying the development of multi-touch applications on Android
I should add that I uploaded a significantly updated MultiTouch Visualizer 2 to the Market that uses this controller. It now supports 3+ touch points, and numbers all the touch points according to their pointer indices. It also shows the diagonal pinch diameter so that you can see how the pinch diameter doesn't get affected much when dual-touch operations snap together in X or Y on Synaptics devices like the G1 or the Nexus One. I hear the EVO 4G can support some large number of touch points, can somebody please test this? (...I had to change the package name of MultiTouch Visualizer, because I managed to lose the keystore password, so the old version is not there anymore and version 2 is a separate download :-) ...) On Jun 9, 7:00 am, luke luke.hu...@gmail.com wrote: If anybody is creating multi-touch apps for Android, you may have noticed the MotionEvent class is getting more and more complicated over time. Additionally you may have discovered your code has different quirky behavior on different devices (e.g. on Synaptics devices, touch-down / touch-up can cause sudden jumps in pointer position before the down/up event is received). I have written a class to simplify the process of writing multi-touch applications for Android, and just updated it to Android 2.2 (and to handle 3+ touch points on true 2D multi-touch sensors, as present on the HTC Incredible and HTC EVO 4G), and moved the project to Google Code hosting: http://code.google.com/p/android-multitouch-controller/ There are numerous advantages to using this controller over trying to reinvent the wheel yourself, including simplicity and automatic device- space / object-space coordinate conversion for pinch-zoom. This also correctly centers the zoom of a pinch operation on the center of the pinch rather than the center of the screen, and supports simultaneous pinch-and-drag for more realistic pinching :-) -- 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] how to read calendar
pramod.deore wrote: Can we read calendar in Vcard format? There is no Calendar in the Android SDK, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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: Developing Android REST client applications
Streets Of Boston wrote: Android guarantees that during a configuration change, no message will be posted to 'the' activity inbetween an onDestroy and an onCreate (i remember a post by Dianna about this). This means that the result from the onPostExecute either arrives before the activity is destroyed or after it is created (during a configuration change). Another variation on the theme is to have the AsyncTask not be a regular inner class, but a static inner class or public class. Then, have the activity return the AsyncTask itself in onRetainNonConfigurationInstance(). The activity associates itself with the task via accessor methods, detaching from the task in onRetainNonConfigurationInstance() and re-attaching itself in onCreate(). I need to give this code a greater workout, but it hasn't failed me yet. http://github.com/commonsguy/cw-android/tree/master/Rotation/RotationAsync -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- 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] Why is Android so buggy?
On 06/06/2010 11:25 PM, blahblah...@gmail.com wrote: It seems that Android is very buggy compared not only to the iPhone, but to pretty much any other software. It's not just minor bugs either - pretty much every developer will come across many serious bugs. Some examples: [...] Since this thread seems to be still alive, I wanted to add something about your comparison with the iPhone situation. As it happens, I have just started to use XCode for a customer's project. And what I can say is that it is all but bugfree. Since you are mainly mentioning developer tools bugs, I can mention a terrific bug in XCode, where the intellisense thing is completely messing up the edited content, as if it wasn't properly redrawn or something. It really feels like I've mistyped something, but is just gone whenever I move to another file and come back. This bug has occured about a dozen time in very short time, and this is just a standard leopard snow system with a recent XCode installed. In regard to documentation, the help browser is everything but handy. Help pages are like 12 meters (40 feets ;) long in height, and whenever you press back, you come back to the top of the page. I neither want to troll nor to start an endless discussion, but I really felt like clarifying certain points. iPhone and Android are trying to push tech limits, and thus there are inevitable bugs on both side, that's it. -- Olivier -- 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: Parsing heavy data
To address heavy data issue we parse it on a server into a compact binary form and unpack it on Android. Check out ambrosoft.com For lighter cases XPP is OK. On Jun 4, 8:48 am, mayank bisht mayank.and...@gmail.com wrote: I am calling webservices in my application . I got response with 10, data . i am using ksoap for parsing but dalvikvm showing me memory out of heap error. i know its so so much heavy data . How should i handle this problem ? what r the ways to solve this problem ? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@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] Why is Android so buggy?
OK, the only example you bring up about ANDROID itself is the IOException-part... That is not even a _bug_, that is a usage error. Have you ever used BSD sockets in most other OS:es? It's up to you to handle connection timeouts. TCP/IP over the globe, and over slow/delayed networks will sometime cause big delays, so you can't just abort within a milli-second each time. The other stuff is about developer environment specific stuff, and of them only one is a real bug.. (The crash of the layout editor, which I agree is serious, but I never used it myself so I don't know if it affects many people..) Reg. Anton On Sun, Jun 6, 2010 at 11:25 PM, blahblah...@gmail.com blahblah...@gmail.com wrote: It seems that Android is very buggy compared not only to the iPhone, but to pretty much any other software. It's not just minor bugs either - pretty much every developer will come across many serious bugs. Some examples: - When you run the sdk setup.exe, the very first thing that happens is that it informs you that it can't connect using https, so you have to change the options to use 'http' instead. This appears to be a bug in the .exe rather than any kind of user issue because the https url works fine in the browser and this error seems to affect everyone. Sure, it's trivial to work around (just do a google search and you figure it out in 5 seconds), but the user shouldn't have to do that. It makes it look unprofessional. - When you view a TabWidget in the layout editor it crashes. - Every time you run an app in the emulator, it starts off with the screen locked so you need to press the Menu key. - Various socket bugs (or perhaps all the same bug) related to IOException not happening. Even something as simple as just trying to connect to a remote host that is not listening will cause it to hang instead of immediately returning an error. All of these bugs have been logged for months (some by me, some by other people) with no indication of any fix. At the moment I'm just using the emulator, but I'm wondering if the phones themselves are this buggy or if all the bugs are just in the development environment and emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why is Android so buggy?
Also, we have been accepting an increasing number of patches from the community. I have regularly been reviewing and accepting multiple patches every week, as have other framework engineers. Ok, i'm no C or C++ developper so I can't help you here... BUT ... Where is the git module and fake but consistent DataSet for the Android Market ?? Give us those and you'll get a HUGE number of patches to review and integrate :D I'm not kidding here, why wouldn't you open source the market, not the data from the market but the market source itself. I assure you that there is nothing here patentable or worth of competitors envy :D No really could that be possible ? Yahel -- 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] Why is Android so buggy?
On 06/09/2010 01:29 PM, Anton Persson wrote: OK, the only example you bring up about ANDROID itself is the IOException-part... That is not even a _bug_, that is a usage error. Have you ever used BSD sockets in most other OS:es? It's up to you to handle connection timeouts. TCP/IP over the globe, and over slow/delayed networks will sometime cause big delays, so you can't just abort within a milli-second each time. It's true that I did see my HTTP clients hanging before I fully read the docs and understood that I had to set specific timeouts. The other stuff is about developer environment specific stuff, and of them only one is a real bug.. (The crash of the layout editor, which I agree is serious, but I never used it myself so I don't know if it affects many people..) In this regard, I have to say that I just love the readability of Android XML layouts, as compared to Interface Builder so-called NIB files, where you have to cycle through all those little tabs in tiny windows to understand what's going on... Having a couple of bugs in the layout editor is really a minor issue compared to this. PS: I will not troll, I will not troll... ;) -- Olivier -- 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: Updated MultiTouchController.java for simplifying the development of multi-touch applications on Android
OK, the first review of MultiTouch Visualizer 2 on the Market says that the app only shows one touch point on the HTC Incredible. It works fine on the Nexus One. Can anybody please test this on an Incredible for me, or even better, can anyone with an Incredible please put a few Log.i() statements in the code and see how the second touch point is getting lost on the Incredible? The code for the visualizer (and the controller, you'll need both) is here: http://code.google.com/p/android-multitouch-vizualizer http://code.google.com/p/android-multitouch-controller There's really no reason this should work on the Nexus One and not at all on the Incredible. On Jun 9, 7:11 am, luke luke.hu...@gmail.com wrote: I should add that I uploaded a significantly updated MultiTouch Visualizer 2 to the Market that uses this controller. It now supports 3+ touch points, and numbers all the touch points according to their pointer indices. It also shows the diagonal pinch diameter so that you can see how the pinch diameter doesn't get affected much when dual-touch operations snap together in X or Y on Synaptics devices like the G1 or the Nexus One. I hear the EVO 4G can support some large number of touch points, can somebody please test this? (...I had to change the package name of MultiTouch Visualizer, because I managed to lose the keystore password, so the old version is not there anymore and version 2 is a separate download :-) ...) On Jun 9, 7:00 am, luke luke.hu...@gmail.com wrote: If anybody is creating multi-touch apps for Android, you may have noticed the MotionEvent class is getting more and more complicated over time. Additionally you may have discovered your code has different quirky behavior on different devices (e.g. on Synaptics devices, touch-down / touch-up can cause sudden jumps in pointer position before the down/up event is received). I have written a class to simplify the process of writing multi-touch applications for Android, and just updated it to Android 2.2 (and to handle 3+ touch points on true 2D multi-touch sensors, as present on the HTC Incredible and HTC EVO 4G), and moved the project to Google Code hosting: http://code.google.com/p/android-multitouch-controller/ There are numerous advantages to using this controller over trying to reinvent the wheel yourself, including simplicity and automatic device- space / object-space coordinate conversion for pinch-zoom. This also correctly centers the zoom of a pinch operation on the center of the pinch rather than the center of the screen, and supports simultaneous pinch-and-drag for more realistic pinching :-) -- 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: Create Wav File
Thanks for the link. I hoped there was a direct way to write a wav (like audiotrack to file) I think I will rather do it directly in my native library then (as I already have all the stuff to do it in c++) -- 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: Updated MultiTouchController.java for simplifying the development of multi-touch applications on Android
OK, I found the problem with running the controller on Android-2.1, and updated the code in the android-multitouch-controller project linked above. If somebody could please test on 2.1 and/or 2.0.x I would greatly appreciate it, I only have an Android-2.2 device. Thanks! On Jun 9, 7:47 am, luke luke.hu...@gmail.com wrote: OK, the first review of MultiTouch Visualizer 2 on the Market says that the app only shows one touch point on the HTC Incredible. It works fine on the Nexus One. Can anybody please test this on an Incredible for me, or even better, can anyone with an Incredible please put a few Log.i() statements in the code and see how the second touch point is getting lost on the Incredible? The code for the visualizer (and the controller, you'll need both) is here: http://code.google.com/p/android-multitouch-vizualizerhttp://code.google.com/p/android-multitouch-controller There's really no reason this should work on the Nexus One and not at all on the Incredible. On Jun 9, 7:11 am, luke luke.hu...@gmail.com wrote: I should add that I uploaded a significantly updated MultiTouch Visualizer 2 to the Market that uses this controller. It now supports 3+ touch points, and numbers all the touch points according to their pointer indices. It also shows the diagonal pinch diameter so that you can see how the pinch diameter doesn't get affected much when dual-touch operations snap together in X or Y on Synaptics devices like the G1 or the Nexus One. I hear the EVO 4G can support some large number of touch points, can somebody please test this? (...I had to change the package name of MultiTouch Visualizer, because I managed to lose the keystore password, so the old version is not there anymore and version 2 is a separate download :-) ...) On Jun 9, 7:00 am, luke luke.hu...@gmail.com wrote: If anybody is creating multi-touch apps for Android, you may have noticed the MotionEvent class is getting more and more complicated over time. Additionally you may have discovered your code has different quirky behavior on different devices (e.g. on Synaptics devices, touch-down / touch-up can cause sudden jumps in pointer position before the down/up event is received). I have written a class to simplify the process of writing multi-touch applications for Android, and just updated it to Android 2.2 (and to handle 3+ touch points on true 2D multi-touch sensors, as present on the HTC Incredible and HTC EVO 4G), and moved the project to Google Code hosting: http://code.google.com/p/android-multitouch-controller/ There are numerous advantages to using this controller over trying to reinvent the wheel yourself, including simplicity and automatic device- space / object-space coordinate conversion for pinch-zoom. This also correctly centers the zoom of a pinch operation on the center of the pinch rather than the center of the screen, and supports simultaneous pinch-and-drag for more realistic pinching :-) -- 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 in getting height of contetn in Webview
hello, I have a HTML file in a web view. I want to find the length of the content of that HTML file. I have tried all methods like *getContentHeight*() and *getHeight*() but it doesn't gave me the exact height which i want. There is one Protected method in View class *computeVerticalScrollRange*() so if any one knows how to use this method in webview than please reply. If there is any alternative to find content height than please let me know. -- Regards, Brijesh Masrani -- 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 in getting height of contetn in Webview
hello, I have a HTML file in a web view. I want to find the length of the content of that HTML file. I have tried all methods like *getContentHeight*() and *getHeight*() but it doesn't gave me the exact height which i want. There is one Protected method in View class *computeVerticalScrollRange*() so if any one knows how to use this method in webview than please reply. If there is any alternative to find content height than please let me know. -- Regards, Brijesh Masrani -- 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 send mms from my code
hi guys, According to the site this is the code Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(sms_body, body); Log.d(MMS URI, mms_uri); mms_uri == content://media/external/images/thumbnails/0 sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(mms_uri)); sendIntent.setType(image/png); startActivity(sendIntent); so to whom is this message is going. recipient is not mention here?? how to set it?? regards, Mike -- 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: Text to speech unfunctional
Its works out for me now . Cheers : Uander On Wed, Jun 9, 2010 at 4:58 PM, Uander uandro...@gmail.com wrote: Hello , Proceeding ahead on this issue . Now I generated a sample application mytest.apk using attached code mytest.java . I follow step mentioned in http://www.yuanma.org/eng/?p=28, compiled code and generated attached apk (TTS.apk) . My sdcard has all voice data installed (espeak+svox) . When I run this apk on my board , it shows Hello world in screen but then it prompts to install TTS library , when clicked on the option it says process myTest has stopped unexpectedly . I have installed voice data , then which TTS library to install from *http://code.google.com/p/eyes-free/downloads/list http://code.google.com/p/eyes-free/downloads/list* so as my apk speach out Hello world ? ? Please fin attached java code , TTS.apk and log file . Log says here : E/dalvikvm( 5124): Could not find class 'com.google.tts.PrefsActivity', referenced from method com.google.tts.ConfigurationManager.onCreate W/System.err( 5124): android.content.pm.PackageManager$NameNotFoundException: Application package com.google.tts not found W/ActivityManager( 987): Unable to start service Intent { act=android.intent.action.USE_TTS cat=[android.intent.category.TTS] }: not found Please help me out on this issue . Thanks : Uander * http://code.google.com/p/eyes-free/downloads/list* On Wed, Jun 9, 2010 at 2:23 PM, Uander uandro...@gmail.com wrote: *Hi , * *Well , I installed com.svox*.langpack.installer_1.0.1.*apk to my /system/app that actuall install voice data (en_*.bin) files in my /sdcard/svox location .* *Now Mainmenu-settings-Text to speech has install voice data option disabled and other options are enabled now . * *That means voice data is installed now in my sdcard . I have TtsService.apk in my /system/app --so tts library is installed also . Now what to do ?? I * ** *I want to know how to use this TTS .. Is there a sample apllication apk that make things clear to me . * ** ** *Thanks : * *UAnder * . On Mon, Jun 7, 2010 at 5:10 AM, Uander uandro...@gmail.com wrote: Does this link would be indirection for my issue ? http://andappstore.com/AndroidApplications/apps/210486 its asking for language installer apk to be loadedd in /sdcard/* location . what steps are required basically to enable TTS ? and how can one make use of it ? Thanks : Uander On Mon, Jun 7, 2010 at 1:32 AM, Uander uandro...@gmail.com wrote: Hi All , we have ported android 2.1 on one of our custom board . I was checking Text to speech functionality on it . I click Settings-Text to Speech . ..it gives n new screen All options other than Install voice data is greyed out . When I click on install voice data . it says The application Pico TTS has stoppped unexpectedly. PLease try again Can anyone point me what is the issue or how to install voice data on my board having eclair 2.1 . Thanks : Uander -- 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: ListView problem - items are shrank when while scrolling the view
Hi Mort, I just tried it again and i changed getItemViewTypeCount to getViewTypeCount and it is working as expected. Actually it even fixed some other issues that I had with the ListView thanks On Jun 9, 10:38 am, zohar lerman lirazo...@gmail.com wrote: Thanks for your help but it still shrink the image. about the criteria: I have different criteria but to make it easy to explain i prefer this one. On Jun 9, 8:56 am, mort m...@sto-helit.de wrote: I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android knows there are different views for the items. Example (untested ugly style): public int getItemViewType(int position) { if ( position == 5 ) return 1; else return 0; } public int getItemViewTypeCount() { return 2; } public View getView(int position, View convertView, ViewGroup parent) { if ( getItemViewType(position) == 1 ) { return imgView; } else { TextView tv; if ( convertView != null ) { // Do this to save memory! tv = (TextView) convertView; } else { tv = new TextView(TestActivity.this); } tv.setText(Entry #+position); tv.setMinimumHeight(50); tv.setBackgroundColor(Color.DKGRAY); return tv; } } btw: Querying a fixed position might be a bad idea in the long run. Isn't there a better criteria? -- 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: How to send mms from my code
It opens the SMS app so you can enter the contact number, see my email earlier. On Wed, Jun 9, 2010 at 2:25 PM, mike hasitharand...@gmail.com wrote: hi guys, According to the site this is the code Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(sms_body, body); Log.d(MMS URI, mms_uri); mms_uri == content://media/external/images/thumbnails/0 sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(mms_uri)); sendIntent.setType(image/png); startActivity(sendIntent); so to whom is this message is going. recipient is not mention here?? how to set it?? regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Call Log on HTC Hero
Hi, I have an app that changes the number being called and updates the call log after the call to keep the original number. In the emulator (and on most devices) everything works fine but on the HTC Hero I can't seem to update the number in the Call Log. I run an update but nothing happens. Until recently I was using Android 1.5 on the Hero and I could work around this issue by deleting the log entry and creating a new one with all the same data, but after upgrading to 2.1 I can still delete the old entry but when I insert the new one the only info that gets inserted are the phone number, call type and time of call. The contact name and number type don't get saved and it always shows on the log as an unknown number. It sounds to me like HTC's sense UI breaks the call log somehow. Has anyone seen this issue and has a workaround for it? Or is there something I might be missing about the call log? Ultimately it's a database, right? So there must be a way to do it if I have access to the database. Thanks in advance, Denis Souza -- 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: Developing Android REST client applications
Yep, that's the idea :-) And i hasn't failed me yet, either :) In my app using AsyncTasks, i take great care to not construct instances of inner-classes that are AsyncTasks or that are the callbacks that the AsyncTasks' onPostExecute calls. This is to avoid implicit references to activities held by static/global objects. All the AsyncTasks instances and the callback-classes are defined as static and hold at most a reference to the application-context. On Jun 9, 7:19 am, Mark Murphy mmur...@commonsware.com wrote: Streets Of Boston wrote: Android guarantees that during a configuration change, no message will be posted to 'the' activity inbetween an onDestroy and an onCreate (i remember a post by Dianna about this). This means that the result from the onPostExecute either arrives before the activity is destroyed or after it is created (during a configuration change). Another variation on the theme is to have the AsyncTask not be a regular inner class, but a static inner class or public class. Then, have the activity return the AsyncTask itself in onRetainNonConfigurationInstance(). The activity associates itself with the task via accessor methods, detaching from the task in onRetainNonConfigurationInstance() and re-attaching itself in onCreate(). I need to give this code a greater workout, but it hasn't failed me yet. http://github.com/commonsguy/cw-android/tree/master/Rotation/Rotation... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org -- 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] Call Log on HTC Hero
Denis Souza wrote: Ultimately it's a database, right? So there must be a way to do it if I have access to the database. You do not have access to the database. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- 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] Receiving MMS
hi guys, is it possible to receive MMS pro grammatically in Android. couldn't find a way to achieve this this. i have successfully on receiving sms messages in android. this is how i have achieved it @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub Bundle bundle = intent.getExtras(); SmsMessage[] msgs = null; NotificationManager manager; String[] values; // String str = ; if (bundle != null) { // ---retrieve the SMS message received--- Object[] pdus = (Object[]) bundle.get(pdus); msgs = new SmsMessage[pdus.length]; String number = null; String body = null; String msg[] = null; for (int i = 0; i msgs.length; i++) { msgs[i] = SmsMessage.createFromPdu((byte[]) pdus[i]); number = msgs[i].getOriginatingAddress(); body = msgs[i].getMessageBody().toString().trim(); msg = new String[] { number, body }; } } like this is there a way to receive MMS?? your help is greatly appreciated... regards, Mike -- 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: Adsense for mobile vs Admob
Ken, not sure whether you got permission from Google to share your revenues ;-) but many people has very similar experience with mobile ads. IMHO everybody has similar CTR and this is not serious model how to finance development of mobile apps. Hope Google understands it too and opens AM for paid apps from/for other countries. Tom On 8 čvn, 21:34, Ken ken0624...@gmail.com wrote: Hi, I got accepted into Adsense for Mobile yesterday. Right now my app is running with Admob and generating about $6+ a day with 70k impressions (CTR ranges from 0.2% to 0.3%) . Just wondering if someone has experience with both Admob and Adsense, if so would you suggest changing to Adsense? Thanks. Ken -- 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 send mms from my code
Hi Sean, didn't get it at all. can you give me an example?? regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ListView
On Tue, Jun 8, 2010 at 9:19 PM, schwiz sch...@gmail.com wrote: There has got to be an example of this somewhere in the source code to Launcher2 or somewhere in the 2.x framework, this is exactly what they do for contacts in 2.x What they do for contacts, I believe, is a PopupWindow, not another ListView embedded in a the main ListView, which I really don't think is possible anyway since you can't have a scrollable item inside another scrollable item. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: Adsense for mobile vs Admob
I think instead of using a single Ad Network, I use mobclix, which gives me approx 4-5$ in approx 8K impressions. it is good, and my app active install is approx 11K, I had very bad experience with admob. almost $1-2 with 11k impressions approx. Thanks Abdul Mateen. 2010/6/9 Tomáš Hubálek tom.huba...@gmail.com Ken, not sure whether you got permission from Google to share your revenues ;-) but many people has very similar experience with mobile ads. IMHO everybody has similar CTR and this is not serious model how to finance development of mobile apps. Hope Google understands it too and opens AM for paid apps from/for other countries. Tom On 8 čvn, 21:34, Ken ken0624...@gmail.com wrote: Hi, I got accepted into Adsense for Mobile yesterday. Right now my app is running with Admob and generating about $6+ a day with 70k impressions (CTR ranges from 0.2% to 0.3%) . Just wondering if someone has experience with both Admob and Adsense, if so would you suggest changing to Adsense? Thanks. Ken -- 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 -- Regards, Abdul Mateen, Software Engineer at Rounded Labs Ltd. Linux Administrator at Addictive Mobility Inc Mobile : +92-333-3265875. -- 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] automatically turn on application
Can I kick start my application automatically based on accelerometer data from a no app running state? For e.g. if the phone is subjected to strong vibrations, the application turns on. In other words, how can I read accelerometer w/o really having an application do it? Thanks, Abhi -- 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] Why Activity with Translucent background can not finish immediately?
Hi All, I am now trying to create an activity with android:style/ Theme.Translucent.NoTitleBar. But I found that when I used activity.finish() to destroy itself, the onPause()/onStop()/onDestroy() is not called by framework immediately. Not until I finish the activity below, or, create another instance of the same type. Can anybody tell me why and how to avoid this to get current activity destroyed immediately? Thank you very much. B.R. -Robin -- 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] Converting audio format
My app captures audio to PCM (.wav) format using android.media.AudioRecord. Now, I'd like to convert the captured audio to a compressed format (MP3 or anything else reasonably standard). I can't find how to do this. Is there any supported way? Thanks, David -- 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: How to send mms from my code
Mike, I can do a little more than that, I can give you a fully working unit test with the phone number pre-populated in the From: field: package com.seanhodges.sandbox; import android.content.Intent; import android.net.Uri; import android.test.AndroidTestCase; public class SendAnMMS extends AndroidTestCase { public void testSendingAnMMS() throws Exception { Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(address, 12345); intent.putExtra(sms_body, See attached picture); intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(content://media/external/images/thumbnails/0)); intent.setType(image/png); // This is added just so the AndroidTestCase launches the activity as expected, remove this line in your production code intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getContext().startActivity(intent); } } If the referenced image does not exist, you should get a warning pop-up when the SMS app launches. On Wed, Jun 9, 2010 at 3:57 PM, mike hasitharand...@gmail.com wrote: Hi Sean, didn't get it at all. can you give me an example?? regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] automatically turn on application
You might be able to use a Service and SensorListener for this, you will need to work out how often you would want to run the Service to poll the accelerometer for movement, as frequent polling will drain the battery. I've also read that the sensors can stop returning results when the screen goes to sleep (as a battery saving action), you might be able to get around this by applying a PARTIAL_WAKELOCK for each poll. Once you've detected sensor movement, a simple startActivity(this, YourAppActivity.class); should kick start your application. On Wed, Jun 9, 2010 at 4:07 PM, Abhi abhishek.r.sha...@gmail.com wrote: Can I kick start my application automatically based on accelerometer data from a no app running state? For e.g. if the phone is subjected to strong vibrations, the application turns on. In other words, how can I read accelerometer w/o really having an application do it? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to parse the xml from a httpresponse?
Looks pretty good. Here's what I usually do: SAXParserFactory spf = SAXParserFactory.newInstance(); parser = spf.newSAXParser(); connection = url.openConnection(); parser.parse(connection.getInputStream(), myHandler); I'm not sure if you are using XMLReader correctly. -- 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: prob in attaching txt file while email from internal package file storage
Please go back and re-read my previous message, starting with HOWEVER. I answered this question there. You CANNOT attach files from your app's internal directory. The mail app has no access to that file, it is private to your application. This is the intended behavior. If you want to provide that content to the mail application, you will have to do so via a content provider. On Jun 8, 8:51 pm, adag adjo...@googlemail.com wrote: Hello Bob, Thanks for your suggestion. I have two questions to you.. How do I attach with EXTRA_STREAM in that case while I put the file with Uri.fromFile(). File dirFile = getFilesDir(); File zibraFile = new File(dirFile,zibra.csv); Uri zibraUri = Uri.fromFile(zibraFile); sendIntent.putExtra(Intent.EXTRA_STREAM, zibraUri); But the email does not carry any attachement. Any solution please Please provide any solution as I am unable to attach the file from internal directory. ag On Jun 9, 3:23 am, Bob Kerns r...@acm.org wrote: Please do not construct filenames and Uri's by pasting together strings. The correct way to write this is: Uri.fromFile(new File(Environment.getExternalStorageDirectory(), zibra.txt)) or to make it a bit more clear: File dirFile = Environment.getExternalStorageDirectory(); File zibraFile = new File(dir, zibra.txt); Uri zibraUri = Uri.fromFile(zibraFile); Or, if you need a URI instead of a Uri: URI zibraURI = zibraFile.toURI(); There's also File.toURL(). HOWEVER, the documentation for Intent.EXTRA_STREAM says you need a content: URI (I presume that should be Uri?), not a file: one. If you want to give the other application access to your app's data, create a content provider. Applications don't have access to files belonging to other applications. A content provider (and content: URI) give your application control over what information to make available, and to whom. On Jun 7, 10:33 pm, adag adjo...@googlemail.com wrote: Hello, I am successful in creating file using openFileOutput(). and can read the file using openFileInput(). I am able attach file from external storage sdcard while emailing the same using getExternalStorageDirectory as sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file://+Environment.getExternalStorageDirectory()+/ zibra.txt)); But while trying to attach file from the openOutputFile stored area using sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file://+ getFilesDir() + /zibra.txt));, resulting emptied file emailing. My file is stored in /data/data/com.example/files/zibra.txt. Could you please point out what is going wrong in it? Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_EMAIL, recipients); sendIntent.putExtra(Intent.EXTRA_SUBJECT, attachment test); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse (file://+ getFilesDir() + /zibra.txt)); //(file://+Environment.getExternalStorageDirectory()+/ zibra.txt)); sendIntent.setType(text/plain); startActivity(Intent.createChooser(sendIntent, Send mail...)); -- 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] Why is Android so buggy?
On Wed, Jun 9, 2010 at 4:29 AM, Anton Persson don.juan...@gmail.com wrote: The other stuff is about developer environment specific stuff, and of them only one is a real bug.. (The crash of the layout editor, which I agree is serious, but I never used it myself so I don't know if it affects many people..) Just FYI for those who never used the editor, it's not an Eclipse crash. it's just the rendering that fails until you fix your layout. Eclipse is still usable but you have to switch to XML view to edit the layout. If you ran your app with such a layout, your app WOULD crash though. Is it a problem? Yes. Is it a major problem? Well it happens with one finicky widget that you're usually dropping once in a layout (it's not like it's a problem with buttons of checkboxes that you use all the time). Anyway, just explaining why it's been a low priority bug on our list. We've decided to add some much needed features (like Library Projects) instead of making the layout editor perfect, mostly because the editor can be used with a mix of the XML editor and the rendering for preview. We *are* working on it now though. Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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] ContactContracts
My application user registers a phone number, name or an email ID with my application. Now given one of these, I want to lookup the ContactsContract provider and get the others. Given 1. the email: I am querying ContactsContract.CommonDataKinds.Email.CONTENT_LOOKUP_URI and getting {ContactsContract.CommonDataKinds.Email.CONTACT_ID, ContactsContract.Data.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.NUMBER}. This works. 2. given the number, I want to use the PhoneLookup.CONTENT_FILTER_URI. I can get the name using DISPLAY_NAME, but I cant get the email, so I'll have to use the CONTACT_ID. So in this table, does _ID correspond to CONTACT_ID? 3. given the name, I have to use the DATA table, and I can get the number. For the email I have to get the CONTACT_ID and read the email from where? Is my assumption that CONTACT_ID can get us name, number, email and the contact's picture information correct? Do _IDs correspond to CONTACT_ID (of course not at all places, but if a record is about a user, can I assume that _ID = CONTACT_ID). Is there any better way to do this? I do it only once for the whole app's lifetime so I can compromise on efficiency for correctness: the phone numbers and name inputs to my app can be malformatted, and I want ContactsContract to help me out here. Any suggestions? -- 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: ListView
Would it possible to have a gallary inside a ListView? Thanks, Sandy On Jun 9, 10:01 am, TreKing treking...@gmail.com wrote: On Tue, Jun 8, 2010 at 9:19 PM, schwiz sch...@gmail.com wrote: There has got to be an example of this somewhere in the source code to Launcher2 or somewhere in the 2.x framework, this is exactly what they do for contacts in 2.x What they do for contacts, I believe, is a PopupWindow, not another ListView embedded in a the main ListView, which I really don't think is possible anyway since you can't have a scrollable item inside another scrollable item. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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: Why is Android so buggy?
I think I'll rather live with some bugs in the SDK than do without it. Overall I think its very good and productive. I also appreciate the fact that it includes features that might be seen as prototypes; I'm a developer I can deal with it, I can decide myself what I want to use. I never worked with iPhone, so I don't know how it compares. But if their SDK is (perceived as) higher quality , to me that can only mean that they rather hold back on features, than risk getting bad press for quality issues. They may also hold back on features for other reasons, of course. For normal (and closed) software, it's probably a good strategy to be a bit feature conservative. But for me, I'd say if it's useful, then release it. If it's buggy/prototype, then warn me about it, but let me choose. Don't hold back just cause you think i'm not able to handle it. I know all software has bugs, and I can decide myself if something is worth using or not, thank you very much. But again, I don't think the Android SDK has any quality issues worth moaning about. Some minor bugs here and there, nothing major. My $0.02. -- 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] source code help - reading framebuffer using glReadPixels
Hi, I am new to Android development and working on an assignment to read the framebuffer after some time interval and save it as an image. I have come up with the following code initially only for reading and saving the framebuffer, but this is not working and giving a run time error. The emulator says that the application stopped unexpectedly, Please try again This is the current code: (I am using the Android 2.2 with API level 8 virtual device for testing, I don't have a physical device at the moment) public class mainActivity extends Activity { Bitmap mSavedBM; private EGL10 egl; private EGLDisplay display; private EGLConfig config; private EGLSurface surface; private EGLContext eglContext; private GL11 gl; protected int width, height; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // get the screen width and height DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); int screenWidth = dm.widthPixels; int screenHeight = dm.heightPixels; String SCREENSHOT_DIR = /screenshots; initGLFr(); //GlView initialized. savePixels( 0, 10, screenWidth, screenHeight, gl); //this gets the screen to the mSavedBM. saveBitmap(mSavedBM, SCREENSHOT_DIR, capturedImage); //Now we need to save the bitmap (the screen capture) to some location. setContentView(R.layout.main); //This displays the content on the screen } private void initGLFr() { egl = (EGL10) EGLContext.getEGL(); display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); int[] ver = new int[2]; egl.eglInitialize(display, ver); int[] configSpec = {EGL10.EGL_NONE}; EGLConfig[] configOut = new EGLConfig[1]; int[] nConfig = new int[1]; egl.eglChooseConfig(display, configSpec, configOut, 1, nConfig); config = configOut[0]; eglContext = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, null); surface = egl.eglCreateWindowSurface(display, config, SurfaceHolder.SURFACE_TYPE_GPU, null); egl.eglMakeCurrent(display, surface, surface, eglContext); gl = (GL11) eglContext.getGL(); } public void savePixels(int x, int y, int w, int h, GL10 gl) { if (gl == null) return; synchronized (this) { if (mSavedBM != null) { mSavedBM.recycle(); mSavedBM = null; } } int b[] = new int[w * (y + h)]; int bt[] = new int[w * h]; IntBuffer ib = IntBuffer.wrap(b); ib.position(0); gl.glReadPixels(x, 0, w, y + h, GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE,ib); for (int i = 0, k = 0; i h; i++, k++) { //OpenGLbitmap is incompatible with Android bitmap //and so, some corrections need to be done. for (int j = 0; j w; j++) { int pix = b[i * w + j]; int pb = (pix 16) 0xff; int pr = (pix 16) 0x00ff; int pix1 = (pix 0xff00ff00) | pr | pb; bt[(h - k - 1) * w + j] = pix1; } } Bitmap sb = Bitmap.createBitmap(bt, w, h, Bitmap.Config.ARGB_); synchronized (this) { mSavedBM = sb; } } static String saveBitmap(Bitmap bitmap, String dir, String baseName) { try { File sdcard = Environment.getExternalStorageDirectory(); File pictureDir = new File(sdcard, dir); pictureDir.mkdirs(); File f = null; for (int i = 1; i 200; ++i) { String name = baseName + i + .png; f = new File(pictureDir, name); if (!f.exists()) { break; } } if (!f.exists()) { String name = f.getAbsolutePath(); FileOutputStream fos = new FileOutputStream(name); bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos); fos.flush(); fos.close(); return name; } } catch (Exception e) { } finally { /* if (fos != null) { fos.close(); } */ } return null; } } Also, if someone can point me to sample code/tutorial to get this work done through the NDK r4. I have read that the NDK r4 supports the opengl es 1.1 and 2.0. From the previous posts in this group I know that we can not access the framebuffer directly using the /dev/graphics/fb0. Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to
[android-developers] CheckedTextView - only can select once checkbox
I'm really frusterated at this point, three days in. I've put many hours into this issu and am no closer to having a working (let alone proper) solution. Why is this so painful to accomplish I wonder aloud. Problem: I've got a a ListView which has a row.xml for each row in the ListView. That file has two TextView's, ImageView, and a CheckedTextView. Now, I can get one CheckedTextView to become checked by pressing on its UI area. But, I cannnot not check any other unchecked checkbox in the ListView. Further more I see checkboxes when I scroll down that have checkmarks in them where I did not check such myself. So, what is the issue? One of you google engineers surely can explain this to us end-devs, better yet please supply a sample project. I have each row also where the user can select a file and work is done with it when that path is pasted back to the main activity (which works fine). I have half the hair I had 72 hours ago (because I pulled half out). Please, please help those of us struggling with this important feature (CheckedTextView). As I see several posts about this, anything from implement Clickable on the class (which I did, both trying on the main java file and as a helper class) to CheckedTextView has to be the parent in the xml file (not say a LinearLayout for example). Please.. help... drowing . in ... stess. Thank 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
[android-developers] how to deleted contact group
i am writing a application of backup contacts. i need to delete contacts and groups before restore from backup file. the contacts were deleted but the gourps were not .who can tell me how to do it. getContentResolver().delete( ContactsContract.RawContacts.CONTENT_URI, null, null); String where = ContactsContract.Data.MIMETYPE + = ?; String[] whereParameters = new String[] { GroupMembership.CONTENT_ITEM_TYPE }; getContentResolver().delete( ContactsContract.Data.CONTENT_URI, where, whereParameters); getContentResolver().delete( ContactsContract.Groups.CONTENT_URI, ContactsContract.Groups.SYSTEM_ID + is null and + ContactsContract.Groups._ID + + GROUP_ID_STARRED_IN_ANDROID, null); // notify registered observers that a row was updated getContentResolver().notifyChange(ContactsContract.Groups.CONTENT_URI, null); -- 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: 最近写了两个应 用,MMTimer,火车余票查询
MMTimer应该是将一个日本的美女举牌报时网站的创意抄过来的,人家只做了iPhone的版本,还没做Android的,这位仁兄可捷足先登了哈~ 在 2010年6月6日 上午1:58, googooda...@gmail.com写道: 我们该想想了:As Jobs said Android Market 只有情色内容吗? 2010/6/5 igo where wuzeju...@gmail.com hi,Bob kerms,I have another problem. I use two TimerTaskto update the widget,one widget in every one minute,and one in everyone seconds.but it doesn't work. When the widget receive the onUpdate Message I start a server to do this, but It just update ones, would you tell me how to update the widget in fix time,thanks. -- Sometime write some code Interest in Android Wu Zejun 在 2010年6月5日 下午3:12,Bob Kerns r...@acm.org写道: I'm not sure exactly what the process is bad error message means. I've seen it, but it hasn't been a persistent problem. Maybe someone else here knows? Have you tried rebooting your device? That's fixed the problem for me and others. Another possibility is this: http://osdir.com/ml/AndroidDevelopers/2009-05/msg01967.html One thing I can think of to try, is to arrange to have your process running as a service, started with a BOOT_COMPLETED broadcast receiver. (This isn't a solution, but it might help understand the problem). I'd also make sure your widget handler methods all have try/catch blocks so they don't throw out of them; perhaps that would interfere with the system's proper management of the process lifecycle. Please don't post advertisements in this group. It interferes with the purpose of the group -- answering questions like this! Thanks. On Jun 4, 9:32 pm, igo where wuzeju...@gmail.com wrote: hi,thanks for you help.I post it is really to be a ad. when i use the widget, i occur the following issue. 05-28 12:01:14.937: WARN/ActivityManager(52): Unable to launch app com.mmtimer/10024 for broadcast Intent { act=android.appwidget.action. APPWIDGET_ENABLED cmp=com.mmtimer/.MMWidget }: process is bad 05-28 12:01:14.947: WARN/ActivityManager(52): Unable to launch app com.mmtimer/10024 for broadcast Intent { act=android.appwidget.action.APPWIDGET_UPDATE cmp=com.mmtimer/.MMWidget (has extras) }: process is bad. And I had try what I can do, but it also can't work. so,Could you like help me ,thanks. 在 2010年6月5日 上午9:45,Bob Kerns r...@acm.org写道: It seems (using Google's translation service) that you say you have a problem, but do you have a question? This looks to me more like an ad On Jun 4, 2:33 am, igo where wuzeju...@gmail.com wrote: I train ticket query * * http://www.androidin.net/bbs/android-110739-1-1.html * MMTimer * http://www.androidin.net/bbs/android-110551-1-1.htmlMMTimerthewidget in question, have not yet released, the update of the widget is not very clear, a problem.Later still need everyone's help, have encountered a problem updating.MMTimer you have a 1440 times a day love.* Main function-MMTimer automatically updates every minute, switch to a different picture, one minute a picture of a happy, smiling an hour 60, day 1440 meeting date.- Low system resources occupancy;- Provide high-definition real timekeeping picture to see time to see beautiful things correct;- With off-line database, an image calculated by 30K an hour is 1800K, the day is 1800 * 24/1024 = 42M, save you valuable traffic;- To provide different versions of the newspaper theme, beautiful car models currently provide temporary version, street version of beauty, street beauty Edition II, the follow-up to introduce more versions;- Beautiful car models and street beauty Edition II Edition as the server instability, a small amount of data loss, but does not affect the use, the user can customize the image; Beauty of data we canhttps: / / code.google.com / p / mmtimer / downloadsDepartment for download, put / sdcard / MMTimer directory;- Can customize the different times of MM or handsome pot;- Customize a different version of the time, family friends, etc. are all OK;- Provide save, when you can see your favorite MM; We are interested to support it, huh, huh. *火车余票查询* http://www.androidin.net/bbs/android-110739-1-1.html *MMTimer* http://www.androidin.net/bbs/android-110551-1-1.html MMTimer的widget有问题,现在还没有放出来,对widget的更新还不是很清楚,有点问题。稍后还需要大家的帮忙,遇到了更新问题了。 MMTimer让您每天拥有1440次恋爱。 *主要功能 -MMTimer每一分钟自动更新内容,更换不同的照片,一分钟一张图片,一份欣 喜,一小时60张微笑,一天1440次约会。 -系统资源占用率低; -提供高清真人报时图片,看时间看美女两不误; -采用离线数据库,一张图片按30K来计算,一小时就是1800K,一天就是1800*24/1024=42M,为您节省宝贵的流量; -提供不同版本的报时主题,目前暂提供美女车模版,街头美女版,街头美女版 II,后续将推出更多的版本; -美女车模版和街头美女版II由于服务器不稳定,数据有少量丢失,但不影响使用,用户可以自定义图片; 美女数据大家可以从 https://code.google.com/p/mmtimer/downloads 处下载得到,放到/sdcard/MMTimer目录下; -可以自定义不同时间的MM或帅锅; -自定义不同版本的时间,亲人好友等的都行; -提供保存,让你在什么时候也可以看到您喜欢的MM; 大家有兴趣就支持下吧,呵呵。 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,
[android-developers] how to delete groups in android 2.1
i try to delete contact groups by following code.but it does not work. they are still in contact display options list. how should i do? String where = ContactsContract.Data.MIMETYPE + = ?; String[] whereParameters = new String[] { GroupMembership.CONTENT_ITEM_TYPE }; int delete = getContentResolver().delete( ContactsContract.Data.CONTENT_URI, where, whereParameters); // グループ情報を削除 int count = getContentResolver().delete( ContactsContract.Groups.CONTENT_URI, ContactsContract.Groups.SYSTEM_ID + is null and + ContactsContract.Groups._ID + + GROUP_ID_STARRED_IN_ANDROID, null); // notify registered observers that a row was updated getContentResolver().notifyChange(ContactsContract.Groups.CONTENT_URI, null); -- 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: App disappears from the Market after upgrade
Yuvi, You are definately not the only one having this problem. My application Better Contacts (info.scottstephen.android.bettercontacts) is not longer in the Market, since an update on Friday evening. It actually seemed to disappear progressively as I had people telling me that they couldn't find my app, while I was still able to see it. However since yesterday I am not able to see it either? I also tried making a minor change and publishing an update, but nothing changed. I also tried unpublish / publish, still no change. I hope someone from Google responds quickly. Scott -- 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: Custom namespace using .Net webservice and ksoap.
Hi All, I believe I'm having the same problem as Rahul. Basically I have a .Net webservice that I am trying to call. The request contains a complex data type which I have been able to replicate and use with KSoap2. Using a proxy I can see the request is almost the same as a working call from a flash UI. The difference between the working flash call and the failing KSoap2 call is the request tag from KSoap is request i:type=d:anyType and .Net is refusing to parse this. Please note that I cannot change the webservice in anyway. The solution to this problem has to be via a change to the Android app. Cheers, Ed On Jun 1, 10:25 pm, rrohilla rohill...@gmail.com wrote: Hi, I am calling a web service which has the following request format. soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/ envelope/ xmlns:ns=http://test.com/2009/08; xmlns:dat=http:// test.com/2009/08/DataContracts soapenv:Header/ soapenv:Body ns:ProcessData ns:data dat:InFields dat:ExServiceDataField dat:FieldDataSample Field Data/ns:FieldData dat:ServiceField dat:ServiceField dat:DisplaynameBooks/ns:Displayname dat:FieldTypeBoth/ns:FieldType dat:GroupTypeMyInfo/ns:GroupType dat:Id2/ns:Id dat:Requiredtrue/ns:Required /dat:ServiceField /dat:ExServiceDataField dat:ExServiceDataField dat:FieldDataSample Field Data/ns:FieldData dat:ServiceField dat:ServiceField dat:DisplaynameClothes/ns:Displayname dat:FieldTypeBoth/ns:FieldType dat:GroupTypeMyInfo/ns:GroupType dat:Id2/ns:Id dat:Requiredtrue/ns:Required /dat:ServiceField /dat:ExServiceDataField /dat:InFields /ns:data /ns:ProcessData /soapenv:Body /soapenv:Envelope Now when I call the web service I get the following error SoapFault - faultcode: 'a:DeserializationFailed' faultstring: 'The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameterhttp://test.com/2009/08:data. The InnerException message was 'Error in line 1 position 463. Element 'http://test.com/2009/08/ DataContracts:InFields' contains data of the 'http://test.com/2009/08/ DataContracts:anyType' data contract. The deserializer has no knowledge of any type that maps to this contract. Add the type corresponding to 'anyType' to the list of known types - for example, by using the KnownTypeAttribute attributre or by adding it to the list of known types passed to DataContractSerializer.'. Please see InnerException for more details.' faultactor: 'null' detail: org.kxml2.kdom.n...@43bcb040 The Request sent is has i:type=n0:anytype in each tag which is creating an error in server side. How do T remove the attribute from the XML tag of the request XML for example n0:ExServiceDataField i:type=n0:anyType should be as n0:ExServiceDataField Thanks, 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] These thing keeping on looping ...
Below error keep on looping when i try to load my application it was working fine before later all of a sudden it happned... i m using Eclipse IDE... 06-08 07:07:31.906: DEBUG/AndroidRuntime(722): AndroidRuntime START 06-08 07:07:31.916: DEBUG/AndroidRuntime(722): CheckJNI is ON 06-08 07:07:32.006: ERROR/dalvikvm(722): Can't open dex cache '/data/ dalvik-cache/sys...@framework@core@classes.dex': No such file or directory 06-08 07:07:32.016: INFO/dalvikvm(722): Unable to open or create cache for /system/framework/core.jar (/data/dalvik-cache/ sys...@framework@core@classes.dex) 06-08 07:07:32.037: DEBUG/dalvikvm(722): Unable to process classpath element '/system/framework/core.jar' 06-08 07:07:32.058: ERROR/dalvikvm(722): Can't open dex cache '/data/ dalvik-cache/sys...@framework@ext@classes.dex': No such file or directory 06-08 07:07:32.058: INFO/dalvikvm(722): Unable to open or create cache for /system/framework/ext.jar (/data/dalvik-cache/ sys...@framework@ext@classes.dex) 06-08 07:07:32.058: DEBUG/dalvikvm(722): Unable to process classpath element '/system/framework/ext.jar' 06-08 07:07:32.068: ERROR/dalvikvm(722): Can't open dex cache '/data/ dalvik-cache/sys...@framework@framework@classes.dex': No such file or directory 06-08 07:07:32.077: INFO/dalvikvm(722): Unable to open or create cache for /system/framework/framework.jar (/data/dalvik-cache/ sys...@framework@framework@classes.dex) 06-08 07:07:32.116: DEBUG/dalvikvm(722): Unable to process classpath element '/system/framework/framework.jar' 06-08 07:07:32.116: ERROR/dalvikvm(722): Can't open dex cache '/data/ dalvik-cache/sys...@framework@android.policy@classes.dex': No such file or directory 06-08 07:07:32.116: INFO/dalvikvm(722): Unable to open or create cache for /system/framework/android.policy.jar (/data/dalvik-cache/ sys...@framework@android.policy@classes.dex) 06-08 07:07:32.126: DEBUG/dalvikvm(722): Unable to process classpath element '/system/framework/android.policy.jar' 06-08 07:07:32.136: ERROR/dalvikvm(722): Can't open dex cache '/data/ dalvik-cache/sys...@framework@services@classes.dex': No such file or directory 06-08 07:07:32.136: INFO/dalvikvm(722): Unable to open or create cache for /system/framework/services.jar (/data/dalvik-cache/ sys...@framework@services@classes.dex) 06-08 07:07:32.136: DEBUG/dalvikvm(722): Unable to process classpath element '/system/framework/services.jar' 06-08 07:07:32.169: ERROR/dalvikvm(722): ERROR: no valid entries found in bootclasspath '/system/framework/core.jar:/system/framework/ ext.jar:/system/framework/framework.jar:/system/framework/ android.policy.jar:/system/framework/services.jar' 06-08 07:07:32.188: DEBUG/dalvikvm(722): VM cleaning up 06-08 07:07:32.188: DEBUG/dalvikvm(722): LinearAlloc 0x0 used 4100 of 5242880 (0%) 06-08 07:07:32.271: WARN/dalvikvm(722): JNI_CreateJavaVM failed 06-08 07:07:32.277: ERROR/AndroidRuntime(722): JNI_CreateJavaVM failed 06-08 07:07:32.386: INFO/ServiceManager(25): service 'media.audio_flinger' died 06-08 07:07:32.386: INFO/ServiceManager(25): service 'media.player' died 06-08 07:07:32.386: INFO/ServiceManager(25): service 'media.camera' died 06-08 07:07:32.386: INFO/ServiceManager(25): service 'media.audio_policy' died 06-08 07:07:34.907: INFO/(724): ServiceManager: 0xad08 06-08 07:07:34.917: DEBUG/AudioHardwareInterface(724): setMode(NORMAL) 06-08 07:07:34.957: INFO/CameraService(724): CameraService started: pid=724 06-08 07:07:35.027: INFO/AudioFlinger(724): AudioFlinger's thread 0xb388 ready to run 06-08 07:07:35.567: ERROR/keystore(730): chdir: /data/misc/keystore: No such file or directory Thanks n Regards Somashekhar -- 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] Javascript execution stops on scrolling or zooming any page
Hi, I am about to develop a web application for smart phones. This app uses some JavaScript code. While testing it on Android devices (Hero, Desire) I noticed that all JavaScript timers immediately stop when the page is moved or zoomed. They never continue. Let's say you have a site which displays web camera images with 5 fps. As soon as you move this page (I mean scroll with finger) the web camera image will never be loaded again. So you can't center or zoom the image at all without stopping the stream. This behaviour is 100% reproducible on all Android devices I tested (1.5, 2.1). It does not appear on an iPhone which continues execution after moving stopped fine. I wonder if you can confirm this behavior and second if there is any workaround? Some special command to continue execution after touch input for example. Thanks, JayBee -- 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: App disappears from the Market after upgrade
Same problem here with my application Better Contacts (info.scottstephen.android.bettercontacts). Also missing the above mentioned apps. Tested on a Motorola Milestone and HTC Desire both running 2.1- update1. These tests are done from France on the SFR and Orange networks. Hope this helps. And I hope someone from Google responds. -- 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 in Controlling Audio
Hello, I have some years of experience in C/C++ and bit of Java programming in Linux, but I'm new to Android. For start I'm trying to develop a video player on android. I'm able to play the video using the VideoView widget. But when I'm trying to control the volume using AudioManager, the application crashes saying: The application Video (process com.android.video) has stopped unexpectedly. Please try again. If it helps : I've downloaded the Android source (ECLAIR) and using the sdk directly from the source and I'm using Eclipse 3.1.1. I've successfully run the sample apps from the source code. The following is a snapshot of what I'm trying to do in my code: [code] package com.android.video; import android.media.AudioManager; public class Video extends Activity { . . private AudioManager MyAudio; . . . MyVolUp.setOnClickListener(new OnClickListener(){ public void onClick(View view) { MyAudio.adjustStreamVolume(MyAudio.STREAM_MUSIC, MyAudio.ADJUST_RAISE, MyAudio.FLAG_PLAY_SOUND); } }); . . [/code] 1. What am I doing wrong here? 2. I was going through the Android source and saw that AudioManager (even MediaPlayer) are using the native functions for handling audio. How can I use those native function (just for experimenting, not related to my project) in my application? We can do it using JNI but I'm not sure how to use the native functions already there in android. -- 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] Is it possible to hide installed apps icon??
I have a situation like this. I have a A app which shows on home screen. When I click this A app, It will show many other apps which installed or will be installed on the device. But the problem is I only want to show these apps through the A app only. Is it possible?? If installing and hiding icons not possible, I can dynamically download these apps from my own cloud and load them at the request. Is this also possible?? Can anyone please guide me some ideas or something?? I'm so lost here and just no clue at all how to start!!! Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@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] MapView displays pages different than launching via ACTION_VIEW
Hello Anthony, I am not quite sure if this is what you want, but try: myWebView.getSettings().setUseWideViewPort(true); On Sat, Jun 5, 2010 at 2:50 PM, Anthony Stevens biosop...@gmail.com wrote: Help...! My web page displays properly if loaded into a WebView via an ACTION_VIEW Intent. However I need more control so I need the page loaded into a WebView in my own Activity. Oddly, the WebView doesn't display the page in the same format. I can't tell what's going wrong. Any suggestions? Hopefully you can see the images I posted. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App disappears from the Market after upgrade
Same problem here with my application Better Contacts (info.scottstephen.android.bettercontacts). Also missing the above mentioned apps. Tested on a Motorola Milestone and HTC Desire both running 2.1- update1. These tests are done from France on the SFR and Orange networks. Hope this helps. And I hope someone from Google responds. -- 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] Dynamically obtaining several instance of a view item defined in layout/xml file
I have a relative layout (let's say innerRL place in layout inner_view.xml) which I wanna add to another layout (main_layout), I wanna dynamically add multiple instances of innerRL. Specifying innerRL in xml gives me ease of maintenance (as against doing totally in the code), however I want to be able to add several instances dynamically. Using findViewById(resource_id) gives me that particular instance, should I have to use clone()? One other approach I see is ArrayAdapter, but it seems overkill. -Krishna -- 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] Retrieve My contact card data
Hello, this is my first post in this group. I have an HTC Legend running 2.1 and in the contacts list at the top there is 'My Contact Card'. When I use a cursor query to read the rest of my contacts this one doesn't show up. I'd like to be able to use the data from my contact card within my app but can't find documentation anywhere on how to do it. Can anybody shed some light, please? PD: I'm now using text from another post (my English is not very good) -- 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] Any chance to deactivate the lock pattern in Froyo from code?
Hello. I provide a small tool called PatternControl via the market that give the users the opportunity to temporary deactivate the Android lock pattern for a definable amount of time. With other words: After entering the pattern, the pattern becomes deactivated for i.e. 5mins and re activates it self afterwards. Until now (Android 2.2) this was only possible by changing the settings directly, because there was no related API provided. (i.e.with something like setBoolean(Settings.System.LOCK_PATTERN_ENABLED, enabled)) It is clear that this in not a good way, but from my knowledge there was no alternative. My hope was, that Froyo would introduce a new API to handle things like that legally. With the new security model of Android 2.2 writing to this kind of settings is now disallowed and the PolicyManager class seems just to offer password complexity options. So here is my question: Is there still any way to temporary deactivate the lock pattern as long as Android does not support such a delay functions natively? Thanks for you answer Best regards Lars -- 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] About ListView filter
Hi every one, i want to know how to filter list view that have an custom adapter. 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] Use of AIDL Interfaces for IPC with List of AIDL Interface
Hello I have a Problem when I tried to use AIDL interface with Lists. I have 2 AIDL interfaces and I have to use a list with references to the other AIDL interface instances. Eclipse generates Java file which contains error. I use android 1.6 and eclipse here is the my source code MyDataAIDL.aidl import de.koch.aidl.EntityAIDL; interface MyDataAIDL { void combineFromEntityList(in ListEntityAIDL aEntityList); ListEntityAIDL getEntitys(); } EntityAIDL.aidl package de.koch.aidl; import android.os.IBinder; interface EntityAIDL{ void setName(String aName); String getName(); } Eclipse tells no error in aidl files and generates the classes. but the generated class contains an error because de.koch.aidl.EntityAIDL is not from type IBinder. case TRANSACTION_readDB: { data.enforceInterface(DESCRIPTOR); java.util.Listde.koch.aidl.EntityAIDL _result = this.readDB(); reply.writeNoException(); reply.writeBinderList(_result);//Here is the Problem return true; } This is clear to me because only the generated Stub is from Typ IBinder. But how should I change the AIDL file to get the correct generated Java File. Hope you could help. The generated MyDBAIDL.java file /* * This file is auto-generated. DO NOT MODIFY. * Original file: */ package de.koch.aidl; import java.util.List; import java.lang.String; import android.os.RemoteException; import android.os.IBinder; import android.os.IInterface; import android.os.Binder; import android.os.Parcel; public interface MyDBAIDL extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements de.koch.aidl.MyDBAIDL { private static final java.lang.String DESCRIPTOR = de.koch.aidl.MyDBAIDL; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an MyDBAIDL interface, * generating a proxy if needed. */ public static de.koch.aidl.MyDBAIDL asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)(iin instanceof de.koch.aidl.MyDBAIDL))) { return ((de.koch.aidl.MyDBAIDL)iin); } return new de.koch.aidl.MyDBAIDL.Stub.Proxy(obj); } public android.os.IBinder asBinder() { return this; } @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException { switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(DESCRIPTOR); return true; } case TRANSACTION_readDB: { data.enforceInterface(DESCRIPTOR); java.util.Listde.koch.aidl.EntityAIDL _result = this.readDB(); reply.writeNoException(); reply.writeBinderList(_result); return true; } case TRANSACTION_writeDB: { data.enforceInterface(DESCRIPTOR); java.util.Listde.koch.aidl.EntityAIDL _arg0; _arg0 = data.createBinderArrayList(); this.writeDB(_arg0); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements de.koch.aidl.MyDBAIDL { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } public java.util.Listde.koch.aidl.EntityAIDL readDB() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.util.Listde.koch.aidl.EntityAIDL _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_readDB, _data, _reply, 0); _reply.readException(); _result = _reply.createBinderArrayList(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void writeDB(java.util.Listde.koch.aidl.EntityAIDL aEntityList) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeBinderList(aEntityList); mRemote.transact(Stub.TRANSACTION_writeDB, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_readDB = (IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_writeDB = (IBinder.FIRST_CALL_TRANSACTION + 1); } public java.util.Listde.koch.aidl.EntityAIDL readDB() throws android.os.RemoteException; public void writeDB(java.util.Listde.koch.aidl.EntityAIDL aEntityList) throws android.os.RemoteException; } The generated EntityAIDL.java file /* * This file is auto-generated. DO NOT MODIFY. * Original file: */ package de.koch.aidl; import java.lang.String; import android.os.RemoteException; import android.os.IBinder; import android.os.IInterface; import android.os.Binder; import android.os.Parcel; public interface EntityAIDL extends
[android-developers] ProgressDialog BackGround
Hello All, I would like to know the possibilities of changing the background Image/color of aProgressDialog? I already tried it with a class that extends ProgressDialog and tried to set the background, but it did not do it for the whole Dialog(Window), only the part that has the Message get painted and not the Bigger Container(Title+Message). Here is the Code Snippet mDefaultDialog = new Dialog(mContext); mDefaultDialog.setContentView(R.layout.progress_dialog_background); mDefaultDialog.setTitle(Custom Dialog); TextView text = (TextView) mDefaultDialog.findViewById(R.id.text); text.setText(Hello, this is a custom dialog!); Layout file LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal android:background=@drawable/red TextView android:id=@+id/text android:layout_width=fill_parent android:layout_height=fill_parent android:text=Details android:textColor=#FFF android:textAppearance=@style/ScreenTitle / /LinearLayout Regards V. Ramkumar. -- 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] Submit Android form data to the web via POST
I've been searching the web for a way to do this for about a week now, and I just can't seem to figure it out. I'm trying to implement an app that my college can use to allow users to log in to various services on the campus with ease. The way it works currently is they go to an online portal, select which service they want, fill in their user name and pwd, and click login. The form data is sent via post (it includes several hidden values as well as just the user name and pwd) to the corresponding login script which then signs them in and loads the service. I've been trying to come at the problem in two ways. I first tried a WebView, but it doesn't seem to want to support all of the html that normally makes this form work. I get all of the elements I need, fields for user and pwd as well as a login button, but clicking the button doesn't do anything. I wondered if I needed to add an onclick handler for it, but I can't see how as the button is implemented in the html of the webview not using a separate android element. The other possibility was using the xml widgets to create the form in a nice relative layout, which seems to load faster and looks better on the android screen. I used EditText fields for the input, a spinner widget for the service select, and the button widget for the login. I know how to make the onclick and item select handlers for the button and spinner, respectively, but I can't figure out how to send that data via POST in an intent that would then launch a browser. I can do an intent with the action url, but can't get the POST data to feed into it. Anyone have any suggestions? -- 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: google gears in webview! (works only in browser)
Two things i can think of. First make sure your WebChromeClient has an over ride for onJsAlert. The next part is tricky. If you have android 2 you can't use gears/ but u can use the w3c spec for 'navigator.geolocation'. but you still need to enable a few things in code. in your webcromeclient again. override onGeolocationPermissionsShowPrompt @Override public void onGeolocationPermissionsShowPrompt(String origin, Callback callback) { // TODO Auto-generated method stub super.onGeolocationPermissionsShowPrompt(origin, callback); callback.invoke(origin, true, false); } next in your activity MyWebChromeClient mwcc = new MyWebChromeClient (); mWebView.setWebChromeClient(mwcc ); mwcc.onGeolocationPermissionsShowPrompt('', this); and make your activity implements GeolocationPermissions.Callback and finally add an invoke for that call back. public void invoke(String origin, boolean allow, boolean remember) { // TODO Auto-generated method stub } not sure if its 100% safe, but this is what i use. let me know if you find a way to get gears back in the webview. -w On Jun 8, 2:36 pm, guruk ilovesi...@gmail.com wrote: Hi, i made a testhttp://www.checkdent.com/mobile/gps2.html based on the demo:http://code.google.com/apis/gears/api_geolocation.html#getpermission when i open it from android browser i get my location. but opened from within a webview, nothing happens?? i already gave several permissions uses-permission android:name=android.permission.INTERNET/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS/ uses-permission but still no success! what do i have to do? thx chris -- 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] WebView not loading enough JavaScript that the full Android Browser can.
Context: I'm creating an application that allows the back office system to access android information and vica-verca. However the backoffice system contains huge amounts of javascript that need to be loaded. Because the backoffice is a 'backoffice' I can't give just anyone access. So I decided to use the FireBug Lite as testing, its a considerable amount of JavaScript and the same effect occurs. Problem: The Andorid Browser loads the FireBug Lite from the page http://kscserver.com/main-leap-slim.html but my application's WebView does not display the lite bug. In both the Test Maps, work. They both appear to create the pop up for viewing a map without a problem. The map is considerable a smaller file. Just in case your wondering, the FireBug Lite works and is fully functional in the Android Browser. Theory: I'm assuming somewhere the browser has a higher priority of something than my application is set. Maybe it has better access to load JavaScript in memory, I don't know. All I know is that the JavaScript of my webview is enabled but I can't get it to load the complicated JavaScript objects that the Browser is loading. Additional Info: I've posted a StackOverflow Question that contains a screen shot and a good recent version of my source code, http://stackoverflow.com/questions/2968936/android-webview-not-loading-a-javascript-file-but-android-browser-loads-it-fine. Any help you can give me with be to help me diagnose this problem will be greatly appreciated. Thank you, TSPT. -- 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: Urgent response needed.
I'm sorry but, I have an Andorid phone and never had a problem after the most recent release. Just like anything, perfecting an operating system takes time and patience. I'm very proud of what Google has done to open up mobile development, in fact many developers would agree with me. Android is not dieing, its evolving. Without the openness of Andorid, developing for a mobile platform would be difficult as it was in the past. On Jun 8, 11:36 am, Onomp avtsolution...@gmail.com wrote: Unless google implements a way to track the force closings of applications (maybe even phone specific) and has a market for flawless programs and seperates the the ones which still need work, all of your application ideas will be stolen by the competitors working for the other OS's and as android takes off and the consumers feel the devices are too bugged, android will die, your work and learnings will be for nothing. Anyone else agree? -- 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 from one Activity to another with a pause/delay
Pawan, I doubt you could do this in the UI thread. What I would do is to put code in the onClickListener for your button that: - changes the button background/drawable - starts a new thread The thread sleeps for a while and then starts your second activity (and maybe changes the button background/drawable back again). Here is an example of threading with UI notification: http://developer.android.com/resources/faq/commontasks.html#threading (you might also want to disable any other clickable buttons in the onClick until the thread has completed) On Wed, Jun 9, 2010 at 2:03 PM, pawan nimje pawanni...@gmail.com wrote: Hi All, I have two activities, 1st one has a ques and 4 options. 2nd one is like a result page (... displaying if your ans is correct or not ...and showing the right ans ..) Now what i want is when a user clicks : on a right option [or wrong option] ..i want to turn that Image button into green [ red] ..and wait for a while ..and then go to the result activity .. so my only concern is onclick of a ImageButton ... how to wait for a while .. and then move to other activity any kind of suggestion will do .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Job Opening for Mobile Developer in Rockland County, NY - Northern NJ / Westchester / NYC
We need one or more of the following platforms: iPhone, Android, Blackberry. For more info see: http://www.rustybrick.com/iphone/rb-hire-me/ or http://www.rustybrick.com/contact_job.php -- 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] Application fails only on Samsung Behold II
I'm the author of Alarm Clock Plus V1 and Alarm Clock Plus V2 in the android market. They are basically enhanced alarm clocks built using the stock android alarm clock apps from 2.0, and 2.1. I've done all the work making them compatible with android 1.5+ and I know the app is working on many G1's, myTouch's, CLIQ's, and various other 1.5/1.6/2.1/2.2 android devices. However the Samsung Behold II has problems with the application. Specifically it can't edit any of the alarms. I'm looking for someone out there that may have any idea as to what the problem could be. The only thing I can possibly think of is that the application can read from the app's sqlite database, but not write to it (but that's honestly a shot in the dark). Any help out there? -- 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 Data to a running app
Found this via google search - exactly what I needed. Thanks! On May 15, 1:04 pm, Mike dg vinb...@gmail.com wrote: You can set single instance for an activity to ensure more than one won't exist. And in the activity's onNewIntent handle the new intent. On May 15, 11:50 am, Ne0 liamjamesalf...@googlemail.com wrote: I have a broadcast reciever the looks at SMS's, when it recieves an SMS that is destined for my application it needs to send some data to an activity or start the avitivty if it isnot running. How do i find out if the activity is running and send data to it if it is? I know i can use StartActivity and stuff the intent with the data i want to send to it but if i start the activty that is already running, another instance of it will be created (wont it?) . Thanks for any info. Ne0 -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Published app not showing up on HTC Evo or Droid Incredible
Hey. We had the same problem too and are waiting for word from Google. In the mean time, we found a work around by posting our app on getjar.com. It's still not in the app store, but at least we can direct our Incredible/Evo users to a resource if they want our app. Hope that helped! -- 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 kill application
yes, agree, this theory is based on the official Android document. But in the real world, I suspect if it works as expected, because almost every android player's phone got a 'advanced task killer' application, maybe that's best thing to show Google guys it might not working as the way it's been designed... and I did get some feedback from 'non-smartphone players', which means he or she doesn't know how/ when to kill these back-end processes in their phone time to time, they said their phone dies very often. On Jun 8, 9:30 pm, TreKing treking...@gmail.com wrote: On Tue, Jun 8, 2010 at 6:41 AM, Karteek N kartee...@gmail.com wrote: What is the meaning of finish()? Ends the current activity. Is it not terminate the process? No, what if you have two activities on top of each other and called finish on the one on top? Would you expect the entire process to end? if not how can i terminate the process Don't. Let Android deal with it. There are good reasons for why it works the way it does. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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