[android-developers] Re: Published app not showing up on HTC Evo or Droid Incredible
No, neither are running Froyo. The Evo I just picked up on Friday when it came out and haven't messed with the OS. Reading other threads here it seems most developers have given up on using copy protection altogether which is what I'm planning. It would be nice if someone from Google would address this and provide more info on the state of the feature or just remove it altogether to avoid the developer confusion and time spent researching. On Jun 6, 1:56 am, Bartinger domiii.1...@gmail.com wrote: Are the droid incr. And the evo running froyo? Because there is a security bug with android 2.2and the market On 5 Jun., 08:19, Alberto afonsec...@gmail.com wrote: Hello, I recently published our app to the marketplace and enabled copy protection. The app shows up when browsing the market on the Motorola Droid and others but does not appear when browsing with either the HTC Evo or Droid Incredible. Is this due to the copy protection? I'd like to keep my app copy protected but would like to make it available to customers of these two devices. Is this a bug or expected behavior and what are my options? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Passing Bitmap to Another Activity
hi guys, i have a Bitmap image and i want to forward the bitmap to another activity. i have two activities Activity A and Activity B this is how i started the Activity B startActivityForResult(new Intent(Activity A.this, Activity B.class), 120); in activity B private void forwardImage(Bitmap bit) { Intent i = new Intent(MMS.this, Compose.class); i.putExtra(MMS, bit); setResult(RESULT_OK, i); finish(); } this is not forwarding to Activity A but if i put a String to the intent it'll forward. this is how i listene to result in Activity A @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub // super.onActivityResult(requestCode, resultCode, data); switch (resultCode) { case RESULT_OK: Intent intent = getIntent(); Bitmap bitmap = (Bitmap) intent.getParcelableExtra(MMS); mmsImage.setImageBitmap(bitmap); default: break; } } how can i pass a bitmap regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GPS/LocationManager does not give a fix in my app
Hi, Why don't you log this info and see.. On Status changed, it gives 3 values 1. Out of service 2. Temp not available 3. Available.. Just see what is the response it is giving.. If it is out of service, then you will not get the fix.. If it is Temp not avail - then try moving your phone to some open space and walk around for about 100 m.. then you will get available event. Regards, Vinay On Jun 6, 10:05 pm, Charly carlos.per...@gmail.com wrote: Still haven't found a way to make it work. If someone has a clue please let me know. 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
Re: [android-developers] Tab Widget Text Color
Thanks ... Its working fine now. On Sat, Jun 5, 2010 at 8:32 PM, Mark Murphy mmur...@commonsware.com wrote: Sasikumar.S wrote: Hi, In my application i'm using tab widget. how can we set the text color and font size to a single tab ?.. Any Suggestion ? Try TabHost.TabSpec#setIndicator(View) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Text to speech unfunctional
Hi All , we have ported android 2.1 on one of our custom board . I was checking Text to speech functionality on it . I click Settings-Text to Speech . ..it gives n new screen All options other than Install voice data is greyed out . When I click on install voice data . it says The application Pico TTS has stoppped unexpectedly. PLease try again Can anyone point me what is the issue or how to install voice data on my board having eclair 2.1 . Thanks : Uander -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Augmented Reality framework to display geoloc point
Try using MIXARE or LAYAR application. Regards, SREEHARI -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get the point from click the google map
Hi, Pls check this link http://mobiforge.com/developing/story/using-google-maps-android Regards, SREEHARI -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 decode a qr code image
Hi, I am using Google Zxing QR code library for Android to scan the qrcodes and get the result.. now i don't want to use the camera to scan.. i want to scan a qr code that is stored as a image resource in try app.. can some body guide me how to do it.. any kind of example or documentation on how to do this... Thanks in advance, Grace. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem when turning the phone
If you don't want the os to handle a configuration change (like a screen rotation), you can use the android:configChanges= tag in the manifest file to specify what config changes should be handled manually: activity android:name=SomeActivity android:label=@string/app_name android:configChanges=orientation|keyboard|keyboardHidden and then you would specify your own custom behavior in the onConfigurationChanged method as Rajiv mentioned. Hope that helps! -Jeremy On Jun 3, 5:56 am, Rajiv rajiv...@gmail.com wrote: Hi, You can reseted the value of the Text by using onConfigurationChanged method of the Activity. ex. public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); //setContent } If you dont want Landscape mode(Horizontal to Vertical) changes you need to add *android:screenOrientation=portrait* to the particular activity in the manifest file. Ex. activity android:name=.SomeActivity android:label=@string/app_name android:screenOrientation=portrait Regards, Rajiv On Thu, Jun 3, 2010 at 6:02 PM, Patrick patrick.manges...@gmail.com wrote: Hallo! I currently have the following issue: when my app is running and the phone is turned from a vertical into a horizontal position (or back) all the stuff I changed in the UI is reseted to the plain layout.xml. I mean the views that changed their visibility are back to the original one and even the text of textviews is reseted to the value specified in the layout.xml. Is there a way or concept that I missed to tell activities (or the UI elements) to keep their status? Thanks Patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Close alertdialog.builder from an external button
Hi! Thx i tried the first method and it worked perfectly :) Thank u 2010/6/6 Lance Nanek lna...@gmail.com The create method of the builder creates and returns a new dialog each time you call it. So when you do that you are creating a second dialog that hasn't been shown, then calling dismiss on it. If you used Activity#showDialog to show your dialog, then just use Activity#dismissDialog with the same ID parameter to dismiss it. Using these methods is called using managed dialogs, because the activity manages them for you. If you are not using managed dialogs, then keep a reference to the dialog when you first create it on your own. Save the result of the create method the first time you call it to a field and then call dismiss on that later. On May 27, 9:53 am, Lamia Hannoun lamia.hann...@gmail.com wrote: Hi! well it's all in the subject :) do u have any ideas about how to dismiss a builder from an external button. I did mybuilder.create().dismiss() inside the onclicklistener of the button. But it doesn't work. Thx for any help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] refresh gallery after saving photo in android
hey even am working with photo editor application for android am able to edit images, add text to it but am not able to save it back to gallery can u please help me with your code with regards Nayana On Mon, Jun 7, 2010 at 10:49 AM, Andy Triboletti andy.tribole...@gmail.comwrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automatically refresh so they don't have to turn off their phone before it shows up in the gallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn't refresh for me. Does anyone have any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App disappears from the Market after upgrade
Hi everyone! Yesterday something strange happened to my app after uploading an upgrade to the Market. First of all, my app is free, has the 'supports-screen' tag and has no 'copy-protection'. The last upgrade I did was on June, 2nd, and the app was visible on the market of my HTC Hero (Android 2.1, Custom ROM), on another HTC Hero (Stock 1.5), HTC Magic (Android 1.5) and HTC Magic (1.6). After yesterday's upgrade the app disappeared from my HTC Hero market (Android 2.1). Since I touched a bit the manifest file I thought it could have something to do with it. So, as a test, I did a checkout from my svn server of the older version, changed just the versionCode (to allow uploading that version) and uploaded that version to the Market. Still, the app is not found on my phone's Market! Do you have any idea what's happening? Maybe there were some updates to the Market itself that can cause this? :S Thanks for your time! Yuvi PS. my app's name is 'NetSMS', it would be cool if someone could tell me if he can find it on the market and tell me its phone/android version. Thanks! -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android.permission.MOUNT_UNMOUNT_FILESYSTEMS problem / questions
Sorry, I have no idea about your specific problem. Just a question and maybe hint : It sounds for me, that you will move your data between host and phone via usb mass storage , right? You will need to take care in the future in which usb mode your are .. this can be pictbridge, MTP or others as well .. This would limit your app to devices, which have only one usb mode. Good luck ! Frank On 5 Jun., 01:52, rchndrsn rchnd...@gmail.com wrote: I am writing an app to move data between the host and the phone. Initially I need to do it by copying files to the SDcard, then mounting the SDCard as host mass storage ( while unmounting it from the phone). And vica-versa. I am trying to do this using the mount call defined in SYSCALLS.TXT. I make the calls from a JNI C function library, and loadLibrary() etc. AndroidManifest.xml has the uses-permission set up for android.permission.MOUNT_UNMOUNT_FILESYSTEM. The code builds, loads runs, but mount or umount return -1 and errno == 1, which is Operation Not permitted. It sounds to me like I am close, but missing something. What steps could I be missing. ? Or am I using the mechanism incorrectly ? Or the wrong mechanism? What is android.permission.MOUNT_UNMOUNT_FILESYSTEM used for if not for this ? Can someone help ? 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
Re: [android-developers] App disappears from the Market after upgrade
I can confirm the app is available on my Nexus One and the G1. It's also visible on the Android Market according to Cyrket: http://www.cyrket.com/p/android/net.yuvalsharon.android.netsms/ If it has only disappeared on your phone, perhaps you need to turn the sync setting on so the Android Market data is updated? On Mon, Jun 7, 2010 at 9:10 AM, Yuvi yuvidr...@gmail.com wrote: Hi everyone! Yesterday something strange happened to my app after uploading an upgrade to the Market. First of all, my app is free, has the 'supports-screen' tag and has no 'copy-protection'. The last upgrade I did was on June, 2nd, and the app was visible on the market of my HTC Hero (Android 2.1, Custom ROM), on another HTC Hero (Stock 1.5), HTC Magic (Android 1.5) and HTC Magic (1.6). After yesterday's upgrade the app disappeared from my HTC Hero market (Android 2.1). Since I touched a bit the manifest file I thought it could have something to do with it. So, as a test, I did a checkout from my svn server of the older version, changed just the versionCode (to allow uploading that version) and uploaded that version to the Market. Still, the app is not found on my phone's Market! Do you have any idea what's happening? Maybe there were some updates to the Market itself that can cause this? :S Thanks for your time! Yuvi PS. my app's name is 'NetSMS', it would be cool if someone could tell me if he can find it on the market and tell me its phone/android version. Thanks! -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: code for capturing screenshot of android device
Hi max , thanks for reply and sorry for replying u so late :) I tried all the approaches in above code , but i didnt get the desired result . While debuging i can see that the view area is always null .. Is there some other approach to do this On Apr 28, 11:22 pm, Max Gilead max.gil...@gmail.com wrote: Sudheendra, this is what I dug out from the depths of my SVN repo :) I told you it was simple, didn't I? :) If you don't have a current view you can get it using getWindow().getDecorView(). HTH, Max private static void screenshot(View view) { view.setDrawingCacheEnabled(true); Bitmap screenshot = view.getDrawingCache(false); String filename = screenshot.png; try { File f = new File(Environment.getExternalStorageDirectory(), filename); f.createNewFile(); OutputStream outStream = new FileOutputStream(f); screenshot.compress(Bitmap.CompressFormat.PNG, 100, outStream); outStream.close(); } catch (IOException e) { e.printStackTrace(); } view.setDrawingCacheEnabled(false); } On 28 April 2010 07:43, Sudheendra sudhindra.ma...@gmail.com wrote: Thanks Max , I will check out he app , also please let me know the code. Thanks a lot On Apr 28, 6:07 am, Max Gilead max.gil...@gmail.com wrote: You don't need to root your phone. While not obvious it's quite easy. I should have some code for that,I'll try to find it tomorrow if you still need it (it's for capturing screenshot of your Activity). Capturing phone's desktop is also possible w/o rooting, see iSteam app from the Market but I never tried that. Cheers, Max On 27 Apr 2010 09:01, Sudheendra sudhindra.ma...@gmail.com wrote: Thanks String , Thanks John ... So using rooted phone how can i do it On Apr 27, 12:38 pm, String sterling.ud...@googlemail.com wrote: On Apr 27, 7:54 am, Sudheendra... For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Injecting keyEvent without user interface
Hi , I am not able to find a way to insert key events, i found some article related to it which uses IWindowManger class but it is not working on Android 2.1 virtual device . Please update me with API i have to use to inject keyevents in my application. 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
Re: [android-developers] Re: How to get the point from click the google map
Thanks a lot! I have solved this problem.I define a overlay,and override the onTap method in the overlay. On Mon, Jun 7, 2010 at 2:42 PM, SREEHARI sreehari.madhusooda...@wipro.comwrote: Hi, Pls check this link http://mobiforge.com/developing/story/using-google-maps-android Regards, SREEHARI -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Display Widget inside activity?
Tommy, Another suggestion: I guess you are already using a service, so update code using RemoteViews is already isolated in one place. You could implement your own subclass of RemoteViews, override various methods for changing views, and instead directly update views in your activity. Or perhaps make it prettier with a base Java interface, factories, etc. - but the main idea would still be the same. The weather update code would be taking to an object that in turn updates either remote views in a widget, or local views inside an activity. -- Kostya 06.06.2010 23:31, Kumar Bibek пишет: You can at the most use the layout of the widget and the update code. Other than that, I guess, you cannot bring the widget as it is on your activity. A widget has a lifecycle of it's own. Thanks and Regards, Kumar Bibek On Jun 3, 12:37 am, Tommydroi...@gmail.com wrote: Hey everyone, I was wondering if there is a way to show a widget that I have created inside an activity. I have a weather widget and I also have an app I am working on that I would like to include weather reports in. Is there a way I can just re-use the widget code and make it show inside the weather activity? Thanks for your time and help, Tommy -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to add shadow for text drawn on google map
Hi all, In my map application I am using overlay items and texts. I need shadows for both. For overlayitems I am able to display shadows. How to show shadow for the text drawn? Thanks in advance. Regards, SREEHARI. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Handle GONE in RelativeLayout
Hi, I´m having some trouble figuring out how to handle views that are GONE in a RelativeLayout. I have a ListView that is aligned below a View using android:layout_below=@id/view. However, the view can be toggled and is sometimes GONE. At the moment when I toggle the GONE state on the view I add a new rule to the ListView that aligns it below another view. It works, but gives some issues in Android 1.5 when the layout changes when the software keyboard is shown. What I´m missing is the ability to add multiple below rules eg: android:layout_below=@id/viewA android:layout_below=@id/viewB Any input is much appreciated! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Playing live stream (RTP) in MediaPlayer
I'm confused by RTSP streaming - I've been trying to stream a LIVE video to Android (2.1) and not sure from the discussion here and previous posts that I've seen if Android can actually receive and play a LIVE video stream? I don't need any control of the video at all so just need to stream it. Jez On Jun 1, 2:30 am, Andy Savage a...@bluewire.net.nz wrote: In my example I am using SIP, so the SDP information is actually exchanged this way. The RTSP is simply for receiving as a hack to Android's built in (arbitrary) limitations. So the idea is to take the SDP for receiving and wrap it over RTSP. -- The greatest challenge to any thinker is stating the problem in a way that will allow a solution - Bertrand Russell Andy Savage Cell Phone: +852 936 34341 Skype ID: andy_savage Linked In:http://www.linkedin.com/in/andysavage On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com wrote: There is a technical limitation to what SDP can legally convey. A single SDP document can contain only one end of media conversation. Therefore it is technically impossible to setup streaming with just one SDP document there have to be an exchange. When using RTSP or SIP terminals exchange their SDP information and thus get to know where to stream to and from where to accept the stream. MediaPlayer could accept just one SDP (i.e. streamer's), but then how would streamer would know where to transmit? Both of them have to exchange at least supported CODEC information and connection information (port and IP). Maybe I am just not aware of SDP format with two node's information. Can someone share an example? On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote: I agree with Andy's comment: On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote: There seems to be a limitation that means that it will only accept SDP information with RTP streams inside if it gets them from the RTSP stream (e.g. it gets this information from SETUP in the RTSP protocal). It is possible to play a stream by requesting it via a RTSP request (both audio and video are sent over RTP and the MediaPlayer is able to decode and play them). But it is not possible to play live RTP stream by requesting the SDP file directly (via an HTTP request). The RTP streams (audio and video) are sent to the device from the server. The MediaPlayer should just get the SDP file, listen on the proper ports and decode the streams. But it generates an error and do not play the streams. Jean -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Text to speech unfunctional
Does this link would be indirection for my issue ? http://andappstore.com/AndroidApplications/apps/210486 its asking for language installer apk to be loadedd in /sdcard/* location . what steps are required basically to enable TTS ? and how can one make use of it ? Thanks : Uander On Mon, Jun 7, 2010 at 1:32 AM, Uander uandro...@gmail.com wrote: Hi All , we have ported android 2.1 on one of our custom board . I was checking Text to speech functionality on it . I click Settings-Text to Speech . ..it gives n new screen All options other than Install voice data is greyed out . When I click on install voice data . it says The application Pico TTS has stoppped unexpectedly. PLease try again Can anyone point me what is the issue or how to install voice data on my board having eclair 2.1 . Thanks : Uander -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't grok Activity life cycle.
Leigh McRae wrote: Looks like it says both :) Still whether it's before onPause() or onStop() doesn't matter much. To capture that state before the activity is killed, you can implement an ||onSaveInstanceState() http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29|| method for the activity. Android calls this method before making the activity vulnerable to being destroyed — that is, before |onPause()| is called. http://developer.android.com/guide/topics/fundamentals.html#lcycles :: sigh :: I still wouldn't count on it happening before onPause(). Meantime, I've filed a bug: http://code.google.com/p/android/issues/detail?id=8900 For the BACK button that is trivial and very clear. What happens I launch the browser from my app and it covers my app as in my example. I would go through onPause() and onStop(). Both docs say that onSaveInstanceState() would have been called by now but the system doesn't know if it will run out of memory at some point with the browser. It doesn't care whether it will run out of memory at some point with the browser, any more than Microsoft Word, saving a temp file of your in-progress edits, cares whether or not Windows will run out of pagefile space. Word saves the temp file because that's what Word does, to deal with any number of scenarios, such as Word simply crashing. Similarly, Android will call onSaveInstanceState() so that if it kills the process, or continues sometime to onDestroy(), that you will have had a chance to save your instance state. Correct. Unlikely, but correct. If it can happen it needs to be handled. Not necessarily. I suspect the vast majority of apps aren't specifically worrying about it, mostly because nothing much needs to be done for them for that scenario. 4) Since the system has enough memory onSaveInstance() doesn't get called. I have no idea where you came up with this. I would expect onSaveInstanceState() to have been called in this scenario, before onStop(), and around the time of onPause(). It's been inferred since the system has no way of knowing for SURE if it will have to kill the activity, at which time I have already been put in the background and received onStop(). Now for the trivial case where the system starts another activity and needs more memory it makes sense. Like I said, you will have received a call to onSaveInstanceState() in and around the times of your onPause()/onStop() calls. If you have evidence to the contrary, I'm certainly interested to see it. As your documentation counter-example demonstrates, it's not like we can necessarily count on the docs. The 99.44% pattern for your use case is: -- The activity receives onPause() and onSaveInstanceState(), in some order -- The activity receives onStop() -- Time elapses (seconds, weeks, whatever) -- The activity receives onDestroy() The next-most-common pattern is: -- The activity receives onPause() and onSaveInstanceState(), in some order -- The activity receives onStop() -- Time elapses (seconds, weeks, whatever) -- The process is killed, either by Android (low memory) or by the user (task killer) While in principle the process could be killed before onStop(), if that happens, the user has much bigger problems than your app not correctly cleaning up. After all, this means that the device's memory is screwed up so bad that Android feels it needs to kill the process *immediately* upon it losing the foreground, before it can get to onStop(). The user's phone is going to need a reboot, plain and simple. The user can't readily invoke a task-killer before onStop() gets called, because to get to the task-killer activity to pick your process, you'll wind up being called with onStop(). If you have concrete evidence that the scenarios I list above ain't happenin' for you, please let me know! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 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: Multitasking on Android - Why So Incredibly Bad?
From what I got so far, it seems like the browser tries to save the entire page contents, which might cause troubles - either because it's too slow (1/5s time limit) or because there's not enough free space on the internal flash. Maybe it'd be a solution to save the state in steps. First the URLs, then form data, then the latest window's contents, then the remaining windows. Better to reload a page when coming back than losing it all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Black screen when playing a streaming video
Hi there, my platform is android 2.1, I face the following problem: I go to http://3g.youku.com and wath the streaming video (176*144 res.), most time, only audio is played. I catch the log and find one key log info: E/SurfaceFlinger( 1204): LayerBuffer::BufferSource::postBuffer() invalid buffer (offset=819200, size=-1127995968, heap-size=6934528 by debuging, I get the relative information in LayerBuffer is that: buffers.w=176, buffers.h=144, buffers.hor_stride=1732440432, buffers.ver_stride=1732440408 and mBufferSize = -1127995968. I dont know why the attribute buffers.hor_stride and buffers.ver_stride so strange, can anybody explain this? thanks, ever -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] power manager (Light off) in android
hii . Currently i m facing a problem to switch off light in android application. i m trying to power manager gotosleep method but its giving a below problem . *java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bhavesh/org.bhavesh.mainactivity}: * * * *java.lang.SecurityException: Neither user 10024 nor current process has android.permission.DEVICE_POWER.* but i already given a android.permission.DEVICE_POWER in manifest file. can any one tell me why its happened in android. yaa any other method to off the light in android.. Thank you in advanced With Regrads bhavesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Multitasking on Android - Why So Incredibly Bad?
That's actually a very good point - sometimes the window just reloads, sometimes all the windows are gone altogether, so this has probably already been implemented some way or another. It's just failing for some reason... On Mon, Jun 7, 2010 at 12:59 PM, mort m...@sto-helit.de wrote: From what I got so far, it seems like the browser tries to save the entire page contents, which might cause troubles - either because it's too slow (1/5s time limit) or because there's not enough free space on the internal flash. Maybe it'd be a solution to save the state in steps. First the URLs, then form data, then the latest window's contents, then the remaining windows. Better to reload a page when coming back than losing it all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Simon Broenner -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 detect CPU Speed?
call system time millis in a loop till it changes, Increment a variable, call system time millis until it changes again. You now know the number of system calls you can do in a ms. Note cpu mhz. Run this prog on 3 diff phones. Now you have a trend of syscalls per ms you can use to extrapolate mhz on any phone. I think. On Jun 5, 10:05 am, Martiño martino.figue...@gmail.com wrote: Is there a way of getting the speed at which the device is running? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does specifying 2.2 exclude any devices?
Hi all. On my app I recently went from: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=7 / using an Eclipse build target of 1.6 to: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=8 / using an Eclipse build target of 2.2 ...this was to take advantage of 2.2 features, like the SD Card installation option. I wonder if specifying this could have caused restrictions for some devices? As there has been a marked drop in usage stats since I made this release. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add shadow for text drawn on google map
You can use paint.setShadowLayer(); for showing shadow effect Nithin On Jun 7, 2:17 pm, SREEHARI sreehari.madhusooda...@wipro.com wrote: Hi all, In my map application I am using overlay items and texts. I need shadows for both. For overlayitems I am able to display shadows. How to show shadow for the text drawn? Thanks in advance. Regards, SREEHARI. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to add shadow for text drawn on google map
Nithin wrote: You can use paint.setShadowLayer(); for showing shadow effect Or, if this is a TextView, you can configure the shadow in layout XML using: android:shadowColor android:shadowDx android:shadowDy android:shadowRadius -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Passing Bitmap to Another Activity
i dont know how to pass bitmap ... but what you can do is have a public static bitmap in act A and access it from act B .. hopefully this should solve the purpose .. On Mon, Jun 7, 2010 at 11:54 AM, mike hasitharand...@gmail.com wrote: hi guys, i have a Bitmap image and i want to forward the bitmap to another activity. i have two activities Activity A and Activity B this is how i started the Activity B startActivityForResult(new Intent(Activity A.this, Activity B.class), 120); in activity B private void forwardImage(Bitmap bit) { Intent i = new Intent(MMS.this, Compose.class); i.putExtra(MMS, bit); setResult(RESULT_OK, i); finish(); } this is not forwarding to Activity A but if i put a String to the intent it'll forward. this is how i listene to result in Activity A @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub // super.onActivityResult(requestCode, resultCode, data); switch (resultCode) { case RESULT_OK: Intent intent = getIntent(); Bitmap bitmap = (Bitmap) intent.getParcelableExtra(MMS); mmsImage.setImageBitmap(bitmap); default: break; } } how can i pass a bitmap regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] StackOverflowError in UI redraw
Hi, I am facing rare StackOverflowError in my application during UI redraw. Does it mean memory is exhausted? How can i fix this? And finally how can i be sure the issue will be definitevly fixed?? Any advice would be welcome :) Thierry. Here is the backtrace: 06-07 15:11:20.318 E/AndroidRuntime(22775): java.lang.StackOverflowError 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.method. ReplacementTransformationMethod$ReplacementCharSequence.getChars(ReplacementTransformationMethod.java:151) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.TextUtils.getChars(TextUtils.java:69) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout$Ellipsizer.getChars(Layout.java:1778) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.TextUtils.getChars(TextUtils.java:69) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.graphics.Paint.measureText(Paint.java:1016) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Styled.each(Styled.java:124) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Styled.foreach(Styled.java:249) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Styled.measureText(Styled.java:371) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout.measureText(Layout.java:1600) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout.getLineMax(Layout.java:654) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout.getLineMax(Layout.java:628) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout.getHorizontal(Layout.java:552) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout.getHorizontal(Layout.java:513) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.text.Layout.getPrimaryHorizontal(Layout.java:498) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.widget.TextView.getFocusedRect(TextView.java:3962) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.FocusFinder.findNextFocus(FocusFinder.java:72) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.focusSearch(ViewGroup.java:473) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.focusSearch(ViewGroup.java:475) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.focusSearch(ViewGroup.java:475) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.focusSearch(ViewGroup.java:475) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.focusSearch(ViewGroup.java:475) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.focusSearch(ViewGroup.java:475) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.View.focusSearch(View.java:3032) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.widget.TextView.onCreateInputConnection(TextView.java:4342) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:933) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1105) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.inputmethod.InputMethodManager.isActive(InputMethodManager.java:530) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.widget.TextView.onDraw(TextView.java:3893) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.View.draw(View.java:5838) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.drawChild(ViewGroup.java:1540) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1282) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.drawChild(ViewGroup.java:1538) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1282) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.View.draw(View.java:5841) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.drawChild(ViewGroup.java:1540) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1282) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.drawChild(ViewGroup.java:1538) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1282) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.View.draw(View.java:5944) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.drawChild(ViewGroup.java:1540) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1282) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.View.draw(View.java:5841) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.drawChild(ViewGroup.java:1540) 06-07 15:11:20.318 E/AndroidRuntime(22775): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1282) 06-07
Re: [android-developers] StackOverflowError in UI redraw
Thierry Legras wrote: I am facing rare StackOverflowError in my application during UI redraw. Does it mean memory is exhausted? It means that stack space is exhausted. How can i fix this? Your UI probably has too many layers in its hierarchy. Run the hierarchyviewer program and examine the chart showing your ViewGroups and what they all contain. Try to eliminate some layers (e.g., replace nested LinearLayouts with a single RelativeLayout, get rid of activities-in-tabs and switch to views-in-tabs). And finally how can i be sure the issue will be definitevly fixed?? My very rough rule of thumb: -- If your hierarchy has 10 layers, you should have no problem -- If your hierarchy has 10-14 layers, I get nervous -- If your hierarchy has =15 layers, it's gonna blow up sometimes -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 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
Re: [android-developers] Passing Bitmap to Another Activity
Personally, I would avoid keeping that bitmap in memory, otherwise you are consuming a lot of resources and run the risk of hitting performance/heap space limitations. You could use openFileOutput() and getCacheDir() to store the contents of the Bitmap into a temporary file: http://developer.android.com/intl/fr/guide/topics/data/data-storage.html#filesInternal Then pass the path to the file via the Intent.putExtra() mechanism that you are already using. This way you are only loading the bitmap into memory when it is needed, solving your problem of transferring it to the other activity, and ensuring the temporary file is cleaned up if your app crashes before you have time to delete it. On Mon, Jun 7, 2010 at 7:24 AM, mike hasitharand...@gmail.com wrote: hi guys, i have a Bitmap image and i want to forward the bitmap to another activity. i have two activities Activity A and Activity B this is how i started the Activity B startActivityForResult(new Intent(Activity A.this, Activity B.class), 120); in activity B private void forwardImage(Bitmap bit) { Intent i = new Intent(MMS.this, Compose.class); i.putExtra(MMS, bit); setResult(RESULT_OK, i); finish(); } this is not forwarding to Activity A but if i put a String to the intent it'll forward. this is how i listene to result in Activity A �...@override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub // super.onActivityResult(requestCode, resultCode, data); switch (resultCode) { case RESULT_OK: Intent intent = getIntent(); Bitmap bitmap = (Bitmap) intent.getParcelableExtra(MMS); mmsImage.setImageBitmap(bitmap); default: break; } } how can i pass a bitmap regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MediaController in MediaPlayer
guys any lead on this question would help me a bunch... thanks, abhi On Jun 4, 1:05 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I am using MediaPlayer to build a Video player for playing local video files. However, I don't know how to enable MediaController for my player. I want the media control buttons that pop up when you touch the video surface. Can anyone help me out please? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't grok Activity life cycle.
On 6/7/2010 6:50 AM, Mark Murphy wrote: Leigh McRae wrote: Looks like it says both :) Still whether it's before onPause() or onStop() doesn't matter much. To capture that state before the activity is killed, you can implement an ||onSaveInstanceState() http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29|| method for the activity. Android calls this method before making the activity vulnerable to being destroyed — that is, before |onPause()| is called. http://developer.android.com/guide/topics/fundamentals.html#lcycles :: sigh :: I still wouldn't count on it happening before onPause(). Meantime, I've filed a bug: http://code.google.com/p/android/issues/detail?id=8900 For the BACK button that is trivial and very clear. What happens I launch the browser from my app and it covers my app as in my example. I would go through onPause() and onStop(). Both docs say that onSaveInstanceState() would have been called by now but the system doesn't know if it will run out of memory at some point with the browser. It doesn't care whether it will run out of memory at some point with the browser, any more than Microsoft Word, saving a temp file of your in-progress edits, cares whether or not Windows will run out of pagefile space. Word saves the temp file because that's what Word does, to deal with any number of scenarios, such as Word simply crashing. Similarly, Android will call onSaveInstanceState() so that if it kills the process, or continues sometime to onDestroy(), that you will have had a chance to save your instance state. So are you saying that onSaveInstanceState() is always called before the system needs to kill an activity? If so that makes perfect sense and we are done. The thing is that the docs state, as have you, that it must come sometime before onStop(). Forget the very trivial case where the user starts an activity and ends it. Pretty clear stuff. For all the other cases, either onSaveInstanceState() is always called before onStop() as it can never know for sure if it has to kill you to quite possible much later. Or onSaveInstanceState() isn't always called before onStop(). Which is it? Correct. Unlikely, but correct. If it can happen it needs to be handled. Not necessarily. I suspect the vast majority of apps aren't specifically worrying about it, mostly because nothing much needs to be done for them for that scenario. 4) Since the system has enough memory onSaveInstance() doesn't get called. I have no idea where you came up with this. I would expect onSaveInstanceState() to have been called in this scenario, before onStop(), and around the time of onPause(). It's been inferred since the system has no way of knowing for SURE if it will have to kill the activity, at which time I have already been put in the background and received onStop(). Now for the trivial case where the system starts another activity and needs more memory it makes sense. Like I said, you will have received a call to onSaveInstanceState() in and around the times of your onPause()/onStop() calls. If you have evidence to the contrary, I'm certainly interested to see it. As your documentation counter-example demonstrates, it's not like we can necessarily count on the docs. The 99.44% pattern for your use case is: -- The activity receives onPause() and onSaveInstanceState(), in some order -- The activity receives onStop() -- Time elapses (seconds, weeks, whatever) -- The activity receives onDestroy() The next-most-common pattern is: -- The activity receives onPause() and onSaveInstanceState(), in some order -- The activity receives onStop() -- Time elapses (seconds, weeks, whatever) -- The process is killed, either by Android (low memory) or by the user (task killer) While in principle the process could be killed before onStop(), if that happens, the user has much bigger problems than your app not correctly cleaning up. After all, this means that the device's memory is screwed up so bad that Android feels it needs to kill the process *immediately* upon it losing the foreground, before it can get to onStop(). The user's phone is going to need a reboot, plain and simple. The user can't readily invoke a task-killer before onStop() gets called, because to get to the task-killer activity to pick your process, you'll wind up being called with onStop(). If you have concrete evidence that the scenarios I list above ain't happenin' for you, please let me know! Is there a way to artificially force this scenario to happen so I can test my app survives? The reason that this is such an issue is that most games will do a one time loading of all it's resources upfront and it's not to the users benefit if I am forced to dump this when it's not required. So I want to get this right. -- Leigh McRae www.lonedwarfgames.com -- You received this message because you are
Re: [android-developers] Re: MediaController in MediaPlayer
Hey Abhi, Take a look at the VideoDemo class in Mark Murphy's tutorial projects: http://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/src/com/commonsware/android/video/VideoDemo.java On Mon, Jun 7, 2010 at 2:28 PM, Abhi abhishek.r.sha...@gmail.com wrote: guys any lead on this question would help me a bunch... thanks, abhi On Jun 4, 1:05 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I am using MediaPlayer to build a Video player for playing local video files. However, I don't know how to enable MediaController for my player. I want the media control buttons that pop up when you touch the video surface. Can anyone help me out please? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] the android calendar api question
Dear all, I want add events to user's calendar in my app, and I search some information about how to manipulate the calendar. I found that Google has not provided the offical API to manipulate the calendar in the android phone so far. Dose anyone has the advice ? or Someone who has developed the app with calendar function could give me some suggestion? thanks you for any response. Reiny. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't grok Activity life cycle.
Leigh McRae wrote: So are you saying that onSaveInstanceState() is always called before the system needs to kill an activity? I am saying: 1. onSaveInstanceState() is always called before onStop(), as that is something both our docs references are in agreement upon 2. onStop() damn-near-always will be called before the process gets killed Ergo, by the transitive property of bullet points, onSaveInstanceState() damn-near-always will be be called before the process gets killed. The damn-near part is the phone's-screwed-up condition that I mentioned and really wouldn't worry about, any more than you worry about meteor strikes. :: briefly checks out office window :: See! Nothing to be afraid of! If so that makes perfect sense and we are done. Who-hoo! Is there a way to artificially force this scenario to happen so I can test my app survives? Which scenario? If you mean the process-gets-killed scenario, use a task killer. By the time you get to the task killer activity and kill your process, whatever activity of yours that was in the foreground will now be stopped. The reason that this is such an issue is that most games will do a one time loading of all it's resources upfront and it's not to the users benefit if I am forced to dump this when it's not required. So I want to get this right. Understood! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 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: StackOverflowError in UI redraw
Maybe you create objects (e.g. Paint, Layout) in the heavily used onDraw method, you should create them only once or e.g. in the onLayout method instead. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] the android calendar api question
Reiny Song wrote: I want add events to user's calendar in my app, and I search some information about how to manipulate the calendar. I found that Google has not provided the offical API to manipulate the calendar in the android phone so far. Dose anyone has the advice ? Use the Google Calendar GData APIs: http://code.google.com/apis/calendar/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 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: MediaController in MediaPlayer
Hey Sean Thanks for the link. But that's using VideoView and I am using MediaPlayer instead. I already have a player using VideoView but am having issues with it, so I decided to switch over to MediaPlayer. I have a player running so far but no auto Media Controller (like the one in the link with VideoView). Abhi On Jun 7, 9:34 am, Sean Hodges seanhodge...@googlemail.com wrote: Hey Abhi, Take a look at the VideoDemo class in Mark Murphy's tutorial projects: http://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/sr... On Mon, Jun 7, 2010 at 2:28 PM, Abhi abhishek.r.sha...@gmail.com wrote: guys any lead on this question would help me a bunch... thanks, abhi On Jun 4, 1:05 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I am using MediaPlayer to build a Video player for playing local video files. However, I don't know how to enable MediaController for my player. I want the media control buttons that pop up when you touch the video surface. Can anyone help me out please? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to change TextSwitcher's textcolor or textsize??
dear all i have a trouble in TextSwitcher , there are simple code from the api demo protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.text_switcher_1); mSwitcher = (TextSwitcher) findViewById(R.id.switcher); mSwitcher.setFactory(this); Animation in = AnimationUtils.loadAnimation(this, android.R.anim.fade_in); Animation out = AnimationUtils.loadAnimation(this, android.R.anim.fade_out); mSwitcher.setInAnimation(in); mSwitcher.setOutAnimation(out); Button nextButton = (Button) findViewById(R.id.next); nextButton.setOnClickListener(this); updateCounter(); } public void onClick(View v) { mCounter++; updateCounter(); } private void updateCounter() { mSwitcher.setText(String.valueOf(mCounter)); } public View makeView() { TextView t = new TextView(this); t.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL); t.setTextSize(36); return t; } i want change the textcolor or textsize whe i click the button, how can i do? thx a lot . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ProtectionLevel
Also have the same problem, here is an example: 06-07 13:59:28.979: WARN/PackageManager(71): Not granting permission android.permission.INSTALL_PACKAGES to package ##APPLICATION## (protectionLevel=3 flags=0x44). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Detect Google map moving
2010/6/4 Károly Holczhauser holczhau...@gmail.com I would like to ask, how can I detect the user has pointed the screen and he/she moved a map away from the current location ? Have you looked at the Maps API documentation? There are various methods that indicate a touch, key press, or tap on the screen has occurred. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: MediaController in MediaPlayer
Abhi, I'm not to sure about video playback outside of the VideoView, I expect you have some substitute view to replace VideoView, as MediaPlayer is just an interface to the back-end A/V component and does no UI handling. Looking at the MediaController, it accepts any view that implements MediaPlayerControl: http://developer.android.com/intl/fr/reference/android/widget/MediaController.MediaPlayerControl.html The only build-in view that does this in the Android SDK is the VideoView - but you should be able to make your substitute view implement MediaPlayerControl and use it in exactly the same way. You will just need to handle the callback methods that are defined in MediaPlayerControl. e.g. public class MyVideoCanvas extends SurfaceView implements MediaPlayerControl { private MediaController ctlr; private MediaPlayer mediaPlayer; public void onCreate() { mediaPlayer = new MediaPlayer(); ctlr = new MediaController(this); ctlr.setMediaPlayer(this); ctlr.setAnchorView(this); ctlr.setEnabled(true); ctlr.show(); } public void pause() { // This is an example of a callback method from MediaPlayerControl... mediaPlayer.pause(); } // ... } I haven't tested this, but I don't see why it shouldn't work. Sean On Mon, Jun 7, 2010 at 2:41 PM, Abhi abhishek.r.sha...@gmail.com wrote: Hey Sean Thanks for the link. But that's using VideoView and I am using MediaPlayer instead. I already have a player using VideoView but am having issues with it, so I decided to switch over to MediaPlayer. I have a player running so far but no auto Media Controller (like the one in the link with VideoView). Abhi On Jun 7, 9:34 am, Sean Hodges seanhodge...@googlemail.com wrote: Hey Abhi, Take a look at the VideoDemo class in Mark Murphy's tutorial projects: http://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/sr... On Mon, Jun 7, 2010 at 2:28 PM, Abhi abhishek.r.sha...@gmail.com wrote: guys any lead on this question would help me a bunch... thanks, abhi On Jun 4, 1:05 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I am using MediaPlayer to build a Video player for playing local video files. However, I don't know how to enable MediaController for my player. I want the media control buttons that pop up when you touch the video surface. Can anyone help me out please? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Clearing all the Task within an application while activity launch
Hi all, In my application, I have two activities with Launcher as a catagory and added an icon to each of them. So I can launch my application from any of this activity, thus there are two entry points to my application. Now, the task created by 1st activity is not killed when pressing the home key and launching an application from 2nd activity. So, just launching the 2nd activity and pressing the back button brings the previous task on screen rather than coming back to home screen. clearTaskOnLaunch just clears the task by same activity. Is there any way to clear all the tasks within the application? Thanks, Asif -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Clearing all the Task within an application while activity launch
Hi all, In my application, I have two activities with Launcher as a catagory and added an icon to each of them. So I can launch my application from any of this activity, thus there are two entry points to my application. Now, the task created by 1st activity is not killed when pressing the home key and launching an application from 2nd activity. So, just launching the 2nd activity and pressing the back button brings the previous task on screen rather than coming back to home screen. clearTaskOnLaunch just clears the task by same activity. Is there any way to clear all the tasks within the application? Thanks, Asif -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't grok Activity life cycle.
On 6/7/2010 9:43 AM, Mark Murphy wrote: Leigh McRae wrote: So are you saying that onSaveInstanceState() is always called before the system needs to kill an activity? I am saying: 1. onSaveInstanceState() is always called before onStop(), as that is something both our docs references are in agreement upon 2. onStop() damn-near-always will be called before the process gets killed Ergo, by the transitive property of bullet points, onSaveInstanceState() damn-near-always will be be called before the process gets killed. The damn-near part is the phone's-screwed-up condition that I mentioned and really wouldn't worry about, any more than you worry about meteor strikes. :: briefly checks out office window :: See! Nothing to be afraid of! Gotcha. I am not concerned with the trivial case of normal app life cycle and the case where the system is about to die. I am only concerned with the case where the user exits my app using the HOME key and then goes on to open many more apps and also leaves them using the HOME key. At some point the system will run out of memory. I would expect this to be a pretty come case and at some point I am going to be the one kicked from memory. I want to be sure my game handles this with the best possible experience for the user. This is the source of my confusion. I want to detect this case. I don't want to dump everything at onPause() if I don't have to. At this point as far as I can tell that onSaveInstance() must always be called before onStop() for this case (being put into the background) as I don't see how it can know where I am just popping up a quick options screen and then back to my app or leaving the app in the background as I wander off into a trail of other apps. It would be nice to be able to simulate this scenario with tools so that my app can be tested. Would using a task killer have the same effect? IMHO this whole activity life cycle topic and issues with static variables could really use more literature or an IO session. Coming from BlackBerry this has been the biggest learning curve. From what I have seen game developers have taken a pass to this whole framework and just killed their app at onPause(). If so that makes perfect sense and we are done. Who-hoo! Is there a way to artificially force this scenario to happen so I can test my app survives? Which scenario? If you mean the process-gets-killed scenario, use a task killer. By the time you get to the task killer activity and kill your process, whatever activity of yours that was in the foreground will now be stopped. The reason that this is such an issue is that most games will do a one time loading of all it's resources upfront and it's not to the users benefit if I am forced to dump this when it's not required. So I want to get this right. Understood! -- Leigh McRae www.lonedwarfgames.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't grok Activity life cycle.
Leigh McRae wrote: At this point as far as I can tell that onSaveInstance() must always be called before onStop() for this case (being put into the background) as I don't see how it can know where I am just popping up a quick options screen and then back to my app or leaving the app in the background as I wander off into a trail of other apps. It doesn't know. By definition, it can't know, since it cannot predict the future. It would be nice to be able to simulate this scenario with tools so that my app can be tested. Would using a task killer have the same effect? No, that will terminate your process. -- Let's flip the problem around. Why does it matter to you if your activity is destroyed via the BACK button versus via running low on memory? If the answer is it doesn't matter, then release your cached stuff in onDestroy() and be done with it. If your goal is to release sooner (e.g., onStop()), to be friendlier about memory consumption while you're not on-screen, and you don't want to do that too aggressively, set yourself a timer to go off in 30 seconds. Or 30 minutes. Or 30 hours. Whatever you feel is appropriate, and release your cached stuff then. If the user comes back to your app before the timer goes off, cancel the timer and just rock on. onSaveInstanceState() is purely for instance state. In a game, it might be the score, positions of pieces on the board, and the like -- stuff that is purely unique to this specific instance of the game. This should have nothing to do with caching patterns. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't grok Activity life cycle.
First I would like to thank you for your hand holding. On 6/7/2010 10:45 AM, Mark Murphy wrote: Leigh McRae wrote: At this point as far as I can tell that onSaveInstance() must always be called before onStop() for this case (being put into the background) as I don't see how it can know where I am just popping up a quick options screen and then back to my app or leaving the app in the background as I wander off into a trail of other apps. It doesn't know. By definition, it can't know, since it cannot predict the future. It would be nice to be able to simulate this scenario with tools so that my app can be tested. Would using a task killer have the same effect? No, that will terminate your process. -- Let's flip the problem around. Why does it matter to you if your activity is destroyed via the BACK button versus via running low on memory? Good point. I guess if I save enough state to be able to reload , it doesn't matter what happens after onStop(). Currently I have a bug with my game Wrath on the Android Market where a static variable is NULL and I can't see how this could happen. Using singleTask launch mode didn't fix it so I was thinking it was a lack of understand the activity life cycle but perhaps it's something else. Thanks for the help Mark. If the answer is it doesn't matter, then release your cached stuff in onDestroy() and be done with it. If your goal is to release sooner (e.g., onStop()), to be friendlier about memory consumption while you're not on-screen, and you don't want to do that too aggressively, set yourself a timer to go off in 30 seconds. Or 30 minutes. Or 30 hours. Whatever you feel is appropriate, and release your cached stuff then. If the user comes back to your app before the timer goes off, cancel the timer and just rock on. onSaveInstanceState() is purely for instance state. In a game, it might be the score, positions of pieces on the board, and the like -- stuff that is purely unique to this specific instance of the game. This should have nothing to do with caching patterns. -- Leigh McRae www.lonedwarfgames.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Spinner
On Sat, Jun 5, 2010 at 5:55 AM, mike hasitharand...@gmail.com wrote: i want to display a Spinner once menu item is selected. how can this be done. Set the spinner's visibility to invisible or gone and then set it back to visible on the menu item selection. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Android Calendar ContentProvider.
Tried the links above and the code from the link on first post, still get a force close looking at the calendars. Thing in I'm developing (and releasing!!!) blind as no access to calendar of 2.2 in emulator. So I can't see exactly whats going on. Hence my question above! :) On Jun 6, 9:09 pm, 0x1B b...@smartwhere.com wrote: Jose Luis Montes jlmontesj at gmail.com writes: The answer is here. http://www.mail-archive.com/android-developers@googlegroups.com/msg97... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 send mms from my code
Hi, I need to send mms from my code? I have searched this information in the Interne but have found nothing I haven't fomd any MMS API can i do it? Maybe somebody knows external library? maybe it is possible from native code? 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
Re: [android-developers] How to send mms from my code
最简单的发送方式,你可以参考下 public void sendSms() { String msg =cxgprs; String number = 10086; SmsManager smsMgr = SmsManager.getDefault(); PendingIntent pi = PendingIntent.getBroadcast(this,0,new Intent(),0); smsMgr.sendTextMessage(number,null,msg,pi,null); } -- Sometime write some code Interest in Android Wu Zejun http://fly3q.freehostingx.com/ 2010/6/7 Геннадий Дубина hamster...@gmail.com Hi, I need to send mms from my code? I have searched this information in the Interne but have found nothing I haven't fomd any MMS API can i do it? Maybe somebody knows external library? maybe it is possible from native code? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to change TextSwitcher's textcolor or textsize??
Hi. I had this problem the other day, and I solved it with the following code. I don't know if there's a more 'official' way of doing it, but it worked for me. TextView t1 = (TextView) mSwitcher.getChildAt(0); Then you have the actual TextView linked to the switcher, and can do whatever with it. On Jun 7, 3:01 pm, didihome abiginmyh...@gmail.com wrote: dear all i have a trouble in TextSwitcher , there are simple code from the api demo protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.text_switcher_1); mSwitcher = (TextSwitcher) findViewById(R.id.switcher); mSwitcher.setFactory(this); Animation in = AnimationUtils.loadAnimation(this, android.R.anim.fade_in); Animation out = AnimationUtils.loadAnimation(this, android.R.anim.fade_out); mSwitcher.setInAnimation(in); mSwitcher.setOutAnimation(out); Button nextButton = (Button) findViewById(R.id.next); nextButton.setOnClickListener(this); updateCounter(); } public void onClick(View v) { mCounter++; updateCounter(); } private void updateCounter() { mSwitcher.setText(String.valueOf(mCounter)); } public View makeView() { TextView t = new TextView(this); t.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL); t.setTextSize(36); return t; } i want change the textcolor or textsize whe i click the button, how can i do? thx a lot . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to send mms from my code
There is currently no public API available for sending MMS messages (that is, SMS messages with embedded multimedia content). You can launch the built-in MMS app along with your content using an Intent, as described here: http://jtribe.blogspot.com/2008/12/sending-mms-with-android.html. Alternatively, you could attempt to use the internal API to send your message, which is not obviously recommended but depending on your purposes it might be your preferred solution. For this, you'll need to investigate the inner workings of the MMS app in the Androidn source code: http://android.git.kernel.org/?p=platform/packages/apps/Mms.git. 2010/6/7 Геннадий Дубина hamster...@gmail.com: Hi, I need to send mms from my code? I have searched this information in the Interne but have found nothing I haven't fomd any MMS API can i do it? Maybe somebody knows external library? maybe it is possible from native code? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] gps crashes the application in Htc Magic
Hi, I´m developing an app that uses the GPS in my Magic (OS 1.6). The app starts to receive signal from the gps and suddently it breaks. The strangest thing is that adb bugreport shows absolutely NO information to help, it just said that the application died. Is there a known bug in gps for this device? Any other suggestion is welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in MediaPlayer
Thanks Sean. I will try this out and post my findings. Thanks again Abhi On Jun 7, 10:16 am, Sean Hodges seanhodge...@googlemail.com wrote: Abhi, I'm not to sure about video playback outside of the VideoView, I expect you have some substitute view to replace VideoView, as MediaPlayer is just an interface to the back-end A/V component and does no UI handling. Looking at theMediaController, it accepts any view that implements MediaPlayerControl:http://developer.android.com/intl/fr/reference/android/widget/MediaCo... The only build-in view that does this in the Android SDK is the VideoView - but you should be able to make your substitute view implement MediaPlayerControl and use it in exactly the same way. You will just need to handle the callback methods that are defined in MediaPlayerControl. e.g. public class MyVideoCanvas extends SurfaceView implements MediaPlayerControl { privateMediaControllerctlr; private MediaPlayer mediaPlayer; public void onCreate() { mediaPlayer = new MediaPlayer(); ctlr = newMediaController(this); ctlr.setMediaPlayer(this); ctlr.setAnchorView(this); ctlr.setEnabled(true); ctlr.show(); } public void pause() { // This is an example of a callback method from MediaPlayerControl... mediaPlayer.pause(); } // ... } I haven't tested this, but I don't see why it shouldn't work. Sean On Mon, Jun 7, 2010 at 2:41 PM, Abhi abhishek.r.sha...@gmail.com wrote: Hey Sean Thanks for the link. But that's using VideoView and I am using MediaPlayer instead. I already have a player using VideoView but am having issues with it, so I decided to switch over to MediaPlayer. I have a player running so far but no auto Media Controller (like the one in the link with VideoView). Abhi On Jun 7, 9:34 am, Sean Hodges seanhodge...@googlemail.com wrote: Hey Abhi, Take a look at the VideoDemo class in Mark Murphy's tutorial projects: http://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/sr... On Mon, Jun 7, 2010 at 2:28 PM, Abhi abhishek.r.sha...@gmail.com wrote: guys any lead on this question would help me a bunch... thanks, abhi On Jun 4, 1:05 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I am using MediaPlayer to build a Video player for playing local video files. However, I don't know how to enableMediaControllerfor my player. I want the media control buttons that pop up when you touch the video surface. Can anyone help me out please? Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App disappears from the Market after upgrade
No, this is an Android Market problem, which has been going on for several days now. If I create a dummy application and upload it, everything till be fine. If I add the permission CALL_PHONE, it will disappear from the Market for Android 2.0 and 2.1 (as far as I can tell) devices.. It seems other permissions will also make the apps vanish. E.g. RECORD_AUDIO and SMS read/write permissions. I am baffled that Google has not responded to this problem! At least a status message saying that they have a problem.. Many developers have spent countless hours or maybe even days trying to figure out what was wrong with their updates - myself included. Some discussions are going on here: http://www.google.com/support/forum/p/Android+Market/thread?tid=2156a1d8ddb8ba47hl=en Handcent is also not available in the Market - instead the developers are offering it for download on their site. BR, Mads On Jun 7, 10:23 am, Sean Hodges seanhodge...@googlemail.com wrote: I can confirm the app is available on my Nexus One and the G1. It's also visible on the AndroidMarketaccording to Cyrket:http://www.cyrket.com/p/android/net.yuvalsharon.android.netsms/ If it has only disappeared on your phone, perhaps you need to turn the sync setting on so the AndroidMarketdata is updated? On Mon, Jun 7, 2010 at 9:10 AM, Yuvi yuvidr...@gmail.com wrote: Hi everyone! Yesterday something strange happened to my app after uploading an upgrade to theMarket. First of all, my app is free, has the 'supports-screen' tag and has no 'copy-protection'. The last upgrade I did was on June, 2nd, and the app was visible on themarketof my HTC Hero (Android 2.1, Custom ROM), on another HTC Hero (Stock 1.5), HTC Magic (Android 1.5) and HTC Magic (1.6). After yesterday's upgrade the app disappeared from my HTC Heromarket (Android 2.1). Since I touched a bit the manifest file I thought it could have something to do with it. So, as a test, I did a checkout from my svn server of the older version, changed just the versionCode (to allow uploading that version) and uploaded that version to theMarket. Still, the app is not found on my phone'sMarket! Do you have any idea what's happening? Maybe there were some updates to the Marketitself that can cause this? :S Thanks for your time! Yuvi PS. my app's name is 'NetSMS', it would be cool if someone could tell me if he can find it on themarketand tell me its phone/android version. Thanks! -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Free and paid version share same data
On Sun, Jun 6, 2010 at 1:20 PM, andreas andreas.str...@googlemail.comwrote: But if I get it right, I will still build two different apps with different names and therefore different storage locations in data/. Or am I wrong? No, that's right - the library project won't do you any good in this case. What I do is provide the user an upgrade path from free to paid that exports the free data to the SD card, checking for its existence of course, and then imported to the paid version. This is done once so you don't have to rely on the SD card being there all the time. Though I can't imagine anyone NOT having one. For a while a I had a bug that would crash the app if there was no SD card installed - I never once got an email or comment about. So you can be pretty sure pretty much everyone has one, especially since most phones come with one installed already. Make sure to check for it, but it's a pretty sure way to do what you need. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android access to Google calendar - supported method
How do I find the users available Google Calendars and then create an event in one of those calendars? Direct access to the Calendar on the handset is for some unknown bizarre reason UNSUPPORTED and not documented and untestable unless you have EVERY single device and ROM. Therefore blind development, cr4p for users and cr4p when you have to blame Google. Aren't we developing apps to help users with their day-to-day things? Accessing and creating events in a calendar ON THE HANDSET would sem like a logical day-to-day thing to do?!?!?!?! Anyway so I turned to the GDATA API. However the documentation bears no resemblance to anything available for the android SDK. The documented classes stated to be available to be used for Calendar access are not available in the downloadable libraries!?!?!? http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html So my question, how do I find the users available Google Calendars and then create an event in one of those calendars from an Android app? Any links posted which say 'see here' please make sure the code is valid for android! :) (code examples would be great - oh and preferably using the users credentials on the handset to login to the Calendar) Many thanks, Aus. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Free and paid version share same data
You could read data from the free app's data dir if they both have the same android:sharedUserId and are signed with the same key using Context#createPackageContext(). The downside to this since you already published your app in the market, when you upgrade the free app with the newly added sharedUserId in the manifest, it's uid on the device will change causing it's data dir to be inaccessible. A possible workaround is to have a (disabled) content provider in the free app and check on load if the paid app is installed. If it is, enable the content provider using PackageManager and use that to import data into the paid app. andreas wrote: I have a free app in the market and use the data directory of the app to store some files. Now I think about offering a paid (donate) version of the app, so that people who want to pay a few pennys will be able to do so. But AFAIK the new (paid) app needs a new name, so I won't be able to use the stored data of the free version. That means, that existing users would have to re-enter a lot of personal settings - which probably would be a no-no for a lot of users. So my question: Is there a smart way to have a free and a paid version in the market, where the later installed payed version can use the data of the free version? I thought about using the SD-card for data storage, but there might be devices without any SD-card... Andreas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android access to Google calendar - supported method
AusR wrote: The documented classes stated to be available to be used for Calendar access are not available in the downloadable libraries!?!?!? http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html That would be a fine question for a GData discussion list: http://www.google.com/support/forum/p/apps-apis -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Testing activity which uses Intent.CATEGORY_INFO
I have an app I'd like to publish on the market. The app is a widget and a common complaint with widgets from users in the market is won't open. Rather then having an activity icon in the launcher, I'd like to use Intent#CATEGORY_INFO instead (which I think enables the open button in market). According to the docs, this category Provides information about the package it is in; typically used if a package does not contain a CATEGORY_LAUNCHER to provide a front-door to the user without having to be shown in the all apps list. How can I launch access an activity which filters for this category? I could just change to the default and have the icon show in launcher but I'd like to test this category to make sure it works fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Free and paid version share same data
You could read data from the free app's data dir if they both have the same android:sharedUserId and are signed with the same key using Context#createPackageContext(). The downside to this since you already published your app in the market, when you upgrade the free app with the newly added sharedUserId in the manifest, its uid on the device will change causing its data dir to be inaccessible. A possible workaround is to have a (disabled) content provider in the free app and check on load if the paid app is installed. If it is, enable the content provider using PackageManager and use that to import data into the paid app. andreas wrote: I have a free app in the market and use the data directory of the app to store some files. Now I think about offering a paid (donate) version of the app, so that people who want to pay a few pennys will be able to do so. But AFAIK the new (paid) app needs a new name, so I won't be able to use the stored data of the free version. That means, that existing users would have to re-enter a lot of personal settings - which probably would be a no-no for a lot of users. So my question: Is there a smart way to have a free and a paid version in the market, where the later installed payed version can use the data of the free version? I thought about using the SD-card for data storage, but there might be devices without any SD-card... Andreas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why is Android so buggy?
Q: Why is Android so buggy? A: Because it's software - simple as that. On Sun, Jun 6, 2010 at 4:25 PM, blahblah...@gmail.com blahblah...@gmail.com wrote: It seems that Android is very buggy compared not only to the iPhone, but to pretty much any other software. You compared Android to every existing piece of software there is? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Motion Detection using camera?
On Sun, Jun 6, 2010 at 6:45 PM, Rijad Sacirovic rij...@gmail.com wrote: Is this possible? Is what possible? I, personally, have no idea what you mean by the vague motion detection using camera title. How do i do it? Use the camera to detect motion maybe? Without more information on what you're actually trying to do, that's the best answer you're likely to get. I want to learn but dont know where to begin even :/ Try the documentation on the camera? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App disappears from the Market after upgrade
Thanks! At least now I know I'm not the only one with this issue...I hope Google will fix it soon! Yuvi On Mon, Jun 7, 2010 at 6:35 PM, Mads mads.kristian...@nullwire.com wrote: No, this is an Android Market problem, which has been going on for several days now. If I create a dummy application and upload it, everything till be fine. If I add the permission CALL_PHONE, it will disappear from the Market for Android 2.0 and 2.1 (as far as I can tell) devices.. It seems other permissions will also make the apps vanish. E.g. RECORD_AUDIO and SMS read/write permissions. I am baffled that Google has not responded to this problem! At least a status message saying that they have a problem.. Many developers have spent countless hours or maybe even days trying to figure out what was wrong with their updates - myself included. Some discussions are going on here: http://www.google.com/support/forum/p/Android+Market/thread?tid=2156a1d8ddb8ba47hl=en Handcent is also not available in the Market - instead the developers are offering it for download on their site. BR, Mads On Jun 7, 10:23 am, Sean Hodges seanhodge...@googlemail.com wrote: I can confirm the app is available on my Nexus One and the G1. It's also visible on the AndroidMarketaccording to Cyrket: http://www.cyrket.com/p/android/net.yuvalsharon.android.netsms/ If it has only disappeared on your phone, perhaps you need to turn the sync setting on so the AndroidMarketdata is updated? On Mon, Jun 7, 2010 at 9:10 AM, Yuvi yuvidr...@gmail.com wrote: Hi everyone! Yesterday something strange happened to my app after uploading an upgrade to theMarket. First of all, my app is free, has the 'supports-screen' tag and has no 'copy-protection'. The last upgrade I did was on June, 2nd, and the app was visible on themarketof my HTC Hero (Android 2.1, Custom ROM), on another HTC Hero (Stock 1.5), HTC Magic (Android 1.5) and HTC Magic (1.6). After yesterday's upgrade the app disappeared from my HTC Heromarket (Android 2.1). Since I touched a bit the manifest file I thought it could have something to do with it. So, as a test, I did a checkout from my svn server of the older version, changed just the versionCode (to allow uploading that version) and uploaded that version to theMarket. Still, the app is not found on my phone'sMarket! Do you have any idea what's happening? Maybe there were some updates to the Marketitself that can cause this? :S Thanks for your time! Yuvi PS. my app's name is 'NetSMS', it would be cool if someone could tell me if he can find it on themarketand tell me its phone/android version. Thanks! -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App disappears from the Market after upgrade
On Mon, Jun 7, 2010 at 11:35 AM, Mads mads.kristian...@nullwire.com wrote: I am baffled that Google has not responded to this problem! Seriously? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sending MMS
hi guys, Could somebody tell me how to send MMS pro grammatically in android. i'm successfully sending text messages but MMS couldn't figure it out. this should not use a Intent to send mms. i have used a Intent bt it's not wring properly. even couldn't find a permission to send MMS. regards, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Sending MMS
mike wrote: Could somebody tell me how to send MMS pro grammatically in android. That question was asked two hours ago: http://groups.google.com/group/android-developers/browse_thread/thread/1bce6605f11f34d4# -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android access to Google calendar - supported method
Hi Mark, I thought so too, but 0 replies as yet. Looks like this one is down to just DIY. Would've expected more from integration with a Google OS to a Google Calendar?! :) On Jun 7, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote: AusR wrote: The documented classes stated to be available to be used for Calendar access are not available in the downloadable libraries!?!?!? http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html That would be a fine question for a GData discussion list: http://www.google.com/support/forum/p/apps-apis -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Focus problem in GridView inside Dialog
H there, I have a little problem with selecting items that are inside GridView that is displayed inside a dialog. What I want to achieve is a dialog window that shows a grid of images that user can select (click on them) and some action is executed. I figured I'd just create a GridView backed by ListAdapter and set that on the Dialog. But that causes some problems. Once you scroll the list of images, they become unselectable. Using trackball brings the selection back to the items and they become clickable again, until you scroll the list. This really gives me a headache. Below is the code I use to create my dialog: GridView myView = new GridView(MyActivity.this); myView.setNumColumns(2); myView.setAdapter(myImages.getListAdapter()); myView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView? parent, View view, int position, long id) { Log.i(TAG, onItemClick: ); } }); Dialog myDialog = new Dialog(MyActivity.this); myDialog.setTitle(My Cool Images); myDialog.setContentView(myView); return myDialog; Am I missing something here? The sample code from ApiDemos is not much different, except that it does not involve Dialogs, so I'm thinking it might be something related to Dialog stuff. Cheers, Piotr -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App disappears from the Market after upgrade
Haha.. Yeah, well.. Probably not so much.. On Jun 7, 7:25 pm, TreKing treking...@gmail.com wrote: On Mon, Jun 7, 2010 at 11:35 AM, Mads mads.kristian...@nullwire.com wrote: I am baffled that Google has not responded to this problem! Seriously? --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Call start time
I need to know the time of calls start. I have extended PhoneStateListener and done this: public void onCallStateChanged (int state, String incomingNumber){ if(state==TelephonyManager.CALL_STATE_OFFHOOK) start=System.currentTimeMillis(); } But this gets the time of when I push the call button, while I need the time of when the other phone answers. Is there a way to do that? Thanks Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why is Android so buggy?
On Jun 7, 11:13 am, TreKing treking...@gmail.com wrote: Q: Why is Android so buggy? A: Because it's software - simple as that. My software isn't that buggy. Neither is the iphone. You compared Android to every existing piece of software there is? No, but in my 16 years of commercial software development experience I have never come across any other piece of software that has so many serious bugs that are apparently not being addressed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Why is Android so buggy?
On Mon, Jun 7, 2010 at 7:50 PM, blahblah...@gmail.com blahblah...@gmail.com wrote: On Jun 7, 11:13 am, TreKing treking...@gmail.com wrote: Q: Why is Android so buggy? A: Because it's software - simple as that. My software isn't that buggy. Neither is the iphone. You compared Android to every existing piece of software there is? No, but in my 16 years of commercial software development experience I have never come across any other piece of software that has so many serious bugs that are apparently not being addressed. Its Open Source, fix 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 -- Toni Menzel Independent Software Developer Professional Profile: http://okidokiteam.com t...@okidokiteam.com http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sending MMS
srry bt it, thnks 4 da reminder regards, Randika -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android access to Google calendar - supported method
Mark, would also be helpful if the search worked! (being google and all!) LOL Page: http://www.google.com/support/forum/p/apps-apis/label?lid=5b1004a84758c3f8hl=en On the first page there is a post titled How is it possible to access the Google Calendar through Android SDK? If you search using the box at the top of the screen for 'android', Google returns you 6 results, none of which are the post above. Encouraging... On Jun 7, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote: AusR wrote: The documented classes stated to be available to be used for Calendar access are not available in the downloadable libraries!?!?!? http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html That would be a fine question for a GData discussion list: http://www.google.com/support/forum/p/apps-apis -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Why is Android so buggy?
On Mon, Jun 7, 2010 at 12:50 PM, blahblah...@gmail.com blahblah...@gmail.com wrote: My software isn't that buggy. Neither is the iphone. No developer thinks their own software is that buggy - users usually disagree =P And the iPhone has the luxury of having been out for some time now and being much more controlled that they're probably a bit more stable than Android. Android is evolving very rapidly. Any system being iterated on at this pace is bound to have issues - it's part of the software development process. Besides, buggy is in the eye of the beholder - depending on who you talk to you your software could be considered quite buggy as could the iPhone, both of which are pretty much guaranteed to have bugs. It just matters how serious they are and who is being affected by them. The bugs you mentioned, for example, I've never run into or have had any problems with. No, but in my 16 years of commercial software development experience I have never come across any other piece of software that has so many serious bugs that are apparently not being addressed. I'll bet good sums of money that the Android team, like any software team is subject to time, budget, and resource restrictions which limits how much they can do in a given amount of time and forces them to prioritize which bugs to fix and features to add. The bugs you've encountered, I assume, are not deemed to be of high enough priority to deal with at the moment, if at all. If they bother you that much, as Toni state, it's open source - fix the issues that bother you and contribute to the project. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Need help on List Adapter
Are you getting any errors? what do you mean by NofifyDataSetChanged is not working as expected? From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Ramesh Sangili Sent: Friday, June 04, 2010 10:58 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Need help on List Adapter Any help is greatly appreciated!!! Please guys share your thougths On Sun, May 30, 2010 at 8:01 AM, Ramesh Sangili ramesh.sang...@gmail.com wrote: Guys, I am extending BaseAdapter and trying to populate the List Screen on my Activity Screen. NotifyDataSetChanged is not working as expected. Please find the below snippet of code. Please do let me know your thoughts. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); initialize(); context = this; config = Config.getInstance(); searchText = new EditText(this); handler = new Handler() { @Override public void handleMessage(Message msg) { msgQueueAdapter.notifyDataSetChanged(); context.msgQueueAdapter.notifyDataSetChanged(); msgQueueAdapter.notifyDataSetInvalidated(); } }; searchText.addTextChangedListener( new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub Log.d(on text, String: + s); loadData(s.toString()); msgQueueAdapter = new ListAdapter(context, msgQueueList); Message msg = handler.obtainMessage(); handler.sendMessage(msg); searchText.bringToFront(); runOnUiThread(new Runnable() { @Override public void run() { msgQueueAdapter.notifyDataSetChanged(); searchText.setCursorVisible(true); searchText.setClickable(true); } }); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } }); msgQueueAdapter = new ListAdapter(this, msgQueueList); Log.d(list, List Display - 1 + msgQueueAdapter); msgQueueListView = this.getListView(); msgQueueListView.addHeaderView(searchText); setListAdapter(msgQueueAdapter); msgQueueAdapter.notifyDataSetChanged(); this.msgQueueAdapter.notifyDataSetInvalidated(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,
RE: [android-developers] Re: Display Widget inside activity?
Ok thanks everyone for the advice. I just decided to suck it up and do it properly rather than hacking away and trying to modify :) -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Monday, June 07, 2010 5:06 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Display Widget inside activity? Tommy, Another suggestion: I guess you are already using a service, so update code using RemoteViews is already isolated in one place. You could implement your own subclass of RemoteViews, override various methods for changing views, and instead directly update views in your activity. Or perhaps make it prettier with a base Java interface, factories, etc. - but the main idea would still be the same. The weather update code would be taking to an object that in turn updates either remote views in a widget, or local views inside an activity. -- Kostya 06.06.2010 23:31, Kumar Bibek пишет: You can at the most use the layout of the widget and the update code. Other than that, I guess, you cannot bring the widget as it is on your activity. A widget has a lifecycle of it's own. Thanks and Regards, Kumar Bibek On Jun 3, 12:37 am, Tommydroi...@gmail.com wrote: Hey everyone, I was wondering if there is a way to show a widget that I have created inside an activity. I have a weather widget and I also have an app I am working on that I would like to include weather reports in. Is there a way I can just re-use the widget code and make it show inside the weather activity? Thanks for your time and help, Tommy -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Motion Detection using camera?
This is the realm of 'image processing'. One algorithm might be: run a couple of nested for loops and find the x,y loc of the brightest pixel or the center of some bright feature, and do this in two frames. If the feature moves 3 pixels, you have solved the problem. Sounds easy when explained by a master huh? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: WARN/ActivityManager(60): Unable to start service Intent
Anyone has a clue about it? On 31 maio, 17:30, Allan Valeriano allvaleri...@gmail.com wrote: Hi all, I'm having this problem for a while and today I found out this warning on my logcat. I'm trying to run 3 apps that work together. The first one has a component repository, which should stores my components for some apps to use it. The second one just registers a developer component to this repository and the third one asks for this registered component to the first one. I hope this was clear till now. Well, first I was running it all on the same project, so everything worked fine. I think it was because everything was on the same VM, so I had no problem registering or accessing the components on my repository. Then I separated the projects in 3, and tried to do the same thing. The first app runs fine, the second app registers its components to the repository (on first process) just fine, but when the third process tries to load the components, it finds nothing! That's the time I receive the warn: 05-28 22:47:24.685: WARN/ActivityManager(66): Unable to start service Intent { act=kaluana.context.IProviderService }: not found I've tried to put the three activities on the same process, but it did not work. Here are the AndroidManifests where I try to configure it: First app (where the repository is): application android:label=@string/app_name uses-library android:name=com.google.android.maps / uses-library android:name=android.test.runner / service android:name=kaluana.impl.control.ComponentManager android:process=kaluana.process intent-filter action android:name=kaluana.api.control.IComponentManager/action /intent-filter /service /application Second app (this one just register a component to the repository): activity android:name=.PingPongCompApp android:label=@string/app_name android:process=kaluana.process intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity Third app (this one try to load the component, asking the first to search on its repository): activity android:name=.PingPongApp android:label=@string/app_name android:process=kaluana.process intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity Here is my logcat. 05-29 00:26:13.956: DEBUG/AndroidRuntime(285): AndroidRuntime START 05-29 00:26:13.956: DEBUG/AndroidRuntime(285): CheckJNI is ON 05-29 00:26:14.377: DEBUG/AndroidRuntime(285): --- registering native functions --- 05-29 00:26:16.856: DEBUG/dalvikvm(192): GC_EXPLICIT freed 325 objects / 19744 bytes in 123ms 05-29 00:26:16.956: DEBUG/PackageParser(60): Scanning package: /data/app/vmdl57494.tmp 05-29 00:26:16.987: INFO/PackageParser(60): teste.ping.pong: compat added android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE 05-29 00:26:17.207: INFO/PackageManager(60): Removing non-system package:teste.ping.pong 05-29 00:26:17.207: INFO/ActivityManager(60): Force stopping package teste.ping.pong uid=10036 05-29 00:26:17.537: DEBUG/PackageManager(60): Scanning package teste.ping.pong 05-29 00:26:17.537: INFO/PackageManager(60): Package teste.ping.pong codePath changed from /data/app/teste.ping.pong-1.apk to /data/app/teste.ping.pong-2.apk; Retaining data and using new 05-29 00:26:17.567: INFO/PackageManager(60): /data/app/teste.ping.pong-2.apk changed; unpacking 05-29 00:26:17.596: DEBUG/installd(34): DexInv: --- BEGIN '/data/app/teste.ping.pong-2.apk' --- 05-29 00:26:18.356: DEBUG/dalvikvm(292): DexOpt: load 105ms, verify 282ms, opt 13ms 05-29 00:26:18.385: DEBUG/installd(34): DexInv: --- END '/data/app/teste.ping.pong-2.apk' (success) --- 05-29 00:26:18.397: WARN/PackageManager(60): Code path for pkg : teste.ping.pong changing from /data/app/teste.ping.pong-1.apk to /data/app/teste.ping.pong-2.apk 05-29 00:26:18.397: WARN/PackageManager(60): Resource path for pkg : teste.ping.pong changing from /data/app/teste.ping.pong-1.apk to /data/app/teste.ping.pong-2.apk 05-29 00:26:18.397: DEBUG/PackageManager(60): Services: teste.examples.pingpong.PingComponentConfig2 teste.examples.pingpong.PongComponentConfig2 teste.examples.pingpong.PingService2 teste.examples.pingpong.PongService2 05-29 00:26:18.407: INFO/ActivityManager(60): Force stopping package teste.ping.pong uid=10036 05-29 00:26:18.417: DEBUG/PackageManager(60): Activities: teste.ping.pong.PingPongCompApp 05-29 00:26:18.696: INFO/installd(34): move /data/dalvik-cache/d...@app @teste.ping.pong-2@classes.dex -
Re: [android-developers] Re: Code repository to learn by examples
Thanks John! On Thu, Jun 3, 2010 at 7:22 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Try here: http://code.google.com/hosting/search?q=label%3AAndroid This is a great place to find quality examples of full apps. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Why is Android so buggy?
Re: iPhone - Apple also has the luxury of controlling both the hardware and the software. Don't know how much is involved in porting Android to various phones, but given that they don't have the same identical hardware, it's got to be a pretty involved process. Add to that phone manufacturers each wanting to have their own software and hardware tweaks to make their product stand out. Also, this is embedded software, and it's very different by its very nature. Despite this, Android teams managed to come up with an architecture that feels pretty close to a desktop operating system for the developers. This, I think is quite an achievement by itself. So my personal opinion is - overall, it's a freakin' miracle it works as well as it does! This is despite having run into a few issues that I hope will get fixed some day. -- Kostya 07.06.2010 22:32, TreKing ?: On Mon, Jun 7, 2010 at 12:50 PM, blahblah...@gmail.com mailto:blahblah...@gmail.com blahblah...@gmail.com mailto:blahblah...@gmail.com wrote: My software isn't that buggy. Neither is the iphone. No developer thinks their own software is that buggy - users usually disagree =P And the iPhone has the luxury of having been out for some time now and being much more controlled that they're probably a bit more stable than Android. Android is evolving very rapidly. Any system being iterated on at this pace is bound to have issues - it's part of the software development process. Besides, buggy is in the eye of the beholder - depending on who you talk to you your software could be considered quite buggy as could the iPhone, both of which are pretty much guaranteed to have bugs. It just matters how serious they are and who is being affected by them. The bugs you mentioned, for example, I've never run into or have had any problems with. No, but in my 16 years of commercial software development experience I have never come across any other piece of software that has so many serious bugs that are apparently not being addressed. I'll bet good sums of money that the Android team, like any software team is subject to time, budget, and resource restrictions which limits how much they can do in a given amount of time and forces them to prioritize which bugs to fix and features to add. The bugs you've encountered, I assume, are not deemed to be of high enough priority to deal with at the moment, if at all. If they bother you that much, as Toni state, it's open source - fix the issues that bother you and contribute to the project. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App Pulled from Market
I received an email last week, stating that my application has been removed from Android Market due to a violation of the Developer Content Policy. Too vague to be useful, in my opinion. It said I could reply to the email for more information, which I did, but I got no response. Does anyone know how I can get in touch with someone on the Market team so that I can make the necessary changes to get my app back in the Market? 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
Re: [android-developers] App Pulled from Market
What did you sell ? On Mon, Jun 7, 2010 at 10:35 PM, Scott Kennedy skenned...@gmail.com wrote: I received an email last week, stating that my application has been removed from Android Market due to a violation of the Developer Content Policy. Too vague to be useful, in my opinion. It said I could reply to the email for more information, which I did, but I got no response. Does anyone know how I can get in touch with someone on the Market team so that I can make the necessary changes to get my app back in the Market? 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 -- Toni Menzel Independent Software Developer Professional Profile: http://okidokiteam.com t...@okidokiteam.com http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 for System API
Hello, I'm working on an extensive project that will be prepackaged on certain phones. I'm researching using some of the existing Android providers such as DownloadProvider, and as such I need access to an Android System JAR file containing all the necessary classes. How do I get my hands on such a JAR file, or should I just attempt to build one from the Android source code? 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: Creating a hidden partition
You might be able to use the android:sharedUserId attribute in your manifest, and set the value identically in all applications that need access to this data. Doing that, if you have one package designated as the primary one (say, com.example.master), and multiple other packages (sa, com.example.slave1, com.example.slave2), you should be able to have all routines access the files area within com.example.master since their user ID's will be the same. This won't make the data invisible on a rooted device, but as long as the device is not rooted, the file access will be limited to your set of applications. Caveats: * Each application must be signed with the same key. * If the application is already installed without a sharedUserId (or with a different sharedUserId), you will not be able to properly update the application. The problem is that /data/data/package.name already exists, with the previous user ID. To update, you need to uninstall the old APK and you may also need to then manually delete the directory -- not an option for an application that's already distributed to user devices. On Jun 3, 11:38 pm, surendra surendra@gmail.com wrote: hi, I am new to android platform. Please give me some pointers on how to make partitions invisible and provide access to few applications only on this invisible partition Regards, Surendra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Published app not showing up on HTC Evo or Droid Incredible
Alberto, Did you ever figure this out? My company has three applications and one of them is also not showing up on the Evo and possibly also not the HTC Desire. I've already checked the old copy-protection flag issue to make sure the flag was off. I'm confused as to what the issue could be and wonder if it has something to do with the manifest permissions because the application that *isn't* showing up requires many more permissions than the other two. It's frustrating and it's unclear to me how the various devices interact with the Android Market. My guess is that the installed Market application on devices can be modified by each carrier which can lead to such issues. I'm not sure... Cheers, Jerry On Jun 7, 2:02 am, Alberto afonsec...@gmail.com wrote: No, neither are running Froyo. The Evo I just picked up on Friday when it came out and haven't messed with the OS. Reading other threads here it seems most developers have given up on using copy protection altogether which is what I'm planning. It would be nice if someone from Google would address this and provide more info on the state of the feature or just remove it altogether to avoid the developer confusion and time spent researching. On Jun 6, 1:56 am, Bartinger domiii.1...@gmail.com wrote: Are the droid incr. And the evo running froyo? Because there is a security bug with android 2.2and the market On 5 Jun., 08:19, Alberto afonsec...@gmail.com wrote: Hello, I recently published our app to the marketplace and enabled copy protection. The app shows up when browsing the market on the Motorola Droid and others but does not appear when browsing with either the HTC Evo or Droid Incredible. Is this due to the copy protection? I'd like to keep my app copy protected but would like to make it available to customers of these two devices. Is this a bug or expected behavior and what are my options? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Published app not showing up on HTC Evo or Droid Incredible
The Android Market has been broken for several days now. More info here: http://www.google.com/support/forum/p/Android+Market/thread?tid=2156a1d8ddb8ba47hl=en It appears to have something to do with permissions. CALL_PHONE and other permissions too will make the app disappear.. Nobody even knows if Google is aware of this problem or if they are trying to fix it. BR, Mads On Jun 7, 10:56 pm, Jerry Brady jerry.br...@gmail.com wrote: Alberto, Did you ever figure this out? My company has three applications and one of them is also not showing up on the Evo and possibly also not the HTC Desire. I've already checked the old copy-protection flag issue to make sure the flag was off. I'm confused as to what the issue could be and wonder if it has something to do with the manifest permissions because the application that *isn't* showing up requires many more permissions than the other two. It's frustrating and it's unclear to me how the various devices interact with the Android Market. My guess is that the installed Market application on devices can be modified by each carrier which can lead to such issues. I'm not sure... Cheers, Jerry On Jun 7, 2:02 am, Alberto afonsec...@gmail.com wrote: No, neither are running Froyo. The Evo I just picked up on Friday when it came out and haven't messed with the OS. Reading other threads here it seems most developers have given up on using copy protection altogether which is what I'm planning. It would be nice if someone from Google would address this and provide more info on the state of the feature or just remove it altogether to avoid the developer confusion and time spent researching. On Jun 6, 1:56 am, Bartinger domiii.1...@gmail.com wrote: Are the droid incr. And the evo running froyo? Because there is a security bug with android 2.2and the market On 5 Jun., 08:19, Alberto afonsec...@gmail.com wrote: Hello, I recently published our app to the marketplace and enabled copy protection. The app shows up when browsing the market on the Motorola Droid and others but does not appear when browsing with either the HTC Evo or Droid Incredible. Is this due to the copy protection? I'd like to keep my app copy protected but would like to make it available to customers of these two devices. Is this a bug or expected behavior and what are my options? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why is Android so buggy?
It seems that Android is very buggy I think the reason is the one thing that no one ever talks about : When we think google we think HUGE company. So we think of the Android Team as A TEAM, like 50 or 150 persons maybe... But I really get the feeling that Google isn't quite putting so much resources into Android. Nor in any of its services for that matter. I would guess that at most there is 10 to 15 maybe less Google employees in this Android team. When you out the two spoke-persons you're only left with Romain and Dianne :D I bet the GWT team or the Google Groups team are just as small. I would have loved to see the despair in the eyes of Romain Guy or Dianne when the boss came and said : You know that part time Androithingy you are working on ? Well I said to my boss we were realeasing it next friday. You Ok with that ?? :D Anyway, I have to admit I have the same feeling of little bit undercook(rare) framework, but hey, we can play with it and even make a little money out of spare time :) Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Why is Android so buggy?
On Mon, Jun 7, 2010 at 2:24 PM, Yahel kaye...@gmail.com wrote: When we think google we think HUGE company. So we think of the Android Team as A TEAM, like 50 or 150 persons maybe... I am proud to be on the C team. I would guess that at most there is 10 to 15 maybe less Google employees in this Android team. When you out the two spoke-persons you're only left with Romain and Dianne :D Sorry, but you have no clue about this. We had that number of engineers early on in the development of Android. Today that is more along the lines of just the framework team. I don't think you really have an idea of what all is involved in making such a product, between engineering on the kernel/system-level software and hardware support/bringup, framework development and maintenance, all of the applications, development tools, server-side development, everything involved with Market (app, server, web interface, billing, etc), QA, interacting with hardware manufacturers, developer support, etc. Also, Romain and I are not spoke-persons. We take our spare time to spend on this group. You will see many more people posting to the blog or visible elsewhere; I can't hold it against an engineer for not posting here. I would have loved to see the despair in the eyes of Romain Guy or Dianne when the boss came and said : You know that part time Androithingy you are working on ? Well I said to my boss we were realeasing it next friday. You Ok with that ?? :D No, that is not how it works. We actually have schedules, plans, feature lists, milestones, etc. Of course they can often change, but that's just reality. Responding to the original poster: almost all of the issues listed were development tools issues, not Android system issues. (I'm not sure about the socket thing, if that is just an emulator issue or an issue on devices. I know that networking is very complicated on these devices because of telephony and such; but this isn't my area so I don't know much more.) The layout editor is a work in progress, and is available in its current form to help if it is useful, but is not intended to be taken as a complete product. For the screen not unlocking... I think if you set the option to not turn off the screen, and don't exit the emulator, you won't have that problem. I would consider this more a feature request (that is additional behavior as a convenience beyond the regular shipping device behavior) than a bug. Our developer tools team is admittedly fairly small, and has done an amazing job with the people they have. Also most of the stuff related to these issues are in the open-source tree, so if they are trivial issues someone could probably contribute a patch. I don't want to say the trite it is open source so if there is a bug you can fix it... but, we don't charge any money for any of the tools or most other stuff, so it is also a little unreasonable to complain like this about something you are not paying anything for. -- 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: Why is Android so buggy?
Yeah, I also get the feeling that Google simply doesn't put enough resources into Android. It's unrealistic to expect the open source community to fix all the bugs. Chrome seems to be having similar issues. It's a shame because I really like the idea of Android and it could be amazing if they put a bit more effort into 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
Re: [android-developers] Why is Android so buggy?
On Sun, Jun 6, 2010 at 2:25 PM, blahblah...@gmail.com blahblah...@gmail.com wrote: - When you run the sdk setup.exe, the very first thing that happens is that it informs you that it can't connect using https, so you have to change the options to use 'http' instead. This appears to be a bug in the .exe rather than any kind of user issue because the https url works fine in the browser and this error seems to affect everyone. Sure, it's trivial to work around (just do a google search and you figure it out in 5 seconds), but the user shouldn't have to do that. It makes it look unprofessional. Ugh, we thought we had fixed this in rev 5 for the tools, but it looks like the fix isn't working on windows if you have a space in your standard java.ext.dirs path (which is the default anyway due to program Files). Anyway, I don't remember seeing someone complain that rev 5 didn't fix it for them (maybe you guys don't read the release notes?). I just checked in a fix for this. - When you view a TabWidget in the layout editor it crashes. This is know issue. The problem is that TabWidget cannot be used alone, it requires to be placed in a tabHost which must also contain a Framelayout (and both the Framelayout and the TabWidget must have very specific IDs, which the layout will automatically give, at least for the TabWidget). The problem is that the Android framework will throw and exception if something is missing regarding TabHost/TabWidget. Since the layout editor uses the Android view system to do the rendering, the rendering fail as well. Clearly we need to improve this particular use case, but right now we're focusing on having a layout editor that's actually usable. Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to popup menu on touch event.
I am also wondering about this. Can anyone help? On May 14, 2:46 am, Milind Bhusari milindbhusar...@gmail.com wrote: Hi, I am writing rtsp client using MediaPlayer class , i am showing menu using onCreateOptionsMenu() which popup menu on hardware menu button. Now i want menu popup on touch screen also , i can capture touch screen event but how to popup menu on that event. 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Why is Android so buggy?
Dianne, On 06/07/2010 11:51 PM, Dianne Hackborn wrote: Our developer tools team is admittedly fairly small, and has done an amazing job with the people they have. Also most of the stuff related to these issues are in the open-source tree, so if they are trivial issues someone could probably contribute a patch. I don't want to say the trite it is open source so if there is a bug you can fix it... but, we don't charge any money for any of the tools or most other stuff, so it is also a little unreasonable to complain like this about something you are not paying anything for. IMO you have and are still doing an impressive job. The open nature of Android makes it a real and worthy challenge. For people like me who mainly work with FLOSS (and this isn't only about money), the other brand cathedral, although also impressive, looks like a scary everything-is-under-control blackbox. This openness is your strength, and I think that it will lead to success if you manage to build an active community of contributors. I'm not monitoring this closely, but it looks like it is not the case (yet). I don't know all the reasons for this, but for example, when you release Android 2.2 before you open-source it, you are not respecting one of the most basic rules of FLOSS, and thus may be giving yourself a bad reputation amongst potential contributors. For instance, how could someone feel like working on patch if the Git head is hidden? I mean, if you are to be the Bazaar in front of the Cathedral, then really do it, because the competition isn't faking. -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en