[android-developers] Re: Clearing the cache of your app on exit
Hello Dianne, Speaking of clearing the application's cache data...what is the difference in deleting the cache when the application exits as opposed to clearing the cache data by the user himself? I have 2 use-cases: 1. When the application exits gracefully, I should be able to clean all the data that i had created/stored during the lifetime of the application. 2. When the application crashes unexpectedly, or due to an abnormal event, the data should not hang on forever. (I believe this is taken care of by the framework ? ) Thanks On Sun, Jul 26, 2009 at 4:29 AM, Dianne Hackborn hack...@android.comwrote: You generally shouldn't need to clear it, since the point of that is it allows the system to delete those files to free up storage when needed. That said, you do want to keep the amount of data in your cache at a reasonable size rather than just throwing stuff in there and letting it grow indefinitely. The system should eventually get around to deleting your old files, but everyone is happier if the app is keeping that under control. This is not the same as deleting when your app exits though. On Sat, Jul 25, 2009 at 3:14 PM, niko001 greatbytessoftw...@googlemail.com wrote: Hi Mark, thanks for your answer. I mean the cache that the users can delete themselves by going to Settings -- Apps -- Manage Apps -- My App -- Clear Cache Thanks for your suggestion, I'll try it! Niko On Jul 25, 2:27 am, Mark Murphy mmur...@commonsware.com wrote: niko001 wrote: is it possible to force thecacheof your app to clear when the user exits the app? My app piles upcachedata (rightfully so) on each start, which is no longer needed once the user quits the app, so I am trying to find a way to forcibly clear it. You could try deleting the files from getCacheDir(), available on Activity, Service, and other flavors of Context. On the other hand, you did not specify whichcacheyou were concerned about... -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.0 Available! -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Dev Phone not available anymore
HI all, I would like to buy a dev phone, but on my Android Market publish page, when I click on buy dev phone, i come bac always on publish page, like the page http://market.android.com/publish/buyDeveloperPhone didn't exist anymore. Do you have information about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Several TabHosts?
Hello! I would like to have more than one tabWidget in my application. The trouble is that it seems that i can only use one.. If i name my first tabHost android:id=@android:id/tabhost everything works fine. If i want to add a second one, i have to use another name for the other tabhost like tabhost2. But then i get the error message must have a TabHost whose id attribute is tabhost but not tabhost2 hm... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Unable to write text file to sdcard on physical G1 device
This is for a physical device. ddms shows: +sdcard permissions: d---rwxrwx I still cannot write to this card. thanks, double On Jul 17, 7:40 pm, ekwang ekwa...@gmail.com wrote: You can use ddms tool for verify whether sdcard was inserted or not. #android-sdk-windows-1.5_r2\tools\ddms select Device - File Explore below is correct permissions value. +datapermissions : drwxrwx--x +sdcardpermissions : drwxrwxrwx +system permissions : drwxr-xr-x If sdcard permissions was look d- It means sdcard is not inserted. On Jul 18, 7:24 am, doubleminus doublemi...@gmail.com wrote: Is it a permissions issue? Trying to touch the sdcard via adb shell gives me a permission denied message... On Jul 16, 10:49 pm, doubleminus doublemi...@gmail.com wrote: Right now, file_name is just set to 12880+-+po_number.getText ().toString(); When I put /sdcard/ (or sdcard/ into my file path I get IOException: Parent directory of file does not exist: /sdcard/sdcard/ 12880-231 If I get rid of the sdcard/ prefix, I get this exception: FileNotFoundException: /data/data/com.heroku.blacksky/files/12880-222 Here's the new file creation code, based on everyone's suggestions: file1 = new File(Environment.getExternalStorageDirectory(), file_name); file1.createNewFile(); file_out = new FileOutputStream(file1); buf = new BufferedOutputStream(file_out); out_stream = new OutputStreamWriter(buf); Please let me know your thoughts. I'm still quite confused by this. double On Jul 16, 12:12 am, Kaj Bjurman kaj.bjur...@gmail.com wrote: I can't see that you are using file1 after that line. You are using file_name. On 14 Juli, 18:09, doubleminus doublemi...@gmail.com wrote: Isn't that what the first lines of code do? File file1 = new File(Environment.getExternalStorageDirectory(), file_name); On Jul 13, 3:02 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Simple. :-) The error says that the file does not exist... that means you should create it. Use File#createNewFile(). On Jul 13, 5:53 pm, doubleminus doublemi...@gmail.com wrote: Romain is? I don't understand. Is there something I should be doing to avoid filenotfound exception? On Jul 13, 12:40 am, 郑伟 loveheaven_zheng...@hotmail.com wrote: You are right... Date: Sun, 12 Jul 2009 21:29:28 -0700 Subject: [android-developers] Re: Unable to write text file to sdcard on physical G1 device From: romain...@google.com To: android-developers@googlegroups.com Hi, Instead of: FileOutputStream file_out = openFileOutput (file_name,MODE_WORLD_READABLE); Just use: FileOutputStream file_out = new FileOutputStream(file_name); This should work. On Sun, Jul 12, 2009 at 8:10 PM, doubleminusdoublemi...@gmail.com wrote: I need to write a fairly simple .csv file to the device's sdcard (so it can then be emailed via Intent). The below code does not write the file. File file1 = new File(Environment.getExternalStorageDirectory(), file_name); FileOutputStream file_out = openFileOutput (file_name,MODE_WORLD_READABLE); BufferedOutputStream buf = new BufferedOutputStream(file_out); OutputStreamWriter out_stream = new OutputStreamWriter(buf); // write fields in first row of spreadsheet then a new line for (int i = 0; i FIELDS.length; i++) { if (i != FIELDS.length - 1) out_stream.write(FIELDS[i] + ,); else out_stream.write(FIELDS[i]); } out_stream.write(\n); // more code here I flush and close out_stream. I can even seem to be able to read from the file on the device (printing above output, using fileinputstream, to an edittext. How can I get to this file on the sdcard? Thanks! double -- 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 _ MSN 表情魔法书,改变你的对话时代!http://im.live.cn/emoticons/-Hidequotedtext- - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this
[android-developers] Re: App not visible in Android Market of Samsung Galaxy
if you can adb into the device .. can you post the output of $ adb shell getprop | grep fingerprint follow the thread here to get the adb working .. http://groups.google.com/group/android-developers/browse_thread/thread/726ea864e89985ec/d8557941a2be9ec9?hl=enlnk=gstq=Galaxy+ADB#d8557941a2be9ec9 -Dan On Sat, Jul 25, 2009 at 1:11 PM, 6real xirgon...@gmail.com wrote: Dear Dan (and others), I exaclty have the same issue with my application 'veloid' I can't see it in my Galaxy/Bouygues Telecom. i can't neither see Wonderstock. My app is copy-protected and seems correctly published. here are the properties of my phone Galaxy Samsung Android 1.5 Kernel : 2.6.27 (buil...@andy #1) Build number : 76XXCSDCBALUM6375 Bande version (??): I7500XXIG1 I hope it will helps in solving our issue. Rgds, C. On 24 juil, 00:54, dan raaka danra...@gmail.com wrote: [bump ] can you post the system property [ro.build.fingerprint] of the Galaxy device, where you dont see forward locked apps? -Dan On Thu, Jul 23, 2009 at 8:08 AM, Xionbox christopher.rabo...@gmail.com wrote: You need a sim card in a phone to access to paid applications on the Market. You also must be in one of the authorizaed countries by gogle to purchase an App. That said, I have Samsung Galaxy at Bouygues Telecoms in France and I also have some problems with some applications which I cannot find (even with the QR Code). On Jul 23, 9:12 am, armand dos santos armand.dossan...@gmail.com wrote: The application is Wonderstocks and it is free but copy-protected. I have just noticed by the way that no paid applications are visible... I also must add that there is no sim card for the time being in the phone, so: - is the sim card necessary in order for the copy protected/paid apps to be visible in the android market? - is it that samsung/Bouygues Tel have excluded copy protected/paid apps from the android market? On Wed, Jul 22, 2009 at 10:55 PM, dan raaka danra...@gmail.com wrote: which app is this ? -Dan On Wed, Jul 22, 2009 at 12:19 PM, dnamra1 armand.dossan...@gmail.com wrote: Hi, Does someone know what could be the reason why my application is not visible in the Android Market on the Samsung Galaxy sold by Bouygues Telecom in France? The app is copy-protected and compatible SDK 1.5... Thanks in advance for the replies. Armand --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: problems with Phone.apk built from source
Hi Dianne, Thanks for replying, and sorry if I posted to the wrong forum. I actually got the app working on my phone--the solution was right here: http://source.android.com/documentation/building-for-dream I am so happy. I changed the Phone app to get rid of the 5-second screen timeout during a phone call, and extended the subsequent timeouts to default instead of medium (15 seconds). This makes calling phone menus MUCH easier. Thanks again, --Ed On Jul 25, 6:02 pm, Dianne Hackborn hack...@android.com wrote: Hi, this should probably be posted in android-platform, since I think we are outside the bounds of the SDK here. Also fwiw I don't think the high-level phone app is carrier-dependent at all -- that is more in the realm of the radio and RIL. On Sat, Jul 25, 2009 at 8:43 AM, Ed edmundcl...@gmail.com wrote: Hello, I built Phone.apk from the source code, and the resulting application could not find a carrier. I suspect that there are specific target builds required here (note that I DID add TARGET_PRODUCT := htc_dream as required to the Makefile), but there are no other vendors available under the Vendor folder in the source (i.e., T- Mobile, etc). Am I off base? Should Phone.apk be able to work on our HTC dream phones without additional modifications? Thanks very much for your help, --Ed -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SurfaceView speed optimization suggestions (or just kick it up to openGL)?
You mentioned onFling. Do you use touch controls? May be you should employ workaround with calling sleep because without that touch and trackball events create huge cpu load. On Jul 23, 11:26 pm, Jason Van Anden jason.van.an...@gmail.com wrote: It is not b/c of the GC. Garbage does accumulate ... but I am triggering the GC to clear after the easing finishes. Jason On Thu, Jul 23, 2009 at 2:58 PM, MrChaz mrchazmob...@googlemail.com wrote: Are your hiccups being caused by the GC firing? A quick look at Logcat should tell you if it is. On Jul 23, 2:16 pm, Jason Van Anden jason.van.an...@gmail.com wrote: I am trying to optimize my graphics app. I have read the best practices and have employed these and they have helped but, I am still getting hiccups. I get the hiccups when more of the screen is drawn upon. I am looking for either strategies on how to speed things up or a convincing that employing openGL is the best solution. My app draws graphics directly on a SurfaceView. My workspace is larger than the screen. I am using translate. My draw loop determines time passed between draws and adjusts update calls accordingly. More updates are required in subsequent passes when more of the screen area is drawn upon (in other words, a big circle the diameter of the screen width will take longer than a small circle 1/10 of the screen width). It seems to me that the graphics processor is the bottleneck (no?). I have an easing routine when the app scrolls (triggered via onFling ... kind of like the way lists work but in 2D). This speed issue is most visually apparent here. If openGL is the solution, I can put this aside for now and upgrade later when I have time to ramp up on openGL. If there are other solutions, I would like to hear them. One thought I have is to draw to a bitmap before engaging my scrolling/easing and move the bitmap instead of adjusting the graphics. Feedback super appreciated. Thank You, Jason Van Andenhttp://www.smileproject.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: Several TabHosts?
sommeralex wrote: Hello! I would like to have more than one tabWidget in my application. The trouble is that it seems that i can only use one.. If i name my first tabHost android:id=@android:id/tabhost everything works fine. If i want to add a second one, i have to use another name for the other tabhost like tabhost2. But then i get the error message must have a TabHost whose id attribute is tabhost but not tabhost2 Only one can be managed by the TabActivity. You are on your own for the others. Just call setup() on the second TabHost -- that's most of what TabActivity does for you. Though, considering how big the tabs are, I'm rather stunned you want more than one set... -- Mark Murphy (a Commons Guy) http://commonsware.com | 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 -~--~~~~--~~--~--~---
[android-developers] Re: DD command
I don't know methods for implementing this schema. I also think that there are even ways to make a logical copy of the FS. You know if can I perform a CHMOD on directories with Android NDK? Thanks :) 2009/7/25 Unrealshade sche...@googlemail.com i'm interested in that, too! On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote: Hi guys, it's possible execute DD command from my java application? I need to copy internal flash memory in a sdcard. Can anyone help me? PS.Sorry for my poor english. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: mysterious ant build error
On Jul 26, 12:50 am, Mark Murphy mmur...@commonsware.com wrote: I did once, but it was my own dumb fault. I got tripped up in Java generics, and was redefining String to be the symbolic name of a generic type, so all my references to what should have been java.lang.String were failing if I didn't fully qualify them. Fixing the generics cleared up the issue. Overall, I've had annoyances with the Ant scripts starting with 1.5, where I have to nuke the gen/ and bin/ directories from time to time, mostly when I add new resources. You might try that and see if it helps. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Need help for your Android OSS project?http://wiki.andmob.org/hado thanks Mark for your reply in my case the problem is not related to generics i tried to simplify my Foo class by removing step by step stuff in it and it turned out that i had inner class inside Foo that coused problems. after putting that inner class outside everything works ok and yes ant support in android is quite far from perfect thanks pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Have ListView and other widgets scroll as a whole
@mark murphy Awesome, just ran the demo of the MergeAdapter, looks like that's what I've been looking for! The code that implements it looks relatively simple; the fact I couldn't come up with it means I don't know all the ins outs yet of the Android platform :) I'll now try to add it to my search app, the ultimate test to see if it fits my needs. Thanks already for sharing this! Also saw that there are more utilities available through the cw-android group. Regards, Marco On 24 jul, 19:20, Mark Murphy mmur...@commonsware.com wrote: MarcoAndroid wrote: So my question: has anybody implemented this in some way? Yes. You should be able to use my recently-released MergeAdapter: https://github.com/commonsguy/cwac-merge/tree You would hand the MergeAdapter your initial set of ordinary views, plus an empty Adapter of some form for your search results. When your search is complete, populate your formerly-empty adapter with the results, and they should show up. If that doesn't work, it's a scenario I need to support myself within the next couple of weeks, so we should be able to get it going for you one way or another. I'll be adding more documentation about it in the coming weeks, both in the README and in a blog post on AndroidGuys. Questions about it should go to the cw-android Google Group: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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] Re: Several TabHosts?
thanks your for answer.. On 26 Jul., 11:57, Mark Murphy mmur...@commonsware.com wrote: sommeralex wrote: Hello! I would like to have more than one tabWidget in my application. The trouble is that it seems that i can only use one.. If i name my first tabHost android:id=@android:id/tabhost everything works fine. If i want to add a second one, i have to use another name for the other tabhost like tabhost2. But then i get the error message must have a TabHost whose id attribute is tabhost but not tabhost2 Only one can be managed by the TabActivity. You are on your own for the others. Just call setup() on the second TabHost -- that's most of what TabActivity does for you. Though, considering how big the tabs are, I'm rather stunned you want more than one set... -- Mark Murphy (a Commons Guy)http://commonsware.com|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 -~--~~~~--~~--~--~---
[android-developers] Re: DD command
nah, sorry, don't know anything about this topic... i just hope i find dd for android. if i do i will write here how i did it, of course. best luck to you! =) On Jul 26, 12:04 pm, Francesco Pace paxa...@gmail.com wrote: I don't know methods for implementing this schema. I also think that there are even ways to make a logical copy of the FS. You know if can I perform a CHMOD on directories with Android NDK? Thanks :) 2009/7/25 Unrealshade sche...@googlemail.com i'm interested in that, too! On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote: Hi guys, it's possible execute DD command from my java application? I need to copy internal flash memory in a sdcard. Can anyone help me? PS.Sorry for my poor english. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] invoking the dialer multiple time
Dear All, I wrote an app that places an outgoing call via the ACTION_CALL intent. After the call is placed, the dialer enters the call log window and at that point, my application cannot re-submit an outgoing call without having the user exit the call log activity. From the kernel source, InCallScreen.java shows implements the delayedCleanupAfterDisconnect() method where one can read: . // If this is a call that was initiated by the user, and // we're *not* in emergency mode, finish the call by // taking the user to the Call Log. // Otherwise we simply call finish(), which will take us // back to wherever we came from. if (mShowCallLogAfterDisconnect ! isPhoneStateRestricted()) { if (VDBG) log(- Show Call Log after disconnect...); final Intent intent = PhoneApp.createCallLogIntent (); startActivity(intent); // Even in this case we still call finish() (below), // to make sure we don't stay in the activity history. } finish(); The mShowCallLogAfterDisconnect is a boolean also in InCallScreen.java that reads: // Flag indicating whether or not we should bring up the Call Log when // exiting the in-call UI due to the Phone becoming idle. (This is // true if the most recently disconnected Call was initiated by the // user, or false if it was an incoming call.) // This flag is used by delayedCleanupAfterDisconnect(), and is set by // onDisconnect() (which is the only place that either posts a // DELAYED_CLEANUP_AFTER_DISCONNECT event *or* calls // delayedCleanupAfterDisconnect() directly.) private boolean mShowCallLogAfterDisconnect; If I trust the comment properly, the dialer will enter the call log activity unless we had an incoming call triggering InCallScreen. I presume that by call was initiaited by the user also means other activity invoking ACTION_CALL. So my question is: does anyone know how I could programmatically exit the call log activity as ways to be able to submit another ACTION_CALL intent ? Thanks for any pointers or suggestions here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Limit the size of a ScrollView
Hi, I am using a ScrollView as a child of an AbsoluteLayout to display a list of items inside this AbsoluteLayout. Because the ScrollView is embedded in the AbsoluteLayout's design, I want to restrict it's size to fit the assigned area. Is there any way to set the height of the ScrollView or of the RelativeLayout that is the child of my ScrollView? My layout.xml (with just the important tags): AbsoluteLayout android:layout_width=fill_parent android:layout_height=fill_parent / ...some TextViews... ScrollView android:layout_width=wrap_content android:layout_height=wrap_content RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content ...some TextViews that I want to be able to scroll, all with wrap_content... /RelativeLayout /ScrollView ...again, some TextViews in the main layout... /AbsoluteLayout To make it clearer, I have uploaded two images of what I am trying to do: http://drop.io/v8qobow/asset/current-jpg http://drop.io/v8qobow/asset/goal-jpg 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] Re: Limit the size of a ScrollView
niko001 wrote: Hi, I am using a ScrollView as a child of an AbsoluteLayout to display a list of items inside this AbsoluteLayout. Because the ScrollView is embedded in the AbsoluteLayout's design, I want to restrict it's size to fit the assigned area. Is there any way to set the height of the ScrollView or of the RelativeLayout that is the child of my ScrollView? My layout.xml (with just the important tags): AbsoluteLayout android:layout_width=fill_parent android:layout_height=fill_parent / ...some TextViews... ScrollView android:layout_width=wrap_content android:layout_height=wrap_content RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content ...some TextViews that I want to be able to scroll, all with wrap_content... /RelativeLayout /ScrollView ...again, some TextViews in the main layout... /AbsoluteLayout To make it clearer, I have uploaded two images of what I am trying to do: http://drop.io/v8qobow/asset/current-jpg http://drop.io/v8qobow/asset/goal-jpg 1. android:layout_height=wrap_content is meaningless for scrollable things like ScrollView and ListView. Try using a concrete height. 2. Why are you using AbsoluteLayout in this case? The class is deprecated, and from those JPEGs, it would not seem as if AbsoluteLayout is, er, absolutely required. For example, if you used RelativeLayout, you could specify your ScrollView as coming between some of the other items (e.g., above and below those TextViews), and therefore you could get a concrete height that way. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Dev Phone not available anymore
Look here: http://groups.google.com/group/android-developers/browse_thread/thread/6e30a9014329bb87 On 26 Jul., 09:34, arnouf arnaud.far...@gmail.com wrote: HI all, I would like to buy a dev phone, but on my Android Market publish page, when I click on buy dev phone, i come bac always on publish page, like the pagehttp://market.android.com/publish/buyDeveloperPhone didn't exist anymore. Do you have information about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: onStart() not called when a service is restarted after, being killed?
After having a look at the source code, I would think that this is supposed to work. See sendServiceArgsLocked (http://www.google.com/codesearch/p? hl=ensa=Ncd=1ct=rc#uX1GffpyOZk/services/java/com/android/server/am/ ActivityManagerService.javal=8950) which are later converted to onStart() calls in ActivityThread. handleServiceArgs (http:// www.google.com/codesearch/p?hl=ensa=Ncd=1ct=rc#uX1GffpyOZk/core/java/android/app/ActivityThread.javal=2550). However, other people seem to have had the same experience as I, so I assume this is not a problem with my code. http://code.google.com/p/android-random/source/browse/trunk/TestKeepAlive/src/org/devtcg/demo/keepalive/KeepAliveService.java (uses settings to remember whether the service was started). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Multitouch support in Donut?
Look at here: http://phandroid.com/2009/07/25/morning-donuts/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 reorder activiity in the history stack manually?
How to reorder activiity in the history stack manually instead of using intent flags? Thanks in advance for the answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 possible mapview and list exist in same activity
thank you for your reply, so I want to ask the next question, that's how to put list with the mapview?? I just think it must extends ListActivity, is there another methods? thanks so much!! On Jul 26, 3:02 am, HeHe cnm...@gmail.com wrote: afail, you could combine a mapview and listview (or any other sort of views) in a map activity. as for how-to, you should do some experiment. On Jul 23, 10:34 pm,tstanlytsai.sta...@gmail.com wrote: hi all, for now i have a list, using extends listactivity, and now i want to addmapviewon the same activity using framelayout probably, but if i want to use themapview, the activity must extends mapactivity, one must extends mapactivity,the other must extends list activity, if it possible to do that??? thanks!!!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] my zoom controls can't put in everywhere???
hi all, i add a zoomcontrols in my view, not in the webview or mapview, but when i click the zoom in/out, the view can't in/out? thanks my code is: == mZoomControls1=(mZoomControls1)findViewById(r.id.zc); mZoomControls1.show(); /* zoom controls in */ mZoomControls1.setOnZoomInClickListener(new ZoomControls.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub mZoomControls1.setIsZoomInEnabled (true); mZoomControls1.setIsZoomOutEnabled (true); } }); /* zoom controls out */ mZoomControls1.setOnZoomOutClickListener(new ZoomControls.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub mZoomControls1.setIsZoomInEnabled (true); mZoomControls1.setIsZoomOutEnabled (true); } }); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 possible mapview and list exist in same activity
It's rather simple, you just need to use inline class: Example: class A extends MapActivity { B mB = new B(); ... class B extends ListView{ } } Now, just use mB to control your ListView. -CMV- On Mon, Jul 27, 2009 at 12:18 AM, tstanly tsai.sta...@gmail.com wrote: thank you for your reply, so I want to ask the next question, that's how to put list with the mapview?? I just think it must extends ListActivity, is there another methods? thanks so much!! On Jul 26, 3:02 am, HeHe cnm...@gmail.com wrote: afail, you could combine a mapview and listview (or any other sort of views) in a map activity. as for how-to, you should do some experiment. On Jul 23, 10:34 pm,tstanlytsai.sta...@gmail.com wrote: hi all, for now i have a list, using extends listactivity, and now i want to addmapviewon the same activity using framelayout probably, but if i want to use themapview, the activity must extends mapactivity, one must extends mapactivity,the other must extends list activity, if it possible to do that??? thanks!!!- Hide quoted text - - Show quoted text - -- CMV --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Limit the size of a ScrollView
Works great, thank you very much! I though the layout_height parameter only accepted wrap_content or fill_content as values (not actual units), which was...stupid of me :-)! I will change the AbsoluteLayout to a RelativeLayout. Thanks again, Niko On Jul 26, 4:08 pm, Mark Murphy mmur...@commonsware.com wrote: niko001 wrote: Hi, I am using aScrollViewas a child of an AbsoluteLayout to display a list of items inside this AbsoluteLayout. Because theScrollViewis embedded in the AbsoluteLayout's design, I want to restrict it's size to fit the assigned area. Is there any way to set the height of the ScrollViewor of the RelativeLayout that is the child of my ScrollView? My layout.xml (with just the important tags): AbsoluteLayout android:layout_width=fill_parent android:layout_height=fill_parent / ...some TextViews... ScrollViewandroid:layout_width=wrap_content android:layout_height=wrap_content RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content ...some TextViews that I want to be able to scroll, all with wrap_content... /RelativeLayout /ScrollView ...again, some TextViews in the main layout... /AbsoluteLayout To make it clearer, I have uploaded two images of what I am trying to do: http://drop.io/v8qobow/asset/current-jpg http://drop.io/v8qobow/asset/goal-jpg 1. android:layout_height=wrap_content is meaningless for scrollable things likeScrollViewand ListView. Try using a concrete height. 2. Why are you using AbsoluteLayout in this case? The class is deprecated, and from those JPEGs, it would not seem as if AbsoluteLayout is, er, absolutely required. For example, if you used RelativeLayout, you could specify yourScrollViewas coming between some of the other items (e.g., above and below those TextViews), and therefore you could get a concrete height that way. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Calendar View
Hi, I just wanted to know if there is a default Calendar View that I can use to choose a date instead of the DatePicker. Has anybody developed such a widget that you can share? Thanks, Dexter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Dev Phone not available anymore
I'm also wondering if they are going to make some of the newer phones available to developers instead? The G2 (Magic) or even the Samsung. I believe T-Mobile will have the G2 available to public on the 8th. f_heft wrote: Look here: http://groups.google.com/group/android-developers/browse_thread/thread/6e30a9014329bb87 On 26 Jul., 09:34, arnouf arnaud.far...@gmail.com wrote: HI all, I would like to buy a dev phone, but on my Android Market publish page, when I click on buy dev phone, i come bac always on publish page, like the pagehttp://market.android.com/publish/buyDeveloperPhone didn't exist anymore. Do you have information about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: paid support
Hi, We can provide paid support for you. we released our new application at the Google I/O conference. ReceiVo is an audio/video application for Android. It is available on the Google Android Market; you can read a brief summary on http://www.crosscolors.com/Product.aspxhttp://www.crosscolors.com/Product.aspx, or watch a short clip at http://www.youtube.com/watch?v=ijxhttp://www.youtube.com/watch?v=ijxaAfa-xAk aAfa-xAk http://www.youtube.com/watch?v=ijxaAfa-xAk . Best regards, ___ Kamy Rahimi, MBA Cross Colors Communications, Inc. Phone: (650) 322-9777 k...@crosscolors.com blocked::mailto:kk...@crosscolors.com www.CrossColors.com http://www.crosscolors.com/ ___ On Sat, Jul 25, 2009 at 4:27 AM, Honest honestsucc...@gmail.com wrote: Hello, I would like to know that does google provides any paid support for android developer so that developer can progress fast and they have to do less searching. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Hiding Soft input like using BACK buton
*bump* On 20 Lip, 09:30, skyman krzysiek.bieli...@gmail.com wrote: *bump* On 13 Lip, 16:48, skyman krzysiek.bieli...@gmail.com wrote: *bump* On 11 Lip, 16:13, skyman krzysiek.bieli...@gmail.com wrote: Hello, In my app I have AutoCompleteTextView and search button. When user clicks enter or search an Intent is fired and new Activity is started. But in that new Activity SoftInput should be invisible, so I make ((InputMethodManager)getSystemService (INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(this.getCurrentFocus ().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); But when user clicks BACK and returns to activity with form he is unable to show soft input back by touching AutoCompleteTextView. He mus use trackball to select search button and than touch ACTextView. Bud when he is in form activity first time, shows soft input by touching AutoCompleteTextView and presses BACK button he is able to show soft Input by touching field. How can I hide soft input correctly (so it can be shwed back in intuitive way?) or hide it like BACK button does? Regs, Skyman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: GPS Project doesn't work on sdk 1.5
any idea?I don't want that somebody knows the problem but if someone can use the debug of Eclipse better than me and understand what is the problem it could be a huge help! On Jul 25, 1:23 am, Lorenz lorenzoteod...@gmail.com wrote: Hi,The project is reacheable from this linkhttp://www.androidiani.com/forum/non-riesco/2958-progetto-non-funzion There are three files. The first is a movements simulator ,due to the fact that from the virtual device isn't possible to use the GPS. The second is the main core, the client that receives coordinates by GPS and sends them to the server(that is the third file). I can't paste them on this page because they are too big. Please take a look !! regards On Jul 24, 6:15 pm, Jack Ha jack...@t-mobile.com wrote: Does logcat output show any error messages? Please copy/paste your source file and the manifest file here so that we can better help you. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 24, 3:03 am, Lorenz lorenzoteod...@gmail.com wrote: Hi to everyone, I've inherited aprojectthat worked on sdk 1.0, but when I try to use them on sdk 1.5 it crashes. I'm a beginner so I'm not able to understand where is the problem..So I hope that writing on this forum someone can help me..Theprojectconcerns the detection viaGPS coordinates and the notification of events close to the location where it was at that time .FIrst of all where can I post the files?? 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: Multitouch support in Donut?
On Sun, Jul 26, 2009 at 8:49 AM, quillquill...@163.com wrote: Look at here: http://phandroid.com/2009/07/25/morning-donuts/ http://groups.google.com/group/android-developers/msg/0f2c5cd313d9cd34 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can't get tabs to work with intents
Hello all, I try to make an plication with tabs using intents and activities to populate the different tabs. The layout seems OK but as soon as I hit a spinner on a tab populated by an Activity (Intent) it crashes (due to a null pointer). I made a small test application to reproduce the error. I'm sure I do something wrong but I can't seem to find out what. Thanks a lot for any help, Jouke === source (partly) === package com.jouke.test; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; public class Test extends TabActivity { private TabHost mTabHost; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab1); mTabHost = getTabHost(); mTabHost.addTab(mTabHost.newTabSpec(Tab1) .setIndicator(Tab1) .setContent(R.id.tab1)); Intent tab2 = new Intent(this.getApplicationContext (),tab2.class); mTabHost.addTab(mTabHost.newTabSpec(Tab2) .setIndicator(Tab2) .setContent(tab2)); } } package com.jouke.test; import android.app.TabActivity; public class tab1 extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab1); } } package com.jouke.test; import android.app.TabActivity; public class tab2 extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab2); } ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.jouke.test android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.Test android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.tab1 intent-filter action android:name=android.intent.action.EMBEDDED / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.tab2 intent-filter action android:name=android.intent.action.EMBEDDED / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest tab1.xml : ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content/ FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical android:id=@+id/tab1 TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=hallo / Spinner android:id=@+id/spinner1 android:layout_width=wrap_content android:layout_height=wrap_content android:entries=@array/spinnerItems/ /LinearLayout /FrameLayout /LinearLayout /TabHost tab2.xml : ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget
[android-developers] Designing a step sequencer
Hey all. This is my first post to the Android group. I grabbed the Android SDK a few days ago and have been playing around with it in the time that has elapsed since. I've built a few simple apps to get a feel for everything and have been generally pleased. In any case, I am posting here because I am interested in building an app with a step sequencer and am not quite sure how best to go about doing it. My idea is that the user would be presented with a row of 16 toggle switches, a tempo control, and a few buttons to select instruments (kick drum, snare, etc...this is basically an emulator of old- fashioned drum machines). Each instrument would have its own 16-step pattern and when the user pressed a play button, all of the individual patterns (which might more appropriately be called parts) would play back simultaneously. Accomplishing all of this would be relatively straightforward if Android/Dalvik had a javax.sound implementation (it includes midi tools and audio playback tools) but I know that it doesn't. I was thinking, then, that the best way to go about building my program would be to have a bunch of MediaPlayer instances and some sort of scheme for representing patterns as strings (maybe something as simple as 0s for no-hit and 1s for hit). I was thinking I'd keep these pattern strings in an XML file and update it every time the user changed the state of a toggle switch. For playback, I was thinking I'd parse the XML file such that I'd have a 16-element array of, let's say, 10 (if there are 10 instruments)- element arrays of 2-element arrays where the 2-element arrays consist of [(instrument), (hit/no hit)]. I'd then use a timer (set to user- selected Tempo) to step through the 16 element array and, when an instrument represented in the contained array had a hit state, call the start method of the corresponding MediaPlayer instance. So, that's my fairly convoluted solution to the problem. I am posting to the group because I am so new to the SDK and figured that I should probably ask of those more experienced whether there is some glaring problem with this solution or, perhaps, if there is a far more simple way to go about accomplishing what I'm trying to accomplish. Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] turn windows mobile phone to Android???
Hi, did anyone try to turn some windows mobile phone to Android phone? Does anyone have some tips about it??? The phone i want to turn to Android, runs on Marvell PXA310 regards, -- 2/204 - 2/224 - 2/255 - 2/281 - 14/24 - 17/53 - 36/4 ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Lock_layer error intermittently when stopping and starting a opengl SurfaceView
I'm having the same issue too when pressing home to leave the app, and going back into the app. Except sometimes when I compile, it'll regenerate without freezing but have a broken texture. Other times it'll just freeze without fullscreening, but will change screen orientation. Eventually if it does freeze, it asks if I want to force close. And this broken texture problem is also weird. If I slide out/in the keyboard with my G1, the app gets restarted and the texture is fixed. Also if I hit home, slide in/out the keyboard, and then go back into the app, I don't have an issue. This is REALLY weird, but no one seems to know what the problem is. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Rotate A View Permanently
I posted earlier today on this topic, but I'm re-posting as I haven't been able to locate my post via search. I apologize if this is indeed a double-post, but it seems something went wrong with the original. I've been trying to find a means of rotating a view such that it is flipped upside-down and stays that way. I found the Rotation Animation method, but I have been unable to find a means of keeping the view rotated. Repeating the animation doesn't suit my purposes, and in fact I don't want an animation at all if possible. What I would like is something akin to a transformation, except to be used on a TextView or a LinearLayout. I have considering overriding methods to accomplish this task by slightly modifying the animation code, but I'm not sure how extensive the work for this would be. Additionally, I'm not sure where to find the source for those methods. If anyone could recommend a means of accomplishing this task, whether it be by an override or perhaps something simple that I am missing, I would appreciate it very much. 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: how to use adb tool on SAMSUNG GALAXY?
Okay, I had time to check right now and with the patched ADB as well as with the unpatched (sdk r3 only!) version work fine under OpenSuSE 11.1 with the rule that I emailed earlier. Make sure to restart the computer so that the new Udev rules are taken into consideration. On Jul 24, 1:22 am, Chris R. christopher.rabo...@gmail.com wrote: I will let the group know if I manage to develop on my samsung phone. However I just checked and am using the android sdk 1.5 r3. Juat to check the update patch. I need is not in the current 1.5 r3 android sdk release. P.s.: just realized there is no android specific layout on Google groups. On Jul 23, 10:45 pm, dan raaka danra...@gmail.com wrote: android update adb is highly misleading .. at the source level .. essentially android script it being triggered to parse the addon directory for SDK-addon created by OEM, in that it is looking for ini file which specifies the vendor id. However, as a special case the SDK r3 version already has harcoded support for samsung Galaxy and a motorola (not sure what is the name) device .. -Dan On Thu, Jul 23, 2009 at 11:55 AM, Olaf Geibig olaf.gei...@googlemail.comwrote: My mini howto works with ubuntu. Maybe the udev rule is not needed or must be different for open suse. Please read the docs at http://developer.android.com/intl/de/guide/developing/device.htmland search the web for developing android under open suse. You just have to change two things to make it work with the galaxy: change the vendor id in the udev rule (if there is any) to 04e8 and use the patched adb binary from my previous post. If you make it work please post it here. good luck On 23 Jul., 16:17, Xionbox christopher.rabo...@gmail.com wrote: Hi, I'm trying to use the Samsung Galaxy on OpenSuSE 11.1 (Linux). I add the following line to /lib/udev/rules.d/50-udev-default.rules SUBSYSTEM==usb SYSFS{idVendor}==04e8, MODE=0666 I also created /etc/udev/rules.d/51-android.rules which has the exact same line. I also updated adb via android update adb and then I restarted the adb server. Even after upluging and repluging several times adb still doesn't list the device. Any idea on how the rule should be? Thanks in advance. On Jul 21, 1:21 am, Olaf Geibig olaf.gei...@googlemail.com wrote: Quick Howto for ubuntu: - download SDK 1.5 r3 - enable debug mode on the device: Settings - Applications - Development - USB debugging - add udev rule:http://developer.android.com/intl/de/guide/developing/ device.html but use Samsung's vendor id instead: SYSFS{idVendor} ==04e8 - replace the adb binary by this one: http://floe.butterbrot.org/external/adb.gz - to use ddms on a 64 bit system: http://coffeecokeandcode.blogspot.com/2009/07/ddms-on-ubuntu-64bit.html Patched adb thanks to Flori7500 as mentioned in my previous post. Cheers, Olaf On 18 Jul., 21:13, fexpop caspar...@googlemail.com wrote: Hi, on my device the build number is 76XXCSDCBALUM6375. It won't be found by adb, neither on Windows nor on Linux. Regards, Felix On Jul 18, 8:50 pm, dan raaka danra...@gmail.com wrote: can you post what you see in the settings-about .. about the build info you have .. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: R.java is not being generated
Hi, I have meet the same problem before, maybe you can try it. I just found one image file in res/drawable/ folder was bad (but it still can view it by acdsee problem) so I remove all image file and re-put it one-by-one then find what image file is not good. Just replace the file, then R.java is ok. p.s. Because before the R.java can't generate, I put some image files to res/drawable, so I just check the image files and found this problem, maybe you should think about what you do before the problem appear. Ryan Daniel Green 提到: The only issues that come up with the resources occur when I try to modify and save one of the files. This is because it is not regenerating the R.java, so I believe it is a symptom, not a cause. As far as the .project is concerned, I've checked the file and compared it to working ones and it is exactly the same. On Jul 24, 5:56�am, Christian christiangruenb...@googlemail.com wrote: Maybe your .project has not the nature or the entry for the builder anymore? On Jul 23, 7:23 pm, Daniel Green legendra...@gmail.com wrote: I've been working on a project for several weeks now, and just tonight I started having a problem. TheR.javafile is no longer being generated. I've attempted to clean the project (the first time I do this it removes theR.javafile but doesn't regenerate it) and have tried uninstalling and reinstalling the SDK. I've also tried resetting adb to no avail. This problem does not occur in my other Android projects. They clean just fine and regenerate theR.javafile like nothing is wrong. This particular project is the only one suffering from this problem. Does anyone have any insight? Thanks, Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is there a way to control the Android phone or do a automated test using a remote PC?
I am a tester, is there a way to control the Android phone or do the automated testing using a remote PC? Or how can I dev such a automted tools, Use which technology? 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] AlertDialogSamples: digit input dialog instead of text entry dialog.
Hello all, Can I make a pop-up alert dialog for digit input along with up-down button instead of text entry dialog? Could you please let me know if you know how to do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Tut (SDK 1.5) Get google account of user
Hi Karl, I call getCredentials in my Activity like this: GoogleLoginServiceHelper.getCredentials(this, 54321, null, GoogleLoginServiceConstants.REQUIRE_GOOGLE, // require google null, // This means we get the credentials for GOOGLE_AUTH.OTHER_SERVICES false); then override onActivityResult: @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent){ super.onActivityResult(requestCode, resultCode, intent); if(requestCode == 54321){ authToken = intent.getStringExtra (GoogleLoginServiceConstants.AUTHTOKEN_KEY); } } Hope that helps. On Jul 15, 11:10 pm, kostmo kos...@gmail.com wrote: Hi ubikdroid, Would you be able to tell me more about how you used getCredentials? I'm trying this variation: getCredentials (android.app.Activity,int,android.os.Bundle, java.lang.String, java.lang.String, boolean) Called from my activity, it is getCredentials(this, 345, null, email, null, false); Where 'email' is obtained from getAccount beforehand. I have added com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES to the manifest. As opposed to the getAccount method, which returned an array containing the email address, the getCredentials method called with the above arguments returns null. With what arguments are you calling getCredentials? The only docs I can find relating to this (http://www.androidjavadoc.com/m5-rc15/com/google/android/googleapps/GoogleLo...) seem to be outdated (wrong number of arguments). Thanks, Karl On Jun 9, 6:58 am, ubikdroid markst3v...@googlemail.com wrote: Woot! I got it working. I tried before with the service set to reader but I got a SecurityException thrown even though I had the permission in the manifest. However, if you leave the service null in the getCredentials call and add the permission com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES to the manifest then it works! Thanks for the help Sujay. I was working at this for a long time! On Jun 9, 9:18 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: as i already said u need to explore the getcredentials method... in the params of that method u need to specfy wat u need n for which service... if this is done then u cangetthe sid with ease... -- Regards, Sujay Josh Billingshttp://www.brainyquote.com/quotes/authors/j/josh_billings.html - Every man has his follies - and often they are the most interesting thing he has got. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Time and resources needed to develop app?
I am currently putting together a business plan for an app. Whilst I am into technology I am not a programmer, so I don't know much about how hard it is for coders to develop for Android. For those of you who have developed apps already, I was hoping you might be able to shed some light on it for me. Ideally if you could reply about the following it would by very useful: (a) the type of application (b) the length of time it took to go from from initial idea, through development and testing, to completed app (c) the number of coders working on it Thanks for any help you can offer and keep up the good work on Android! P.S. Any programmers based in Sydney Australia feel free to get in touch! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 the main menu of the app acore come out with a halt on my platform.
The main menu of acore in idle shows up slowly with a halt.Seems not so smoothly. And how can i improve performance of surface. I found that the frames from Camera with color mode rgb565 shows slowly.And the FSP from Camsensor is about 15fps but show up only at 5 to 7,how can i improve it ,thanks a lot~ 2009-07-26 youngzi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: MediaController is not working properly with MediaPlayer
Hi Manoj, I'm having trouble with this too. How did you get it working? (The Mediacontroller won't display on the Mediaplayer) On Jun 22, 4:48 am, manoj manojkumar.m...@gmail.com wrote: Finally, I solved it!!! On Jun 22, 2:26 pm, manoj manojkumar.m...@gmail.com wrote: Hi, why can't my seek bar (with time) is not updating according to mediaplayer time. Can any one please help me. Thanks, Manoj. On Jun 22, 11:37 am, manoj manojkumar.m...@gmail.com wrote: Hi, I want to enable the MediaController for the MediaPlayer. For this I have written the code like this: public class AudioPlayerNew extends Activity implements MediaPlayerControl,MediaPlayer.OnPreparedListener,MediaPlayer.OnBufferingUp dateListener { MediaController mediaController; MediaPlayer mMediaPlayer; private String path = /sdcard/Kaarulo Shikarukelle.mp3; int percent = 1; boolean playerState = true; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.sdcard_media_view); mediaController = (MediaController) findViewById (R.id.MediaController01); playAudio(path); mediaController.setAnchorView( findViewById (R.layout.sdcard_media_view)); mediaController.setMediaPlayer(this); mediaController.bringToFront(); mediaController.setEnabled(true); } private void playAudio(String media) { try { mMediaPlayer = new MediaPlayer(); mMediaPlayer.setDataSource(path); mMediaPlayer.prepare(); mMediaPlayer.setOnSeekCompleteListener(this); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnErrorListener(this); } catch (Exception e) { Log.e(TAG, error: + e.getMessage(), e); } } @Override protected void onDestroy() { super.onDestroy(); // TODO Auto-generated method stub dismissDialog(); if(null != mMediaPlayer) { mMediaPlayer.release(); mMediaPlayer = null; } wakeLock.release(); } @Override public int getBufferPercentage() { System.out.println(MediaController.getBufferPercentage() called!!!); // TODO Auto-generated method stub return percent; } @Override public int getCurrentPosition() { System.out.println(MediaController.getCurrentPosition() called!!!); // TODO Auto-generated method stub return mMediaPlayer.getCurrentPosition(); } @Override public int getDuration() { System.out.println(MediaController.getDuration() called!!!); // TODO Auto-generated method stub return mMediaPlayer.getDuration(); } @Override public boolean isPlaying() { //System.out.println(MediaController.isPlaying() called!!!); // TODO Auto-generated method stub return playerState; } @Override public void pause() { //System.out.println(MediaController.pause() called!!!); // TODO Auto-generated method stub if(null != mMediaPlayer) { mMediaPlayer.pause(); } playerState = false; } @Override public void seekTo(int pos) { // TODO Auto-generated method stub //System.out.println(MediaController.seekTo() called!!!); if(mMediaPlayer != null) { mMediaPlayer.seekTo(pos); } } @Override public void start() { //System.out.println(MediaController.start() called!!!); // TODO Auto-generated method stub if(null != mMediaPlayer )// !mMediaPlayer.isPlaying()) { mMediaPlayer.start(); } playerState = true; } @Override public void onPrepared(MediaPlayer arg0) {
[android-developers] Re: Android Toast Duration
Toast.LENGTH_LONG is only a constant number of milliseconds. You can use any number of milliseconds if you like but there might be a maximum. Example: t.setDuration(); Scott On Jul 23, 10:31 pm, Mohamed Amir mohamed.a...@gmail.com wrote: Thank you for all those who replied. But Toast is the only UI component I could find that appears over the incoming call dialog. I need to show some information when an incoming call arrives. This is why I am using the Toast. On Jul 24, 1:34 am, Dianne Hackborn hack...@android.com wrote: It sounds like you are abusing toasts. How about just showing your own dialog that is set up to not get focus or be touchable? You can use this background to make it look like a toast: http://developer.android.com/reference/android/R.drawable.html#toast_... And this animation style for the same fade effect: http://developer.android.com/reference/android/R.style.html#Animation... On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir mohamed.a...@gmail.comwrote: Is there a way to make the Toast last for longer time? I have tried this code Toast t = new Toast(this); View v = View.inflate(this, R.toast_layout, null); t.setView(v); t.setDuration(Toast.LENGTH_LONG); t.show(); t.show(); t.show(); By calling show() method more than once, I hoped this would give a similar effect to lasting for longer time with some flickering, but I didn't see any difference. Is there some limit to the number of times that show() method can be called on the same Toast? e.g. just once per toast instance and further calling has no effect? Any ideas to increase that duration? Thank you. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SSL Certificate HTTPClient
I have same problem.. did you solve this? if you did, please give me a solution ... On 5월28일, 오후10시05분, Markus rookee1...@googlemail.com wrote: Hello, I had configure a Tomcat webserver with SSL and client autification. So I need a clienKey.p12 File to visit the site. If I import the key into Firefox, it works fine. So I tried to develop a Client from normal Java. That works: --- final static String KEYSTORE_FILE = file:///C:/Programme/Java/ jdk1.6.0_13/bin/clientKey.p12; final static String PASSWORD = rAtIoNaLcLiEnT; public static void main(String[] args) throws Exception { Protocol authhttps = new Protocol(https, new AuthSSLProtocolSocketFactory(new URL(KEYSTORE_FILE), PASSWORD,new URL (KEYSTORE_FILE), PASSWORD), 8443); HttpClient client = new HttpClient(); client.getHostConfiguration().setHost(localhost, 8443, authhttps); GetMethod httpget = new GetMethod(/Head/android/services/login.do? user=Jaeckpassword=asd); int statuscode = client.executeMethod(httpget); if(statuscode == 200) { String xmlResponse = httpget.getResponseBodyAsString(); System.out.println(xmlResponse); } else { System.err.println(Statuscode: + statuscode); System.err.println(Fehler beim Aufruf des Webservice); } } --- Now I try to develope a Client into Android and I am getting crazy Here my two Android implementation: --- boolean first = true; KeyStore key = KeyStoreHelper.getKeyStore(getApplication()); if(first) { SSLSocketFactory sslSocketFactory = new SSLSocketFactory(key, rAtIoNaLcLiEnT); HttpParams parameters = new BasicHttpParams(); SchemeRegistry schemeRegistry = new SchemeRegistry(); // sslSocketFactory.setHostnameVerifier (SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); schemeRegistry.register(new Scheme(https, sslSocketFactory, 8443)); ClientConnectionManager manager = new ThreadSafeClientConnManager (parameters, schemeRegistry); HttpClient httpClient = new DefaultHttpClient(manager, parameters); httpClient.getParams().setParameter(http.connection.timeout, new Integer(3000)); HttpGet ping = new HttpGet(https://192.168.0.22:8443;); HttpResponse response = httpClient.execute(ping); int status = response.getStatusLine().getStatusCode(); if(status == 200) { InputStream content = response.getEntity().getContent(); int c = -1; StringBuffer buffer = new StringBuffer(); while((c=content.read()) != -1) { buffer.append((char)c); } content.close(); Log.i(EXAMPLE, buffer.toString()); } else { Log.i(EXAMPLE, status + ); } } else { KeyManagerFactory kmf = KeyManagerFactory.getInstance(X509); kmf.init(key, rAtIoNaLcLiEnT.toCharArray()); TrustManagerFactory tmf = TrustManagerFactory.getInstance (X509); tmf.init(key); SSLContext sc = SSLContext.getInstance(TLS); sc.init(kmf.getKeyManagers(), tmf.getTrustManagers(), new SecureRandom()); javax.net.ssl.SSLSocketFactory f = sc.getSocketFactory(); SSLSocket c = (SSLSocket) f.createSocket(192.168.0.22, 8443); c.startHandshake(); BufferedReader r = new BufferedReader(new InputStreamReader (c.getInputStream())); } --- I always geht the following Exception: java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate (external/openssl/ssl/s3_pkt.c:1053 0x1be510:0x0003) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect (Native Method) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:308) at org.apache.http.conn.ssl.AbstractVerifier.verify
[android-developers] Build failure
Dear Androiders, I am trying to build the source for the latest branch, according to the instructions at http://source.android.com/download#TOC-Building-the-code. I get an error, though (see the full listing at the end of this message) ld: cannot find -lz I'm trying to build this on a Linux workstation running Ubuntu Hardy Heron (with some variations). The hardware is Intel dual-core 64bit and I'm using a 64-bit Ubuntu. Full listing of build: build/core/product_config.mk:261: WARNING: adding test OTA key TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID= build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h' build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h' Install: out/host/linux-x86/framework/clearsilver.jar Install: out/host/linux-x86/framework/droiddoc.jar Install: out/host/linux-x86/lib/libneo_util.so Install: out/host/linux-x86/lib/libneo_cs.so Install: out/host/linux-x86/lib/libneo_cgi.so Install: out/host/linux-x86/lib/libclearsilver-jni.so Copying out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar Install: out/host/linux-x86/framework/dx.jar Install: out/host/linux-x86/bin/dx host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt) /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/bin/../lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/bin/../lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 do i run the emulator?
How do i run the 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is this guy for real?
I found this website today from an email a co-worker sent me… www.moneyitonline.com I watched his video on this site, and im blown away that he’s making over $2,000,000 a year. Has anyone in the group tried this program? Please let me know! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 there a way to control the Android phone or do a automated test using a remote PC?
I am a tester, is there a way to control the Android phone or do the automated testing using a remote PC? Or how can I dev such a automted tools, Use which technology? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How do i run the emulator?
How do i run the 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Add Share on chooser Send Menu
I´d like to know if any 3rd part app can be added to the menu that is called on Intent intent = new Intent(Intent.ACTION_SEND); startActivity(Intent.createChooser(intent , Send options)); For example an application that shares to Flickr or Facebook. or if this is something that should be added in the operational system source code. On android 1.5 the Picasa was added the list that on previous versions only contained E-mail and Messaging. My question is how to make this available so that any developer can use this to make applications that share pictures, etc. Cibele --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] ContentProvider questions
I have some questions about how the ContentProvider works behind the scenes. 1. The ContentProvider class is registered in the kernel when the application is installed and then what? Or how do the other applications exactly manage to access the application data? 2. When is actually onCreate called? The documentation is pretty vague... 3. What happens if two applications register the same provider class? (I have more applications that must communicate between eachother. The content provider must be registered, of course, along with the first application installed on the system. The problem here is that I don't know which one will be, so I want to deliver the ContentProvider with all the applications) 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 -~--~~~~--~~--~--~---
[android-developers] will donut be available for the mytouch 3g, or just the g1?
will donut be available for the mytouch 3g or just the g1? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Video playlist and javax.microedition
Anyone knows if Android 1.5 support video playlist format such SMIL? Also Android SDK doesn't include all the classes in J2ME such as: javax.microedition.media.protocol.DataSource Thanks Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Building a step-sequencer
Hey all. This is my first post to the Android group. I grabbed the Android SDK a few days ago and have been playing around with it in the time that has elapsed since. I've built a few simple apps to get a feel for everything and have been generally pleased. In any case, I am posting here because I am interested in building an app with a step sequencer and am not quite sure how best to go about doing it. My idea is that the user would be presented with a row of 16 toggle switches, a tempo control, and a few buttons to select instruments (kick drum, snare, etc...this is basically an emulator of old- fashioned drum machines). Each instrument would have its own 16-step pattern and when the user pressed a play button, all of the individual patterns (which might more appropriately be called parts) would play back simultaneously. Accomplishing all of this would be relatively straightforward if Android/Dalvik had a javax.sound implementation (it includes midi tools and audio playback tools) but I know that it doesn't. I was thinking, then, that the best way to go about building my program would be to have a bunch of MediaPlayer instances and some sort of scheme for representing patterns as strings (maybe something as simple as 0s for no-hit and 1s for hit). I was thinking I'd keep these pattern strings in an XML file and update it every time the user changed the state of a toggle switch. For playback, I was thinking I'd parse the XML file such that I'd have a 16-element array of, let's say, 10 (if there are 10 instruments)- element arrays of 2-element arrays where the 2-element arrays consist of [(instrument), (hit/no hit)]. I'd then use a timer (set to user- selected Tempo) to step through the 16 element array and, when an instrument represented in the contained array had a hit state, call the start method of the corresponding MediaPlayer instance. So, that's my fairly convoluted solution to the problem. I am posting to the group because I am so new to the SDK and figured that I should probably ask of those more experienced whether there is some glaring problem with this solution or, perhaps, if there is a far more simple way to go about accomplishing what I'm trying to accomplish. Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Flipping / Rotating TextView (or layout) upside-down
Hello, I'm trying to find a way to rotate a View, or (more conveniently) an entire layout, upside down and have it stay that way. I found the rotation and animation classes in the SDK, and these come close to what I want, but at the end of the animation I want my Layout to stay rotated; repeating the animation or just flipping back right- side-up doesn't help me with my app unfortunately. The only thing I can think of so far would be to find the source code for the rotate class, and override it such that the ...and then flip it back around to be right-side-up code never happens. I'm not sure exactly where I'd find the original rotate code for reference if I were to do something that extensive however. I've found references online to the full android source - is that basically what I'd be looking at downloading to be able to attempt something like this? Am I missing a simple option on the rotation that would let it just stay put after I rotate it? Any help would be very much appreciated! 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] ANR after stopping application
Hi, I have a problem where the application goes ANR after it has been shutdown (i.e. onDestroy() is called) Specifically, it does not go ANR immediately, but if I try to open another app, it gives the error. From the logs I see :- I/Msntop ( 740): OnDestroy I/ActivityManager( 563): Stopping service: com.android.msntop/.services.PingService I/PINGSERVICE( 740): in Destroy W/ActivityManager( 563): Timeout executing service: ServiceRecord {4374f708 com.android.msntop/.services.PingService} I/ActivityManager( 563): ANR (application not responding) in process: com.android.msntop I/ActivityManager( 563): Annotation: Executing service ComponentInfo {com.android.msntop/com.android.msntop.services.PingService} From traces.txt main prio=5 tid=3 WAIT | group=main sCount=1 dsCount=0 s=0 obj=0x40018e70 | sysTid=740 nice=0 sched=0/0 handle=-1092596580 at java.lang.Object.wait(Native Method) - waiting on 0x1ae810 (a android.os.MessageQueue) Any thoughts. Oh more details and full logs are available at :- http://code.google.com/p/msntop/issues/detail?id=13 TIA, Devendra Laulkar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] [URGENT]Drag Screen like Android Home Screen
Hi! I'm really need to know how I can do the drag screen like home screen. Anyone can help me? An example will help so much :-D 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] A new way to promote and manage your Android Applications!
Hi to everyone, First of all, as a fan of Android and non-developer I would like to participate to this rise of this platform. The ONLY way I've found to promote this platform and get Android being a leader in term of Mobile phone (and I hope soon) other devices OS is to talk about the huge potential of Android platform in my blog ( newtekno.over-blog.com) and also to help developpers on their activities and applications management thru a new Android Market Directory: android.touch-market.com This website is still on its *beta* version and it will evolve to offers the most complete set of features to: 1st: the developers - You will be able to manage your own application pages (coming very soon) - You will be able to interact directly with end-users (coming next) - Send Newsletter and keep peoples informed of your work (coming next) - Promote your application on touch-market home page (coming next) - Define more accuratly your applications specification (Minimum OS version, supported languages and more...) 2nd: the end-users (How many time I've seen peoples asking for Android Apps List on the different forums) - Easy/Simple way to search for an application o By application name o By keywords o By category o By price (paid/free) o etc... etc... - Get more information as in Android Market application o Application Name o Description o Price o Size o Dev website o etc... o The + of Touch-Market Website? - 3D codebar (Direct link to the application on Android Market - on your device) - Application Screenshots (WYSIWYG - What You See Is What You Get) - And more coming soon 3rd: the companies - Who is the developer? How to contact him? - Is he offering any services? or is he available to develop for others? - etc... etc... Hope this will help all of you to get the best and more from Android Platform. Best Regards, Mohamed hamdouni Co-founder and Product Manager of www.touch-market.com Ghadir Saadé Co-founder and Technical Manager of www.touch-market.com If you have any question or if you need more details, do not hesitate to contact us at touchmar...@gmail.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] Farsi font for HTC Dream
Hi How can I get Farsi font on my HTC Dream Android phone? Saeed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Buying a anroid Dev in Canada?
Hello I have been looking into purchasing a dev phone and I saw some posts here about a ridiculous shipping fee to Canada. Is that still the case? I'm hesitant to get a subscription to the marketplace just to see the price. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: DD command
Date: Sat, 25 Jul 2009 06:49:39 -0700 Subject: [android-developers] Re: DD command From: sche...@googlemail.com To: android-developers@googlegroups.com i'm interested in that, too! On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote: Hi guys, it's possible execute DD command from my java application? I need to copy internal flash memory in a sdcard. Can anyone help me? PS.Sorry for my poor english. _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Protocol Buffers (protobuf)
FYI: The next release of protocol buffers (2.2.0, which I'm working on pushing now, but could take a couple weeks depending on how many unexpected issues I run into) introduces a new lite version of the runtime which omits lesser-used features like descriptors and reflection. This also avoids a lot of initialization work. I haven't tested on Android myself, but another developer reported to me that it completely fixes the initialization slowness that you're seeing here. The lite runtime is also much smaller in terms of binary footprint, which should be helpful on Android and other mobile platforms. On Jul 21, 3:57 pm, Micah mi...@ourmailbox.net wrote: When using Protocol Buffers with Android (running in the Windows VM) I'm noticing that the first time I instantiate a protocol buffer based class Android lags for some time. When I step through it looks like it's spending a lot of time dynamically loading the protocol buffer classes. Is there something I can do to speed up this process? I haven't tested yet on a physical device, so the delay might not be as bad but in the VM it takes about 30 - 45 seconds to load all the classes and get past that first message instantiation. What I did was downloaded the Protocol Buffers source code. Compiled the .java files. Stuffed them into a .jar. Added the .jar as an external library to my Eclipse project. Generated the .java classes from the .proto files. Added the generated .java files to my project. Ran my project. I'm not sure if I'm doing something wrong it terms of how to reference external libraries with an Android project, but 30-45 seconds seems like a very long time to wait on a 2.6GHz machine. Also, I recently learned that android uses Protocol Buffers internally. Will this cause any sort of conflicts with my included .jar that could be the problem? I *think* the namespace is different but I'm not entirely sure. Lastly. Why did Google use Protocol Buffers internally and not make it available to SDK developers. :( This makes me very sad knowing that it's all right there and I can't use it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Tabs and intents
Hello all, I'm trying to use a tabhost and populate tabs using intents and activities. I've search all the examples I could find and I have something that gives the right layout but crashes as soon as I open a dialog. To reproduce it I made a small test program with 2 tabs, one filled using an xml layout and one using an intend. When I try to open the spinner in the second tab it crashes complaining about a null pointer. I'm sure I did something stupid but I can't figure out what ... please help. Jouke SOURCE: --- Test.java package com.jouke.test; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; public class Test extends TabActivity { private TabHost mTabHost; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab1); mTabHost = getTabHost(); mTabHost.addTab(mTabHost.newTabSpec(Tab1) .setIndicator(Tab1) .setContent(R.id.tab1)); Intent tab2 = new Intent(this.getApplicationContext (),tab2.class); mTabHost.addTab(mTabHost.newTabSpec(Tab2) .setIndicator(Tab2) .setContent(tab2)); } } Tab1.java package com.jouke.test; import android.app.TabActivity; import android.os.Bundle; public class tab1 extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab1); } } Tab2.java package com.jouke.test; import android.app.TabActivity; import android.os.Bundle; public class tab2 extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab2); } } Test.manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.jouke.test android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.Test android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.tab1 intent-filter action android:name=android.intent.action.EMBEDDED / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.tab2 intent-filter action android:name=android.intent.action.EMBEDDED / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest --- tab1.xml ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content/ FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical android:id=@+id/tab1 TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=hallo / Spinner android:id=@+id/spinner1 android:layout_width=wrap_content android:layout_height=wrap_content android:entries=@array/spinnerItems/ /LinearLayout /FrameLayout /LinearLayout /TabHost --- tab2.xml ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent
[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?
Hi, @Xavier : Seems the adb of r3 doesn't work perfectly for Samsung. Tried on Xp and seven After tweaking the .inf file to install drivers for my Samsung i7500 (otherwise Windows doesn't accept the drivers), I can't manage to make my phone visible under ddms (Under Windows XP). I have the last SDK on my computer off course (1.5 r3). Is anybody able to see his Samsung phone under ddms on XP ? My build : 76XXCSDCBALUM6375 Thanks Akex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Flipping / Rotating TextView (or layout) upside-down
All you have to do is set the fillAfter property of the animation to true. On Fri, Jul 24, 2009 at 11:27 AM, Josh Hoffmankeshis...@gmail.com wrote: Hello, I'm trying to find a way to rotate a View, or (more conveniently) an entire layout, upside down and have it stay that way. I found the rotation and animation classes in the SDK, and these come close to what I want, but at the end of the animation I want my Layout to stay rotated; repeating the animation or just flipping back right- side-up doesn't help me with my app unfortunately. The only thing I can think of so far would be to find the source code for the rotate class, and override it such that the ...and then flip it back around to be right-side-up code never happens. I'm not sure exactly where I'd find the original rotate code for reference if I were to do something that extensive however. I've found references online to the full android source - is that basically what I'd be looking at downloading to be able to attempt something like this? Am I missing a simple option on the rotation that would let it just stay put after I rotate it? Any help would be very much appreciated! Thank you! -- 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: [URGENT]Drag Screen like Android Home Screen
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=summary On Sun, Jul 26, 2009 at 5:49 AM, Flavio Montenegro Filhofilhovi...@gmail.com wrote: Hi! I'm really need to know how I can do the drag screen like home screen. Anyone can help me? An example will help so much :-D Thanks! -- 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: ContentProvider questions
On Fri, Jul 24, 2009 at 11:46 PM, loctarar andrei.bu...@gmail.com wrote: 1. The ContentProvider class is registered in the kernel when the application is installed and then what? Or how do the other applications exactly manage to access the application data? The kernel is not involved at all. It is declared in the application's manifest, so the package manager knows about it and the system uses a query on the package manager to find the provider for a particular content authority. 2. When is actually onCreate called? The documentation is pretty vague... Each time the process that hosts that content provider is started up.\ 3. What happens if two applications register the same provider class? (I have more applications that must communicate between eachother. The content provider must be registered, of course, along with the first application installed on the system. The problem here is that I don't know which one will be, so I want to deliver the ContentProvider with all the applications) The class is irrelevant. The authority is the identity of the provider, and the system doesn't allow you to install an .apk containing a provider for an authority that is already defined in another installed .apk. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Beginner Application Development
Hi, guys. I've been teaching myself Java over the last few weeks. I already know several OOP languages, so i was not too complicated. I have just learned some basic Swing and I now want to develop a simple app. How do I use Android-style Swing and custom graphics to do this? 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 -~--~~~~--~~--~--~---
[android-developers] Re: Show notification dialog during incoming call.
Hi Ronald, My guess is that they are using an activity with transparent background. Just use handler.postDelayed(...) in your PhoneStateListener with 1 or 2 seconds delay to make sure your activity will be displayed on top of the incoming call screen so it will look like a popup on top of it. Also, make sure you finish your activity when the phone state changes again (i.e. user answers or rejects the call). On Jul 21, 3:57 pm, Ronald Pompa ronald.po...@gmail.com wrote: Hi. I've got a PhoneStateListener to see call state changes, when a call is incoming I make my app show a toast notification to display caller data which I retrieve from a search service. Due to toasts limitation, i would like to show a dialog instead which allows me to show the notification longer and customize it with imageviews etc... The problem is that when I implement the dialog and execute the show method in the state listener class, my application crashes. Does anyone know how to implement this and have an example? It seems like WhitePages have solved this with their Caller ID app. http://blog.whitepages.com/2009/02/27/caller-id-by-whitepages-a-new-a... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 there a way to control the Android phone or do a automated test using a remote PC?
For a emulator,you can telnet localhost 5554 to send instructions.As to a real device,I'm afraid you cann't do it this way; Probably you'd have to run an agent written by yourself to acchive this goal;Hope this helps! BTW,I'm also working on android software testing. On Jul 26, 11:25 am, chicochen chic...@gmail.com wrote: I am a tester, is there a way to control the Android phone or do the automated testing using a remote PC? Or how can I dev such a automted tools, Use which technology? 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] Open/Close Soft KeyBoard
HI, Does anyone knows how to open or close soft keyboard by program code (not for application development)? 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: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE in 1.0 and 1.5
Hi, Dianne: Can you tell me which update fix this bug? I tried to fix it, but failed. I am really appreciated if you can tell me which update fix it. Thanks. On Jun 26, 1:25 pm, Dianne Hackborn hack...@android.com wrote: There was a bug in 1.5 with this, that was fixed in the most recent security update. You apparently aren't running a system with that security update. On Thu, Jun 25, 2009 at 8:53 PM, hunter jun.hun...@gmail.com wrote: Hi, all: I have a application with android:sharedUserId=android.uid.system in its AndroidManifest.xml. This application is not signed with the platform key. In 1.0, I use adb install to install it but failed with INSTALL_FAILED_SHARED_USER_INCOMPATIBLE which is OK because it is not signed with the proper key. But in 1.5, I successfully installed this application and it worked well. Can anyone tell me why? Thanks. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: my zoom controls can't put in everywhere???
or it just can use in the mapview and webview? On 7月27日, 上午1時15分, tstanly tsai.sta...@gmail.com wrote: hi all, i add a zoomcontrols in my view, not in the webview or mapview, but when i click the zoom in/out, the view can't in/out? thanks my code is: == mZoomControls1=(mZoomControls1)findViewById(r.id.zc); mZoomControls1.show(); /* zoom controls in */ mZoomControls1.setOnZoomInClickListener(new ZoomControls.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub mZoomControls1.setIsZoomInEnabled (true); mZoomControls1.setIsZoomOutEnabled (true); } }); /* zoom controls out */ mZoomControls1.setOnZoomOutClickListener(new ZoomControls.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub mZoomControls1.setIsZoomInEnabled (true); mZoomControls1.setIsZoomOutEnabled (true); } }); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: DD command
You can find dd within the busybox tool kit for Android. http://benno.id.au/blog/2007/11/14/android-busybox -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 26, 6:18 am, Unrealshade sche...@googlemail.com wrote: nah, sorry, don't know anything about this topic... i just hope i find dd for android. if i do i will write here how i did it, of course. best luck to you! =) On Jul 26, 12:04 pm, Francesco Pace paxa...@gmail.com wrote: I don't know methods for implementing this schema. I also think that there are even ways to make a logical copy of the FS. You know if can I perform a CHMOD on directories with Android NDK? Thanks :) 2009/7/25 Unrealshade sche...@googlemail.com i'm interested in that, too! On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote: Hi guys, it's possible execute DD command from my java application? I need to copy internal flash memory in a sdcard. Can anyone help me? PS.Sorry for my poor english. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: HTC Hero has multi-touch. SDK support?
On Jul 25, 6:26 pm, Romain Guy romain...@google.com wrote: Donut is NOT Android 2.0 and there's no multi-touch support in Donut. Will 2.0 have multi-touch though? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 open or close the soft keyboard by code
Does anyone knows how to open or close the soft keyboard by code not for application development? 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: How to open or close the soft keyboard by code
http://groups.google.com/group/android-developers/browse_thread/thread/180530f680374493 Evan Charlton On Jul 26, 10:38 pm, Rain rainli1...@gmail.com wrote: Does anyone knows how to open or close the soft keyboard by code not for application development? 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: Communication between two android emulators located on two PCs connected via LAN
Have you found a solution for your problem yet? On the Android documentation I have seen that port forwarding is right now only supported for TCP connection (http://developer.android.com/ guide/developing/tools/adb.html#forwardports). I experienced with Voip and SIP on the Android platform using a real device is much faster to setup than using the emulator. Furthermore you might run in some NAT issues which you have to resolve on the client when you have no SIP server involved in your setup. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 4, 2:49 am, upi upendra.chint...@gmail.com wrote: Hi, Please help me, I have been struggling for the solution for more than a month. I am trying to port a VoIP application based on SIP protocol to android. I want to test this application first on two emulators running on two different PCs connected via LAN. The problem is that, the communication is not happening when I run the application on two PCs. The same application works when I run it's non-android version on the same PC's. I have identified the following problem. Let's say there are two computers C1(192.168.1.101), C2(192.168.1.102) connected in a LAN. Emulator E1 is running on C1 Emulator E2 is running on C2 The application uses UDP protocol and the port being used is 5060 on both computers. I have setup port forwarding on both the emulators. This is the command used for that in Android console. redir add udp:5060:5060 When we make a voip call from E1 with the URL 192.168.1.102:5060, then E2 responds to the call, but what ever E2 sends in response is not coming back to E1, and hence E1 is timing out. When I observed the log files, actually E2 is sending the response to 10.0.2.2:5060, which is the C2's loop back address(127.0.0.1). How do we resolve this issue? I have gone through the developer guide where they have mentioned about two emulators communicating on single PC. But looks like this concept doesn't work when we run emulators on two different computers. I tried 'redir' command for port forwarding and added INTERNET permission, still it doesn't work. My question is, Is it possible to implement this communication on two emulators? and if yes, How to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: HTC Hero has multi-touch. SDK support?
2.0 has not been announced, no matter what any bloggers say. Android 2.0 could be 10 years from now for all we know. Evan Charlton On Sun, Jul 26, 2009 at 10:32 PM, patrick aljordpatc...@gmail.com wrote: On Jul 25, 6:26 pm, Romain Guy romain...@google.com wrote: Donut is NOT Android 2.0 and there's no multi-touch support in Donut. Will 2.0 have multi-touch though? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 open or close the soft keyboard by code
Thanks Evan I'm sorry to forgot to say that may SDK is 0.9 Beta,so the inputmethod class is not inclued,besides that,i want to open or close the key board not using in an activity.Could you tell me some way else to solve my problem? Thanks for your response. On 7月27日, 上午10时40分, Evan Charlton evancharl...@gmail.com wrote: http://groups.google.com/group/android-developers/browse_thread/threa... Evan Charlton On Jul 26, 10:38 pm, Rain rainli1...@gmail.com wrote: Does anyone knows how to open or close the soft keyboard by code not for application development? 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] Why I got the error Sorry, this video cannot be played
My code was working before. I don't why now i got the error. My application use g1 phone recording an 3gp video, Then I use following code try to play it, however I got an error Sorry this video cannot be played. This happened seems after an update from Tmobile. Does anyone has same experience? My code is below: public class VideoPlay extends Activity implements MediaPlayer.OnCompletionListener { private VideoView mVideoView; private Uri mUri; public void onCreate(Bundle icicle) { super.onCreate(icicle); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.videoplay); mVideoView = (VideoView) findViewById(R.id.video_play); mUri=Uri.parse(Common.mRecordedVideo.getAbsolutePath()); // mUri=Uri.parse(Common.mRecordedVideo.getAbsolutePath()); // mVideoView.setOnErrorListener(this); mVideoView.setOnCompletionListener(this); mVideoView.setVideoURI(mUri); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); // make the video view handle keys for seeking and pausing mVideoView.start(); } @Override public void onPause() { mVideoView.stopPlayback(); super.onPause(); } public boolean onError(MediaPlayer player, int arg1, int arg2) { return false; } public void onCompletion(MediaPlayer mp) { finish(); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 close Location Manager service
hi all, it' so strange about close gps location manager, the gps signal dosen't stop. my code is: ==code=== public class g extends MapActivity{ private LocationManager mLocationManager01; @Override protected void onCreate(Bundle savedInstanceState) { mLocationManager01 = (LocationManager)getSystemService (Context.LOCATION_SERVICE); . } } and my stop code is: mLocationManager01.removeUpdates(mLocationListener01);//stop gps service however, this stop code I write into the onDetroy(),onPause(),onStop(),finish (), but sometimes the gps signal will not stop expectly. something wrong?? 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: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE in 1.0 and 1.5
It was fixed in the last security update (not the one that just came out, the one before). Sorry I don't recall the build name. On Sun, Jul 26, 2009 at 7:12 PM, hunter jun.hun...@gmail.com wrote: Hi, Dianne: Can you tell me which update fix this bug? I tried to fix it, but failed. I am really appreciated if you can tell me which update fix it. Thanks. On Jun 26, 1:25 pm, Dianne Hackborn hack...@android.com wrote: There was a bug in 1.5 with this, that was fixed in the most recent security update. You apparently aren't running a system with that security update. On Thu, Jun 25, 2009 at 8:53 PM, hunter jun.hun...@gmail.com wrote: Hi, all: I have a application with android:sharedUserId=android.uid.system in its AndroidManifest.xml. This application is not signed with the platform key. In 1.0, I use adb install to install it but failed with INSTALL_FAILED_SHARED_USER_INCOMPATIBLE which is OK because it is not signed with the proper key. But in 1.5, I successfully installed this application and it worked well. Can anyone tell me why? Thanks. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE in 1.0 and 1.5
Thanks a lot. On Jul 27, 11:37 am, Dianne Hackborn hack...@android.com wrote: It was fixed in the last security update (not the one that just came out, the one before). Sorry I don't recall the build name. On Sun, Jul 26, 2009 at 7:12 PM, hunter jun.hun...@gmail.com wrote: Hi, Dianne: Can you tell me which update fix this bug? I tried to fix it, but failed. I am really appreciated if you can tell me which update fix it. Thanks. On Jun 26, 1:25 pm, Dianne Hackborn hack...@android.com wrote: There was a bug in 1.5 with this, that was fixed in the most recent security update. You apparently aren't running a system with that security update. On Thu, Jun 25, 2009 at 8:53 PM, hunter jun.hun...@gmail.com wrote: Hi, all: I have a application with android:sharedUserId=android.uid.system in its AndroidManifest.xml. This application is not signed with the platform key. In 1.0, I use adb install to install it but failed with INSTALL_FAILED_SHARED_USER_INCOMPATIBLE which is OK because it is not signed with the proper key. But in 1.5, I successfully installed this application and it worked well. Can anyone tell me why? Thanks. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to listen for touch events from *Lock Screen* and *Home Screen*
Thanks Dianne Hackborn, however it will be better if there is a way to listen for events from these screens. On Jul 24, 10:06 pm, Dianne Hackborn hack...@android.com wrote: Sorry, no way without modifying that code. On Thu, Jul 23, 2009 at 10:26 PM, Riyaz goo...@riyaz.otherinbox.com wrote: I want to listen for the touch events from Lock Screen and Home Screen, is there any way i can tap those to my applications. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to listen for touch events from *Lock Screen* and *Home Screen*
Depends on how you define better. Allowing apps to see users draw their lock pattern would be not too cool, for example. On Sun, Jul 26, 2009 at 9:31 PM, Riyaz goo...@riyaz.otherinbox.com wrote: Thanks Dianne Hackborn, however it will be better if there is a way to listen for events from these screens. On Jul 24, 10:06 pm, Dianne Hackborn hack...@android.com wrote: Sorry, no way without modifying that code. On Thu, Jul 23, 2009 at 10:26 PM, Riyaz goo...@riyaz.otherinbox.com wrote: I want to listen for the touch events from Lock Screen and Home Screen, is there any way i can tap those to my applications. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: about close Location Manager service
sorry, I found that is the driver issue. On 7月27日, 上午11時22分, tstanly tsai.sta...@gmail.com wrote: hi all, it' so strange about close gps location manager, the gps signal dosen't stop. my code is: ==code=== public class g extends MapActivity{ private LocationManager mLocationManager01; �...@override protected void onCreate(Bundle savedInstanceState) { mLocationManager01 = (LocationManager)getSystemService (Context.LOCATION_SERVICE); . }} and my stop code is: mLocationManager01.removeUpdates(mLocationListener01);//stop gps service however, this stop code I write into the onDetroy(),onPause(),onStop(),finish (), but sometimes the gps signal will not stop expectly. something wrong?? 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] UnsatisfiedLinkError using so from the NDK
I make a simple JNI test using the NDK and got it compiled but when I try to run I get keep getting a UnsatisfiedLinkError saying that it can't find my so. I read a suggestion to copy it to the /data/data/ app directory, but I can't seem to figure out how to do that. So my questions are, is that the right thing to do and if so how should I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---