[android-developers] Regarding Gps on Android Gingerbread.
Hi All, I need to display current longitude and latitude where am staying at present location and my code works fine for android 2.3 below os but not for android 2.3 version. So,please help me out by giving some sample code or links where the code works for android 2.3.x.x versions. Thanks in Advance. Br, Yogi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I have a service run as a seperate process?
wait, why do you want to do this? kris On Tue, May 29, 2012 at 1:21 AM, Put_tiMe putt...@gmail.com wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can I have a service run as a seperate process?
There are two services. Out of them one is a work horse. While the other one is not. And the work horse service is something that the user chooses to turn on or off. If on, then when I see battery usage, my whole package comes up on top. I don't want that. If the work horse service is running, then I want to show it as that, not the entire package. On Tuesday, May 29, 2012 11:39:08 AM UTC+5:30, Kristopher Micinski wrote: wait, why do you want to do this? kris On Tue, May 29, 2012 at 1:21 AM, Put_tiMe putt...@gmail.com wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Gps on Android Gingerbread.
On Tue, May 29, 2012 at 1:08 AM, yogendra G yogi2...@gmail.com wrote: I need to display current longitude and latitude where am staying at present location and my code works fine for android 2.3 below os but not for android 2.3 version. There should be no difference. Perhaps you can elaborate on how your code is not working. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I have a service run as a seperate process?
On Tue, May 29, 2012 at 1:35 AM, Put_tiMe putt...@gmail.com wrote: If on, then when I see battery usage, my whole package comes up on top. So what? If the user turned your service on, they would expect the battery hit, no? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I have a service run as a seperate process?
Along with TreKing's understandable response, splitting the app into two processes and then doing IPC between them is also going to be a real pain, and potentially pretty heavyweight. kris On Tue, May 29, 2012 at 2:35 AM, Put_tiMe putt...@gmail.com wrote: There are two services. Out of them one is a work horse. While the other one is not. And the work horse service is something that the user chooses to turn on or off. If on, then when I see battery usage, my whole package comes up on top. I don't want that. If the work horse service is running, then I want to show it as that, not the entire package. On Tuesday, May 29, 2012 11:39:08 AM UTC+5:30, Kristopher Micinski wrote: wait, why do you want to do this? kris On Tue, May 29, 2012 at 1:21 AM, Put_tiMe putt...@gmail.com wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can I have a service run as a seperate process?
If i do that i get an error while installing saying: Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Please check logcat output for more details. Launch canceled! But logcat doesn't show anything. On Tuesday, May 29, 2012 11:07:25 AM UTC+5:30, imran ali wrote: Hi, use android:process=processName this in AndroidManifest.xml. this will helpful http://developer.android.com/guide/topics/manifest/application-element.html#proc Regards Imran Ali On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Lateral List (navigation)
I think he means the partially visible page that can be dragged in like in the Google+ app. On Tuesday, May 29, 2012 7:08:32 AM UTC+8, TreKing wrote: On Mon, May 28, 2012 at 9:31 AM, Davyd Melo davydm...@gmail.com wrote: What library/class can I use? Try the Android SDK / ListView. Also try reading the documentation for two seconds - there are tons of examples of the main view types, this being one of them. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 1:19 AM, TreKing treking...@gmail.com wrote: On Mon, May 28, 2012 at 3:10 PM, Latimerius l4t1m3r...@googlemail.com wrote: Say package A gets a package B's Context by calling Context pkgBctx = createPackageContext (B, 0); Read the summary for that method. Cheers for the hint but I know that by heart by now. ;-) This is not getting package B's Context. This is creating a Context that refers to that package. Context is an abstract concept, not some physical thing that is sitting around being shared. First of all, the docs say Context objects are not shared, however they share common state (Resources, ClassLoader, etc). The way I read this is that the important parts of Context *are* shared even though the Context itself (likely mostly an empty shell, a collection of references) is not. But more importantly and more to the point, the package B *itself*, its files, *is* a physical thing sitting around being shared. I'm not interested in the B's Context instance as such that A holds, I'm wondering how come it allows A to access B which is uninstalled by then. So you basically have an object that has some in-memory state information it obtained from B. If B goes away after it's created shouldn't matter as it's just the source for your local Context instance. Sorry, I should have been more specific as to what I meant saying A is able to use B through B's Context after B has been uninstalled. You're right and I understand that things like getPackageName() or getExternalCacheDirectory() will continue to work as those are not much more than a bunch of values stored in the instance somewhere. However the puzzling part is that A seems to be able to access (read and use) *files* in B's assets/ directory. If B's gone those should be gone too - right? Thanks for your 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cross App callback mechanism
Hello, I have a requirement that I'm finding not trivial to solve, at least for someone who is not at professional level in Android development. I am developing an API that stores user request (GET, PUT, POST, DELETE). Those request can be issued by any App that uses my API and are stored in a SQLite DB that belongs to my Manager App (the API exposes a content provider for this) which deals with maintaining different users' accounts and queuing all requests and executing them when there is network available. Each request is associated to it's owner (user id) and source (App package). The requests are executed when there is network coverage which, in my specific context, will happen mostly when the Apps that generated the request are switched off. The request are executed by an IntentService which is fired when network is connected. Now the problem: How can this IntentService update each App information using their business logic when the Apps are offline? I thought about having in the API a base class that would have to be extended by the Apps' developers and in that class they would implement the parsing of HTTP responses (which I get for them) accordingly to their App's business logic. But: 1) how can I invoke that code for parsing responses from within my intent service which belongs to my Manager App? 2) how would I know what to do specifically with each request? So I thought I should pass an method along with each request (from third party App), and that method should be executed after that request is executed (a callback mechanism but across Apps). Well I would appreciate any help, either on my logic of solving the problem or any advice of how it can be achieved on android. Thank you all in advance, Oleksandr -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 the Bitmap will disappear
Hi Perry, How you rotating the bitmap by using Touchevent or seekbar On May 28, 7:58 pm, Perry168 perry...@gmail.com wrote: Hi, I am using the Camera class to make the bitmap rotate in X-Axis. When the bitmap rotated around 60 degrees, it will disappear. After certain degree, the bitmap appears again. Can anyone tell me how making the bitmap can flip correctly? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create the Receiver for launch application in android
Hi, I want to enforce enterprise security by restricting the use of some applications like youtube or gtalk. My service runs in the background and it should show the home screen on launch of any of the blacklisted applications. However, there is no intent for Activity/application launch. Please let me know how to do this. I have tried this : ActivityManager activityManager = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE); ListRunningTaskInfo tasks = activityManager.getRunningTasks(3); ComponentName componentInfo = tasks.get(0).topActivity; String pkgName = componentInfo.getPackageName(); if (pkgName.contains(com.google.android.youtube)){ activityManager.killBackgroundProcesses(pkgName); Intent homeIntent = new Intent(Intent.ACTION_MAIN); homeIntent.addCategory(Intent.CATEGORY_HOME); homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(homeIntent); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getaddrinfo flags on Android
Hi, I'm trying to use getaddrinfo() on Android for resolving a hostname, but I have an issue with a code like this: struct addrinfo hints; memset(hints, 0, sizeof(hints)); hints.ai_family = AF_INET6; hints.ai_flags = AI_V4MAPPED; int res = getaddrinfo(hostname, NULL, hints, address); I think that according to the getaddrinfo() documentation, this should be a valid call. Nevertheless, getaddrinfo() returns EAI_BADFLAGS. Does anybody know why? When I don't set the ai_flags field, it works OK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] #define not getting reflected
Hi, We want to use #define value in Android framework/base code for a specific feature. We have added a value in BoardConfig.mk also added in frameworks/base/Android.mk. Still we are not able to get the correct value in cpp files. Here what we have done: *FEATURE_SUPPORT := true in BoardConfig.mk* * * *And* * * *ifeq ($(FEATURE_SUPPORT),true)* *LOCAL_CPPFLAGS += -DFEATURE_SUPPORT* *endif * * * *after the LOCAL_MODULE in frameworks/base/Android.mk* * * *In .cpp files, I am checking #ifdef FEATURE_SUPPORT* * * The value is not getting reflected.. Please let me know, if we are missing something here. Thanks Jayashree -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Mediarecorder
Which part of code is actually responsible for encoding the video and writing it to a location on memory? I looked into the code of mediarecorder.java and mediarecorder.h too, but couldnt understand. I couldnt find any code that might be doing the actual work. Any ideas? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Splitting screen area
Hi All, How is it possible to split a screen into say 3 or 4 sections?I want to basically have different colour option to be given for different sections in a screen. Shall be thankful for your responses. Best regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] lockCanvas() returns null when it is invisible
Hi all I want to display an image, on custom class (BufferView) derived from the SurfaceView class. The image is loaded from an intent which allows user to select of of the pictures in the default Android's gallery. Unfortunately, the view is occcluded by the gallery intent so lockCanvas() returns null when the root Activity tries to render the RGBA buffer retrieved from the image. (The image is fine---I can render the image to the view by pressing a display button afterwards) I also tried to render the image in onResume method yet it doesn't work. The image is loaded from an intent of Android's default gallery, so I put the render function in the onActivityResult() like this: @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { if (requestCode == 1 data != null) { Uri contentURI = Uri.parse(data.getDataString()); ContentResolver cr = getContentResolver(); InputStream in = null; try { in = cr.openInputStream(contentURI); BitmapFactory.Options options = new BitmapFactory.Options(); Bitmap galleryFile = BitmapFactory.decodeStream(in,null,options); imgHeight = galleryFile.getHeight(); imgWidth = galleryFile.getWidth(); img = new int[imgWidth * imgHeight]; galleryFile.getPixels(img, 0, imgWidth, 0, 0, imgWidth, imgHeight); bufferView.render(img, imgWidth, imgHeight); } catch (FileNotFoundException e) { e.printStackTrace(); } } } } In bufferView.render(), it contains a typical routine of rendering a RGBA buffer: public void render(int buf[], int w, int h) { if (buf != null) { canvas = holder.lockCanvas(); if (canvas != null) { canvas.drawBitmap(buf, 0, w, 0, 0, w, h, false, null); holder.unlockCanvasAndPost(canvas); } } } I wonder if there is any method, better without creating a new thread, to display the image in the view (i.e. the lockCanvas does not return null)? Thanks very much, TH -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Location
Experts, I want to get location data such as latitude and longitude. From documentation, i can do by three types Networks and GPS and using Passive. What is the third one passive type? I can use criteria to get the best provider of other two(using network and gps). I cant understand fully. Please someone explain me, kumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] all phones have any android version if do this @ firmwares of android version
all android version install on phone storage and almost phones have little storage so all won't to update next version of android. the solution is all android version install on sd card and all know minimum sd card used is 8 gb and maximum sd card used is 32 gb so is very easy any mobile have any version of android and all apps will installed in system files in sd card. google and companies work now with any size of android and this make android expanded feature to all people in all world. google make apps to take space of internal storage to be as ram or apps to take some space of sd card to be as ram more of phones to make phones speed. i wish to develop android to satisfy all people thnx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Gps on Android Gingerbread.
I think this code will help you. import android.app.IntentService; import android.content.Intent; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; public class LocationFinderService extends IntentService implements LocationListener{ private LocationFilter lp=null; private LocationManager locationManager=null; private Location location=null; public LocationFinderService(){ super(My Thread); } public void onHandleIntent(Intent intent){ while (true){ lp.putLocation(this.location); } } public void findLocation(){ this.locationManager=(LocationManager)getSystemService(LOCATION_SERVICE); this.locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10*1000, 10,this ); this.locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,10*1000,10,this); } public void onLocationChanged(Location location) { if(location!=null){ this.location=location; this.locationManager.removeUpdates(this); } } public void onProviderDisabled(String provider) { // TODO Auto-generated method stub } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub } public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } On Tue, May 29, 2012 at 11:38 AM, yogendra G yogi2...@gmail.com wrote: Hi All, I need to display current longitude and latitude where am staying at present location and my code works fine for android 2.3 below os but not for android 2.3 version. So,please help me out by giving some sample code or links where the code works for android 2.3.x.x versions. Thanks in Advance. Br, Yogi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Email application
Hello everyone, I'm new to android development and i know nothing. i have to complete a assignment and its all about android. In my app i want to give options to select to the user and once its done the selected values should be fetched in to the email body. how can i develop such a app please help me out thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to receive an event while moving through buttons
I am trying to implement a piano app in android. I have just 8 notes and 8 buttons for each note. I implemented onTouch for every button, and there is no problem when I just touch one button. But when I touch a button and move my finger to the next one, than the onTouch function for that button is not called and it is ignored. How can I manage to play notes during sliding my finger on the buttons without taking my finger up? I am really stuck here. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possible to set WifiP2pDevice.secondaryDeviceType ?
Hello, I am developing WiFi Direct application. Currently I am trying to exchange some custom info between devices within requestPeers() step. I know that I can call connect(), open socket and send whatever I want, but this requires user confirmation from the second device. What I am trying to do is to exchange some information in background! So: 1. Application calls requestPeers() 2. What the system offers as a result of requestPeers() is a ListWifiP2pDevice. 3. For every discovered device we received WifiP2pDevice object that contains some fields like name, mac etc. This is the only info we have at this step. What I am interested in is a possibility to configure that WifiP2pDevice object somehow for my device. Then other devices would receive preconfigured WifiP2pDevice object from my device on requestPeers() and read needed information from it. There is a field WifiP2pDevice.secondaryDeviceType with the description Secondary device type is an optional attribute that can be provided by a device in addition to the primary device type. Could I configure this field for the device my application is running on? 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] AudioRecord error : Unsupported configuration: sampleRate 44100, format 1, channelCount 1
Hello, I am interested to record audio using the API AudioRecord at the following configurations: SAMPPERSEC = 44100; channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO; audioEncoding = AudioFormat.ENCODING_PCM_16BIT; While initializing the AudioRecord API using the getMinBufferSize () method: buffersizebytes = AudioRecord.getMinBufferSize(SAMPPERSEC,channelConfiguration,audioEncoding); it throws an error value of -2: which denotes a failure due to the use of an invalid value. Could you please help in specifying if the configuration parameters look fine. and more specifically, I am interested to know if the sampling rate of 44100Hz is supported by the API. Cheers. Gurman. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: تصفيه المحتوى
يعني ايه مش افهم ممكن توضح -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Email application
Start to learn about list activity.you can Google list view android tutorial. 2012-5-29 下午5:37 於 Chanuka lionch...@gmail.com 寫道: Hello everyone, I'm new to android development and i know nothing. i have to complete a assignment and its all about android. In my app i want to give options to select to the user and once its done the selected values should be fetched in to the email body. how can i develop such a app please help me out 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why mediaRecorder.start(); goes in infinite loop, on some of android phone like S2 with o/s 2.3.6?
Hi, I have been doing call recording it is working fine, but on some android phone one of them is Samsung S2 with o/s 2.3.6 has been giving abnormal behaviour. This is my code snap //mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);// working for this. mediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);// infinite loop on .start(). mediaRecorder.setOutputFormat(audioformat); mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); mediaRecorder.setOutputFile(my file path); mediaRecorder.prepare(); Log.d(TAG, Before .start() method); mediaRecorder.start(); Log.d(TAG, After .start() method); with AudioSource VOICE_CALL (value 4), mediaRecorder.start(); is neither executing nor throwing exception. in my log, I am able to see only Before .start() method., neither below one nor catch() logs. Can any one help me to short out problem? is there any trick that I have been missing? Regards Imran Ali -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [ASK] about get location using GPS
Have you enable your GPS first? 2012-5-28 上午7:36 於 Alfa 672008...@student.uksw.edu 寫道: hi, i want to get my location in longitude and latitude from gps, and i use this code public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.googlemapview); mv = (MapView)findViewById(R.id.mapview); LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); //MyLocationListener myLocListener = new MyLocationListener(); //LocationListener mlocListener = locationListener; boolean isGPS = mlocManager .isProviderEnabled(LocationManager.GPS_PROVIDER); // If GPS is not enable then it will be on if(!isGPS) { Intent intent = new Intent(android.location.GPS_ENABLED_CHANGE); intent.putExtra(enabled, true); sendBroadcast(intent); } mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, locationListener); } private final LocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { updateWithNewLocation(location); } public void onProviderDisabled(String provider) { updateWithNewLocation(null); } public void onProviderEnabled(String provider) { } public void onStatusChanged(String provider, int status, Bundle extras) { } }; private void updateWithNewLocation(Location location) { String latLongString = ; if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); latLongString = Lat: + lat + \nLong: + lng; } else { latLongString = No location found; } Toast.makeText(getBaseContext(),latLongString, Toast.LENGTH_SHORT).show(); } and this is permission i use uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/ uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/ this code dont have any error message but it dont have right output. this is because onLocationChange method not called. i wondder how. can some one help me? ~Alfa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [ASK] about get location using GPS
That looks fine for me Regards, Michael http://www.itblogs.info 2012-5-29 下午5:49 於 Michael Leung michaelchi...@gmail.com 寫道: Have you enable your GPS first? 2012-5-28 上午7:36 於 Alfa 672008...@student.uksw.edu 寫道: hi, i want to get my location in longitude and latitude from gps, and i use this code public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.googlemapview); mv = (MapView)findViewById(R.id.mapview); LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); //MyLocationListener myLocListener = new MyLocationListener(); //LocationListener mlocListener = locationListener; boolean isGPS = mlocManager .isProviderEnabled(LocationManager.GPS_PROVIDER); // If GPS is not enable then it will be on if(!isGPS) { Intent intent = new Intent(android.location.GPS_ENABLED_CHANGE); intent.putExtra(enabled, true); sendBroadcast(intent); } mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, locationListener); } private final LocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { updateWithNewLocation(location); } public void onProviderDisabled(String provider) { updateWithNewLocation(null); } public void onProviderEnabled(String provider) { } public void onStatusChanged(String provider, int status, Bundle extras) { } }; private void updateWithNewLocation(Location location) { String latLongString = ; if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); latLongString = Lat: + lat + \nLong: + lng; } else { latLongString = No location found; } Toast.makeText(getBaseContext(),latLongString, Toast.LENGTH_SHORT).show(); } and this is permission i use uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/ uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/ this code dont have any error message but it dont have right output. this is because onLocationChange method not called. i wondder how. can some one help me? ~Alfa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Email application
juzz go through this link http://developer.android.com/guide/index.htmlmight be it will helpful for you!! cheers!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 mediaRecorder.start(); goes in infinite loop, on some of android phone like S2 with o/s 2.3.6?
recording is not possible in android!!! its not a part of sdk!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Email application
Or to read the Google tutorial too. That is a good starting point to learn android programming. Regards, Michael http://www.itblogs.info 2012-5-29 下午5:45 於 Michael Leung michaelchi...@gmail.com 寫道: Start to learn about list activity.you can Google list view android tutorial. 2012-5-29 下午5:37 於 Chanuka lionch...@gmail.com 寫道: Hello everyone, I'm new to android development and i know nothing. i have to complete a assignment and its all about android. In my app i want to give options to select to the user and once its done the selected values should be fetched in to the email body. how can i develop such a app please help me out 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Splitting screen area
Using tablelayout? Regards, Michael http://www.itblogs.info http://www.michaelleumg.info 2012-5-29 下午5:37 於 gayathri r gayu@gmail.com 寫道: Hi All, How is it possible to split a screen into say 3 or 4 sections?I want to basically have different colour option to be given for different sections in a screen. Shall be thankful for your responses. Best regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 2:15 AM, Latimerius l4t1m3r...@googlemail.comwrote: However the puzzling part is that A seems to be able to access (read and use) *files* in B's assets/ directory. If B's gone those should be gone too - right? Well, that's interesting. Don't know what to tell you about. I was mostly making most of my answer up =P Maybe someone has more insight into this topic and will chime in. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android tabHost with many activities inside each tab
On Tue, May 29, 2012 at 1:16 AM, LordMaKo juanman...@gmail.com wrote: is it a better approach to use fragmentshttp://developer.android.com/guide/topics/fundamentals/fragments.html as aneal [SO user] suggest? Yes. From what I've gathered in this group, ActivityGroup was a hack and should not be used. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create the Receiver for launch application in android
On Mon, May 28, 2012 at 2:07 AM, android user sisamt...@gmail.com wrote: Please let me know how to do this. Modify the firmware, which is outside the scope of this list. What you're trying to do is not possible for 3rd party apps - at least not in a reliable way that can't be easily circumvented. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Location
On Mon, May 28, 2012 at 4:02 AM, Kumarappan S tceandroiddevelo...@gmail.com wrote: What is the third one passive type? I can use criteria to get the best provider of other two(using network and gps). I cant understand fully. Please someone explain me, Watch this: http://lmgtfy.com/?q=Android+Location+Passive - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to receive an event while moving through buttons
On Mon, May 28, 2012 at 4:40 PM, unknown_rebel ozerta...@gmail.com wrote: How can I manage to play notes during sliding my finger on the buttons without taking my finger up? I am really stuck here. Start by reading this: http://developer.android.com/reference/android/view/MotionEvent.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android tabHost with many activities inside each tab
How I did such applications is that on ,say a button click, I setContentView to another (supposedly) activity, and did its initializations, overrode the onBackPressed method to reflect changes when back button was pressed. But I am sure my way is one of the bad ways to go about it. It makes the code difficult to read,maintain and quiet messy. So may be that is a workaround, it is not the best approach. On Tue, May 29, 2012 at 1:03 PM, TreKing treking...@gmail.com wrote: On Tue, May 29, 2012 at 1:16 AM, LordMaKo juanman...@gmail.com wrote: is it a better approach to use fragmentshttp://developer.android.com/guide/topics/fundamentals/fragments.html as aneal [SO user] suggest? Yes. From what I've gathered in this group, ActivityGroup was a hack and should not be used. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] #define not getting reflected
this belongs on android-porting or android-platform, as this list is for the SDK only. kris On Mon, May 28, 2012 at 12:07 AM, Jayashree Padmanaban jaishandr...@gmail.com wrote: Hi, We want to use #define value in Android framework/base code for a specific feature. We have added a value in BoardConfig.mk also added in frameworks/base/Android.mk. Still we are not able to get the correct value in cpp files. Here what we have done: FEATURE_SUPPORT := true in BoardConfig.mk And ifeq ($(FEATURE_SUPPORT),true) LOCAL_CPPFLAGS += -DFEATURE_SUPPORT endif after the LOCAL_MODULE in frameworks/base/Android.mk In .cpp files, I am checking #ifdef FEATURE_SUPPORT The value is not getting reflected.. Please let me know, if we are missing something here. Thanks Jayashree -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cross App callback mechanism
On Mon, May 28, 2012 at 10:55 AM, Oleksandr Kruk sanha1...@gmail.comwrote: How can this IntentService update each App information using their business logic when the Apps are offline? What do you mean when the apps are offline? If I understand you correctly, you would simply have to launch an intent or trigger a broadcast from your IntentService that has the information the other apps care about. The other apps would have to know the details of the intent or broadcast structure in order to properly listen for it. The intent would contain the data the app in question was requesting, in some known format. You would not have to know anything about their business logic, that would be up to them. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why mediaRecorder.start(); goes in infinite loop, on some of android phone like S2 with o/s 2.3.6?
Thank you Asheesh. But is working on most of phone, I am having problem with some specific phone only. Regards Imran Ali On Tuesday, May 29, 2012 1:23:11 PM UTC+5:30, asheesh arya wrote: recording is not possible in android!!! its not a part of sdk!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Splitting screen area
Hi Gayathri, By using NinePatch class , you can achieve the your target. with regards, M.G.Manikandan On Mon, May 28, 2012 at 4:33 PM, gayathri r gayu@gmail.com wrote: Hi All, How is it possible to split a screen into say 3 or 4 sections?I want to basically have different colour option to be given for different sections in a screen. Shall be thankful for your responses. Best regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *With warm regards,* ** *M.G.Manikandan* *9543972414* *mgmanikanda...@gmail.com* mgmanikanda...@gmail.com* * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Photo not saving to SD card.
I am using Android 4.03 on a Samsung Galaxy Nexus. The logs are showing that the file has been written to the phone memory, however when I check in windows explorer or using the phones gallery I cannot see the image that I have just taken a photo of. Here is my code. PictureCallback jpegCallback = new PictureCallback() { public void onPictureTaken(byte[] data, Camera camera) { FileOutputStream outStream = null; boolean mExternalStorageAvailable = false; boolean mExternalStorageWriteable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media mExternalStorageAvailable = mExternalStorageWriteable = true; Log.d(TAG, Can Write ); try { outStream = new FileOutputStream(String.format(/sdcard/myfile.jpg, System.currentTimeMillis())); outStream.write(data); outStream.close(); Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { // We can only read the media mExternalStorageAvailable = true; mExternalStorageWriteable = false; Log.d(TAG, Cant Write ); } else { // Something else is wrong. It may be one of many other states, but all we need // to know is we can neither read nor write mExternalStorageAvailable = mExternalStorageWriteable = false; Log.d(TAG, Other Error ); } } }; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why mediaRecorder.start(); goes in infinite loop, on some of android phone like S2 with o/s 2.3.6?
yes you can record call recording if your phone is on speaker mode -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cross App callback mechanism
Thanks for your answer TreKing! I am sorry, that was an unclear expression, by apps offline I meant they are not running. Exactly, you understood well, but I think I failed to explain that the time frame between storing requests and executing them can be anything like an hour, a day, a month, etc.. So in this context, when an application receives a response, lets say through a broadcast intent it wont know for which request that response was received. Thats why having a callback method associated to request would be better than simply an intent with the result. Imagine a situation: You are in a remote area with no network, you take a landscape photo, open facebook app and simply post that photo (without network). This post would remain in my framework until you have network, which is indefinite time. Now, at the moment you connect to network, lets say two days, it will be posted on facebook (by ManagerApp) and facebook app will get a response from ManagerApp. If you send that response as a broadcast to facebook app, how it is supposed to know that that response is related to that specific photo post you made days ago. Remember that I don't want to make developers to maintain mappings between their app requests and future response in order to solve this situation, all the information must be on the side of the framework (it's cleaner I guess). Thanks again On Tuesday, 29 May 2012 09:16:50 UTC+1, TreKing wrote: On Mon, May 28, 2012 at 10:55 AM, Oleksandr Kruk sanha1...@gmail.comwrote: How can this IntentService update each App information using their business logic when the Apps are offline? What do you mean when the apps are offline? If I understand you correctly, you would simply have to launch an intent or trigger a broadcast from your IntentService that has the information the other apps care about. The other apps would have to know the details of the intent or broadcast structure in order to properly listen for it. The intent would contain the data the app in question was requesting, in some known format. You would not have to know anything about their business logic, that would be up to them. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to braoadcast keyevent that can be detect by all running application automatically
hiii all can to please help me to know How to braoadcast keyevent that can be detect by all running application automatically thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cross App callback mechanism
It sounds like what you want is basically a message queue.. However, for a cross app solution, I think you'd want something that stores the data persistently somewhere, such as on disk. I'd probably make an API backed by a service that apps would interface to implementing this, if I were you... kris On Tue, May 29, 2012 at 5:06 AM, Oleksandr Kruk sanha1...@gmail.com wrote: Thanks for your answer TreKing! I am sorry, that was an unclear expression, by apps offline I meant they are not running. Exactly, you understood well, but I think I failed to explain that the time frame between storing requests and executing them can be anything like an hour, a day, a month, etc.. So in this context, when an application receives a response, lets say through a broadcast intent it wont know for which request that response was received. Thats why having a callback method associated to request would be better than simply an intent with the result. Imagine a situation: You are in a remote area with no network, you take a landscape photo, open facebook app and simply post that photo (without network). This post would remain in my framework until you have network, which is indefinite time. Now, at the moment you connect to network, lets say two days, it will be posted on facebook (by ManagerApp) and facebook app will get a response from ManagerApp. If you send that response as a broadcast to facebook app, how it is supposed to know that that response is related to that specific photo post you made days ago. Remember that I don't want to make developers to maintain mappings between their app requests and future response in order to solve this situation, all the information must be on the side of the framework (it's cleaner I guess). Thanks again On Tuesday, 29 May 2012 09:16:50 UTC+1, TreKing wrote: On Mon, May 28, 2012 at 10:55 AM, Oleksandr Kruk sanha1...@gmail.com wrote: How can this IntentService update each App information using their business logic when the Apps are offline? What do you mean when the apps are offline? If I understand you correctly, you would simply have to launch an intent or trigger a broadcast from your IntentService that has the information the other apps care about. The other apps would have to know the details of the intent or broadcast structure in order to properly listen for it. The intent would contain the data the app in question was requesting, in some known format. You would not have to know anything about their business logic, that would be up to them. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 10:01 AM, TreKing treking...@gmail.com wrote: On Tue, May 29, 2012 at 2:15 AM, Latimerius l4t1m3r...@googlemail.com wrote: However the puzzling part is that A seems to be able to access (read and use) *files* in B's assets/ directory. If B's gone those should be gone too - right? Well, that's interesting. Don't know what to tell you about. I was mostly making most of my answer up =P Maybe someone has more insight into this topic and will chime in. Fair enough - thanks anyway. I'll try to verify my results in the meantime. In theory, I guess it's conceivable that the framework tracks Contexts and marks packages as uninstalled but doesn't necessarily remove them right away if there still are Contexts out there referring to the package. I'd be surprised though if it worked that way in this case, there doesn't seem to be a function for application to call when it's done with a Context instance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cross App callback mechanism
tell me how to implement API. I wont to it. please tell me all the information in API -- * Rasika* █║▌│█│║▌║││█║▌│║▌║▌ © Θrginal profile of Rasika® -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can I have a service run as a seperate process?
Please check the logcat again. I believe this should fix it: android:process=:processName (note the :). -- K 2012/5/29 Put_tiMe putt...@gmail.com If i do that i get an error while installing saying: Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Please check logcat output for more details. Launch canceled! But logcat doesn't show anything. On Tuesday, May 29, 2012 11:07:25 AM UTC+5:30, imran ali wrote: Hi, use android:process=processName this in AndroidManifest.xml. this will helpful http://developer.android.com/**guide/topics/manifest/** application-element.html#prochttp://developer.android.com/guide/topics/manifest/application-element.html#proc Regards Imran Ali On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to braoadcast keyevent that can be detect by all running application automatically
You cannot do this, outside of modifying the firmware. On Tue, May 29, 2012 at 5:18 AM, sunny sunny1988su...@gmail.com wrote: hiii all can to please help me to know How to braoadcast keyevent that can be detect by all running application automatically thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Photo not saving to SD card.
On Tue, May 29, 2012 at 4:57 AM, Mark markmch...@gmail.com wrote: I am using Android 4.03 on a Samsung Galaxy Nexus. The logs are showing that the file has been written to the phone memory, however when I check in windows explorer or using the phones gallery I cannot see the image that I have just taken a photo of. It's there but isn't indexed: http://commonsware.com/blog/2011/08/31/mtp-external-storage.html Also, never hardwire /sdcard. Always use Environment.getExternalStorageDirectory() (or, for photos, better yet, Environment.getExternalPublicFilesDirectory()). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why is it so difficult for the customers to buy products on Android market?
I get about 10 mails every day, which says The order with ordernumber XXX through Google has been cancelled, since operator billing is not aproved for your customer. Why is it so difficult for the customers to buy products on Android market? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 it so difficult for the customers to buy products on Android market?
It's the Market team's way to let you know how your app is doing. If you get 10 of these a day, it's doing good. :) -- K 29.05.2012 14:26, MobileVisuals написал: I get about 10 mails every day, which says The order with ordernumber XXX through Google has been cancelled, since operator billing is not aproved for your customer. Why is it so difficult for the customers to buy products on Android market? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: XML parseing working in android 2.2 but not in android 4.0
i have done a simple solution.. I have find the root data/data data1/data1 /root from the xml string and get data from that element(root) to end element(/root) using substring and parse that substring...its working fine for me for all android versions. On Mon, May 28, 2012 at 6:14 PM, RAJESH RAJARAM rajeshrajar...@gmail.comwrote: Hi Bhaumik Thaker, I too suffered by the same error but for me its running upto 3.0... Only 4.0 making the problem. If u got the solution please post it here. i'm searching the solution last 5 days :(* * Rajesh Rajaram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Bhaumik Thaker -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] multiple_choice with multi text view
how to override the android.R.layout.simple_list_item_multiple_choice to make it support 2 textview or is there another one as android.R.layout.simple_list_item_2 who can support checkbox multiple choice can anyone help me with that please thx on advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: launching an app
Although the documentation has lots about using an app to launch an app via an intent, what seems to be left out is that the launched app must have a type of permission to be launched category android:name=android.intent.category.DEFAULT / There are probably other ways to do this as well. The code that worked for me is below. application ... activity android:name=.launchedAPPname android:label=@string/app_name intent-filter action android:name=com.thenewboston.travis.LAUNCHEDAPPNAME / category android:name=android.intent.category.DEFAULT / /intent-filter /activity As usual the use of capitals and not using capitals is completely arbitrary but the code contains what worked for me Best, Tom B On Monday, May 28, 2012 1:50:16 AM UTC-4, sourabh wrote: Dear All, How to launch an app programmatically. For example I want to launch an skype app on a click of button through my app. Thanks in advance. Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] multiple_choice with multi text view
Step #1: Find the android.R.layout file you want to start with in your SDK installation. Step #2: Copy it into your project. Step #3: Modify it to look how you want. Step #4: Use your own copy (therefore dropping the android prefix from the android.R.layout part). On Tue, May 29, 2012 at 7:11 AM, Live Happy livehap...@gmail.com wrote: how to override the android.R.layout.simple_list_item_multiple_choice to make it support 2 textview or is there another one as android.R.layout.simple_list_item_2 who can support checkbox multiple choice can anyone help me with that please thx on advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I have a service run as a seperate process?
Hmm, this is surprising. If I give my service another name, then I can't pass commands to it by calling 'setAction'. i.e. my service never invokes startCommand. Any reason why? Or any other work around for this? i.e. I don't want to do IPC. On Tuesday, May 29, 2012 12:09:41 PM UTC+5:30, Kristopher Micinski wrote: Along with TreKing's understandable response, splitting the app into two processes and then doing IPC between them is also going to be a real pain, and potentially pretty heavyweight. kris On Tue, May 29, 2012 at 2:35 AM, Put_tiMe putt...@gmail.com wrote: There are two services. Out of them one is a work horse. While the other one is not. And the work horse service is something that the user chooses to turn on or off. If on, then when I see battery usage, my whole package comes up on top. I don't want that. If the work horse service is running, then I want to show it as that, not the entire package. On Tuesday, May 29, 2012 11:39:08 AM UTC+5:30, Kristopher Micinski wrote: wait, why do you want to do this? kris On Tue, May 29, 2012 at 1:21 AM, Put_tiMe putt...@gmail.com wrote: I have a package, in which I have n activities and 2 services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Re: launching an app
On Tue, May 29, 2012 at 7:16 AM, Thomas tbirchm...@usa.net wrote: Although the documentation has lots about using an app to launch an app via an intent, what seems to be left out is that the launched app must have a type of permission to be launched category android:name=android.intent.category.DEFAULT / That is not a permission. That is a category. An Intent used with startActivity() automatically gets the DEFAULT category added to it (unlike startService(), sendBroadcast(), etc.). Hence, your intent-filter in your activity will need to have the DEFAULT category, along with any other categories you wish to support (e.g., BROWSABLE). As usual the use of capitals and not using capitals is completely arbitrary For your own action, perhaps. That is not true for any system-defined items, like your DEFAULT category. And, none of this has anything to do with the original question, which is how to *launch* an app, not how to create something that itself can be launched. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I have a service run as a seperate process?
On Tue, May 29, 2012 at 7:29 AM, Put_tiMe putt...@gmail.com wrote: i.e. I don't want to do IPC. Then get rid of your second process, and run your entire app as one process. Your users will thank you for not wasting their RAM and battery by having a second process that you do not really need. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] multiple_choice with multi text view
this is layout that i used it CheckedTextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/text1 android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:textAppearance=?android:attr/textAppearanceMedium android:gravity=center_vertical android:checkMark=?android:attr/listChoiceIndicatorMultiple android:paddingLeft=6dip android:paddingRight=6dip / how to modify it to support multiple text view 2 text under each other -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] multiple_choice with multi text view
On Tue, May 29, 2012 at 7:37 AM, Live Happy livehap...@gmail.com wrote: this is layout that i used it CheckedTextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/text1 android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:textAppearance=?android:attr/textAppearanceMedium android:gravity=center_vertical android:checkMark=?android:attr/listChoiceIndicatorMultiple android:paddingLeft=6dip android:paddingRight=6dip / how to modify it to support multiple text view 2 text under each other Use a vertical LinearLayout. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] multiple_choice with multi text view
im using list who fill by simple cursor adapter and there is 2 text who should to fill in the android.R.layout.simple_expandable_list_item_2 its work done but i want add check box but the android.R.layout.simple_list_item_multiple_choice fill only one text so how to override the android.R.layout.simple_list_item_multiple_choice to override 2 text new SimpleCursorAdapter(this, android.R.layout.simple_list_item_multiple_choice, m_cur, fields, new int[] {android.R.id.text1, android.R.id.text2}); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cross App callback mechanism
Thanks Kristopher, Actually that's exactly what I have, an API which provides the developer with access to all necessary data structure and manipulation. I made a draft just to explain better whats the problem: https://lh3.googleusercontent.com/-_NG1V3-5Rck/T8S4hnlIxWI/AD4/kGPgsRqkBxE/s1600/requestExec.png The number 1 is a broadcast receiver that reacts on an action of request execution by Queue Manager service. The problem is that in the receiver (1) I have no way to know what I am supposed to do with that response, because I don't know which request generated that response. I guess I must pass some context information from Some App to Queue Manager App and then back after executing. It can be a name of method to execute or something like that. On Tuesday, 29 May 2012 10:31:01 UTC+1, Kristopher Micinski wrote: It sounds like what you want is basically a message queue.. However, for a cross app solution, I think you'd want something that stores the data persistently somewhere, such as on disk. I'd probably make an API backed by a service that apps would interface to implementing this, if I were you... kris On Tue, May 29, 2012 at 5:06 AM, Oleksandr Kruk sanha1...@gmail.com wrote: Thanks for your answer TreKing! I am sorry, that was an unclear expression, by apps offline I meant they are not running. Exactly, you understood well, but I think I failed to explain that the time frame between storing requests and executing them can be anything like an hour, a day, a month, etc.. So in this context, when an application receives a response, lets say through a broadcast intent it wont know for which request that response was received. Thats why having a callback method associated to request would be better than simply an intent with the result. Imagine a situation: You are in a remote area with no network, you take a landscape photo, open facebook app and simply post that photo (without network). This post would remain in my framework until you have network, which is indefinite time. Now, at the moment you connect to network, lets say two days, it will be posted on facebook (by ManagerApp) and facebook app will get a response from ManagerApp. If you send that response as a broadcast to facebook app, how it is supposed to know that that response is related to that specific photo post you made days ago. Remember that I don't want to make developers to maintain mappings between their app requests and future response in order to solve this situation, all the information must be on the side of the framework (it's cleaner I guess). Thanks again On Tuesday, 29 May 2012 09:16:50 UTC+1, TreKing wrote: On Mon, May 28, 2012 at 10:55 AM, Oleksandr Kruk sanha1...@gmail.com wrote: How can this IntentService update each App information using their business logic when the Apps are offline? What do you mean when the apps are offline? If I understand you correctly, you would simply have to launch an intent or trigger a broadcast from your IntentService that has the information the other apps care about. The other apps would have to know the details of the intent or broadcast structure in order to properly listen for it. The intent would contain the data the app in question was requesting, in some known format. You would not have to know anything about their business logic, that would be up to them. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en On Tuesday, 29 May 2012 10:31:01 UTC+1, Kristopher Micinski wrote: It sounds like what you want is basically a message queue.. However, for a cross app solution, I think you'd want something that stores the data persistently somewhere, such as on disk. I'd probably make an API backed by a service that apps would interface to implementing this, if I were you... kris On Tue, May 29, 2012 at 5:06 AM, Oleksandr Kruk sanha1...@gmail.com wrote: Thanks for your answer TreKing! I am sorry, that was an unclear expression, by apps offline I meant they are not running. Exactly, you understood well, but I think I failed to explain that the time frame between storing requests and executing them can be anything like an hour, a day, a month, etc.. So in this context, when an application receives a
Re: [android-developers] Cross App callback mechanism
Hi, I don't know which request generated that response. while to BroadCast you must have been passing intent, so put your url in that intent using putExtra(Key,your url); on BroadCastReceiver, you will have onReceive( Context c, Intent intent); so extract that from intent, like intent.getString(Key); In that way you can identify the response of particular request. hope will help you. Regards Imran Ali On Tuesday, May 29, 2012 5:29:38 PM UTC+5:30, Oleksandr Kruk wrote: Thanks Kristopher, Actually that's exactly what I have, an API which provides the developer with access to all necessary data structure and manipulation. I made a draft just to explain better whats the problem: https://lh3.googleusercontent.com/-_NG1V3-5Rck/T8S4hnlIxWI/AD4/kGPgsRqkBxE/s1600/requestExec.png The number 1 is a broadcast receiver that reacts on an action of request execution by Queue Manager service. The problem is that in the receiver (1) I have no way to know what I am supposed to do with that response, because I don't know which request generated that response. I guess I must pass some context information from Some App to Queue Manager App and then back after executing. It can be a name of method to execute or something like that. On Tuesday, 29 May 2012 10:31:01 UTC+1, Kristopher Micinski wrote: It sounds like what you want is basically a message queue.. However, for a cross app solution, I think you'd want something that stores the data persistently somewhere, such as on disk. I'd probably make an API backed by a service that apps would interface to implementing this, if I were you... kris On Tue, May 29, 2012 at 5:06 AM, Oleksandr Kruk sanha1...@gmail.com wrote: Thanks for your answer TreKing! I am sorry, that was an unclear expression, by apps offline I meant they are not running. Exactly, you understood well, but I think I failed to explain that the time frame between storing requests and executing them can be anything like an hour, a day, a month, etc.. So in this context, when an application receives a response, lets say through a broadcast intent it wont know for which request that response was received. Thats why having a callback method associated to request would be better than simply an intent with the result. Imagine a situation: You are in a remote area with no network, you take a landscape photo, open facebook app and simply post that photo (without network). This post would remain in my framework until you have network, which is indefinite time. Now, at the moment you connect to network, lets say two days, it will be posted on facebook (by ManagerApp) and facebook app will get a response from ManagerApp. If you send that response as a broadcast to facebook app, how it is supposed to know that that response is related to that specific photo post you made days ago. Remember that I don't want to make developers to maintain mappings between their app requests and future response in order to solve this situation, all the information must be on the side of the framework (it's cleaner I guess). Thanks again On Tuesday, 29 May 2012 09:16:50 UTC+1, TreKing wrote: On Mon, May 28, 2012 at 10:55 AM, Oleksandr Kruk sanha1...@gmail.com wrote: How can this IntentService update each App information using their business logic when the Apps are offline? What do you mean when the apps are offline? If I understand you correctly, you would simply have to launch an intent or trigger a broadcast from your IntentService that has the information the other apps care about. The other apps would have to know the details of the intent or broadcast structure in order to properly listen for it. The intent would contain the data the app in question was requesting, in some known format. You would not have to know anything about their business logic, that would be up to them. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en On Tuesday, 29 May 2012 10:31:01 UTC+1, Kristopher Micinski wrote: It sounds like what you want is basically a message queue.. However, for a cross app solution, I think you'd want something that stores the data persistently somewhere, such as on disk. I'd probably make an API backed by a service that apps would interface to
Re: [android-developers] Android Lateral List (navigation)
Zsolt, this is correct!!! When the user clicks on the icon of the ActionBar the list slides out. On Tue, May 29, 2012 at 4:03 AM, Zsolt Vasvari zvasv...@gmail.com wrote: I think he means the partially visible page that can be dragged in like in the Google+ app. On Tuesday, May 29, 2012 7:08:32 AM UTC+8, TreKing wrote: On Mon, May 28, 2012 at 9:31 AM, Davyd Melo davydm...@gmail.com wrote: What library/class can I use? Try the Android SDK / ListView. Also try reading the documentation for two seconds - there are tons of examples of the main view types, this being one of them. --**--** --**--- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Davyd Bandeira de Melo - Instituto Atlântico Firmware Trainee Oracle Certified Java Programmer 6.0 Linux User #526110 Email Pessoal: davydm...@gmail.com Atlante Mail: davyd_m...@atlantico.com.br Messenger: davyd...@hotmail.com Skype: davydmelo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: launching an app
Hi Mark, I think you should reread the question. He wanted to use an app to launch another app. Another consideration is the launched app might not have category android:name=android.intent.category.DEFAULT / in its manifest. Best Tom B On Tuesday, May 29, 2012 7:30:22 AM UTC-4, Mark Murphy (a Commons Guy) wrote: On Tue, May 29, 2012 at 7:16 AM, Thomas tbirchm...@usa.net wrote: Although the documentation has lots about using an app to launch an app via an intent, what seems to be left out is that the launched app must have a type of permission to be launched category android:name=android.intent.category.DEFAULT / That is not a permission. That is a category. An Intent used with startActivity() automatically gets the DEFAULT category added to it (unlike startService(), sendBroadcast(), etc.). Hence, your intent-filter in your activity will need to have the DEFAULT category, along with any other categories you wish to support (e.g., BROWSABLE). As usual the use of capitals and not using capitals is completely arbitrary For your own action, perhaps. That is not true for any system-defined items, like your DEFAULT category. And, none of this has anything to do with the original question, which is how to *launch* an app, not how to create something that itself can be launched. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Lateral List (navigation)
How I implement it? On Tue, May 29, 2012 at 10:09 AM, Davyd Melo davydm...@gmail.com wrote: Zsolt, this is correct!!! When the user clicks on the icon of the ActionBar the list slides out. On Tue, May 29, 2012 at 4:03 AM, Zsolt Vasvari zvasv...@gmail.com wrote: I think he means the partially visible page that can be dragged in like in the Google+ app. On Tuesday, May 29, 2012 7:08:32 AM UTC+8, TreKing wrote: On Mon, May 28, 2012 at 9:31 AM, Davyd Melo davydm...@gmail.com wrote: What library/class can I use? Try the Android SDK / ListView. Also try reading the documentation for two seconds - there are tons of examples of the main view types, this being one of them. --**--** --**--- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Davyd Bandeira de Melo - Instituto Atlântico Firmware Trainee Oracle Certified Java Programmer 6.0 Linux User #526110 Email Pessoal: davydm...@gmail.com Atlante Mail: davyd_m...@atlantico.com.br Messenger: davyd...@hotmail.com Skype: davydmelo -- Davyd Bandeira de Melo - Instituto Atlântico Firmware Trainee Oracle Certified Java Programmer 6.0 Linux User #526110 Email Pessoal: davydm...@gmail.com Atlante Mail: davyd_m...@atlantico.com.br Messenger: davyd...@hotmail.com Skype: davydmelo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Photo not saving to SD card.
Sorry Mark , I cant understand , what you try to explain. On Tue, May 29, 2012 at 3:46 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, May 29, 2012 at 4:57 AM, Mark markmch...@gmail.com wrote: I am using Android 4.03 on a Samsung Galaxy Nexus. The logs are showing that the file has been written to the phone memory, however when I check in windows explorer or using the phones gallery I cannot see the image that I have just taken a photo of. It's there but isn't indexed: http://commonsware.com/blog/2011/08/31/mtp-external-storage.html Also, never hardwire /sdcard. Always use Environment.getExternalStorageDirectory() (or, for photos, better yet, Environment.getExternalPublicFilesDirectory()). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *With warm regards,* ** *M.G.Manikandan* *9543972414* *mgmanikanda...@gmail.com* mgmanikanda...@gmail.com* * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 11:41 AM, Latimerius l4t1m3r...@googlemail.com wrote: Fair enough - thanks anyway. I'll try to verify my results in the meantime. I have a fairly minimal test setup with pkgB which is just a file in assets/ and pkgA which has just enough code get pkgB's Context on startup, listen to broadcasts and try to read pkgB's asset file on demand. It does seem to work the way I mentioned before. If pkgA is running at the moment pkgB gets uninstalled it can access pkgB's assets file long after pkgB has been uninstalled, its icon removed from the launcher etc. If anyone's interested please let me know, I can send you the test (it's Ant-based). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] all phones have any android version if do this @ firmwares of android version
What? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 28, 2012 at 5:12 AM, totixp2010 totixp2...@gmail.com wrote: all android version install on phone storage and almost phones have little storage so all won't to update next version of android. the solution is all android version install on sd card and all know minimum sd card used is 8 gb and maximum sd card used is 32 gb so is very easy any mobile have any version of android and all apps will installed in system files in sd card. google and companies work now with any size of android and this make android expanded feature to all people in all world. google make apps to take space of internal storage to be as ram or apps to take some space of sd card to be as ram more of phones to make phones speed. i wish to develop android to satisfy all people thnx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cross App callback mechanism
Thanks Imran, It helps, but there are still conflicts in case you use REST service, for example, you can accomplish different requests with the same url (depending on what you send in entity) but well I think the original problem is mitigated. Now it's up to each app to use the information in their way. Thanks to all, Oleksandr On Tuesday, 29 May 2012 13:37:58 UTC+1, imran ali wrote: Hi, I don't know which request generated that response. while to BroadCast you must have been passing intent, so put your url in that intent using putExtra(Key,your url); on BroadCastReceiver, you will have onReceive( Context c, Intent intent); so extract that from intent, like intent.getString(Key); In that way you can identify the response of particular request. hope will help you. Regards Imran Ali On Tuesday, May 29, 2012 5:29:38 PM UTC+5:30, Oleksandr Kruk wrote: Thanks Kristopher, Actually that's exactly what I have, an API which provides the developer with access to all necessary data structure and manipulation. I made a draft just to explain better whats the problem: https://lh3.googleusercontent.com/-_NG1V3-5Rck/T8S4hnlIxWI/AD4/kGPgsRqkBxE/s1600/requestExec.png The number 1 is a broadcast receiver that reacts on an action of request execution by Queue Manager service. The problem is that in the receiver (1) I have no way to know what I am supposed to do with that response, because I don't know which request generated that response. I guess I must pass some context information from Some App to Queue Manager App and then back after executing. It can be a name of method to execute or something like that. On Tuesday, 29 May 2012 10:31:01 UTC+1, Kristopher Micinski wrote: It sounds like what you want is basically a message queue.. However, for a cross app solution, I think you'd want something that stores the data persistently somewhere, such as on disk. I'd probably make an API backed by a service that apps would interface to implementing this, if I were you... kris On Tue, May 29, 2012 at 5:06 AM, Oleksandr Kruk sanha1...@gmail.com wrote: Thanks for your answer TreKing! I am sorry, that was an unclear expression, by apps offline I meant they are not running. Exactly, you understood well, but I think I failed to explain that the time frame between storing requests and executing them can be anything like an hour, a day, a month, etc.. So in this context, when an application receives a response, lets say through a broadcast intent it wont know for which request that response was received. Thats why having a callback method associated to request would be better than simply an intent with the result. Imagine a situation: You are in a remote area with no network, you take a landscape photo, open facebook app and simply post that photo (without network). This post would remain in my framework until you have network, which is indefinite time. Now, at the moment you connect to network, lets say two days, it will be posted on facebook (by ManagerApp) and facebook app will get a response from ManagerApp. If you send that response as a broadcast to facebook app, how it is supposed to know that that response is related to that specific photo post you made days ago. Remember that I don't want to make developers to maintain mappings between their app requests and future response in order to solve this situation, all the information must be on the side of the framework (it's cleaner I guess). Thanks again On Tuesday, 29 May 2012 09:16:50 UTC+1, TreKing wrote: On Mon, May 28, 2012 at 10:55 AM, Oleksandr Kruk sanha1...@gmail.com wrote: How can this IntentService update each App information using their business logic when the Apps are offline? What do you mean when the apps are offline? If I understand you correctly, you would simply have to launch an intent or trigger a broadcast from your IntentService that has the information the other apps care about. The other apps would have to know the details of the intent or broadcast structure in order to properly listen for it. The intent would contain the data the app in question was requesting, in some known format. You would not have to know anything about their business logic, that would be up to them. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this
Re: [android-developers] Android DNS failover not robust
Did your DNS respond that the host was unknown? If we get an authoritative answer that the host is unknown we may well not go further. I think the purpose of the failover is not to handle lying dns servers, but to handle down/unavailable dns servers. I will enter a bug about this, but if you have more info on the way your dns server was broken it may help. Thanks Robert On Fri, May 25, 2012 at 1:32 PM, Heath Naylor heathnay...@gmail.com wrote: I had a situation where the DNS server we had was resolving internal routing, but nothing external. This meant that I could get to internal dns like (internal.mycompany.com) but not cnn.com. The secondary DNS that was listed would have worked just fine but Android never tried to use it. All Windows, Linux, and iOS devices failed over gracefully but not Android. Is there a plan to fix this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Ball Racing
There's some API Demos close to what you're try do. Take a look at AnimateDrawables or FingerPaint for example... On May 28, 1:34 pm, Jagadeesh mjagadeeshb...@gmail.com wrote: Hi iam making game application ,i have designed gameplate with background and grid with canvas and paint . i need insert one ball with screen keepon coming from top of the screen how to implement ,i was trying insert image but background domainating can any one help this. here my code: package com.ibr; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.os.Bundle; import android.view.Display; import android.view.KeyEvent; import android.view.View; public class BallRacing extends Activity { DemoView demoview; int width = 0; int height = 0; int pass = 0; int xpos = 0; int ypos = 0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); demoview = new DemoView(this); setContentView(demoview); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { return super.onKeyDown(keyCode, event); } private class DemoView extends View { public DemoView(Context context) { super(context); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); // custom drawing code here // remember: y increases from top to bottom // x increases from left to right Paint paint = new Paint(); paint.setStyle(Paint.Style.FILL); // make the entire canvas white paint.setColor(Color.TRANSPARENT); canvas.drawPaint(paint); Display display = getWindowManager().getDefaultDisplay(); width = display.getWidth();//start height = display.getHeight();//end xpos = width / 7; ypos = height/7; for (int i = 0; i 7; i++) { paint.setColor(Color.WHITE); canvas.drawLine(xpos +(xpos*i), 0, xpos +(xpos*i), height, paint); //canvas.drawLine(startX, startY, stopX, stopY, paint) } paint.setStyle(Style.STROKE); for (int i = 0; i 15; i++) { paint.setColor(Color.WHITE); canvas.drawLine(0, (ypos*pass)+ 5, width, (ypos*pass)+5, paint); pass++; } } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] networkutils not there in android.net
There is not a good way to find this info. It was not thought important for app development. In ICS there are hidden methods that give this info, but they are not public and may change. A future version of android should make them public. R On Fri, May 25, 2012 at 3:24 AM, loka sudharsan lokasudharsa...@gmail.comwrote: Hi, I just started learning apk and wanted to do an app for android. In my app, i want the dns server, ip address, and default gateway. But as i searched, i find in many places to use the networkutils.rundhcp() But, there is no networkutils in my sdk. Can u please tell me, how to add the networkutils.java file and from where? Is there any other way to find the dns server address etc ? Thanks and regards Sud -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
The assets of package B are probably open and memory mapped by package A's process. (actually, it's more likely that the .apk file is open, and the part that contains assets and resources is memory mapped). If so, the behavior is not surprising. -- K 2012/5/29 Latimerius l4t1m3r...@googlemail.com On Tue, May 29, 2012 at 11:41 AM, Latimerius l4t1m3r...@googlemail.com wrote: Fair enough - thanks anyway. I'll try to verify my results in the meantime. I have a fairly minimal test setup with pkgB which is just a file in assets/ and pkgA which has just enough code get pkgB's Context on startup, listen to broadcasts and try to read pkgB's asset file on demand. It does seem to work the way I mentioned before. If pkgA is running at the moment pkgB gets uninstalled it can access pkgB's assets file long after pkgB has been uninstalled, its icon removed from the launcher etc. If anyone's interested please let me know, I can send you the test (it's Ant-based). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Hardware accelerated Canvas.drawPicture support (or recommended alternatives)
One alternative would be to use OpenGL in 2D. There are a lot more examples out there of what you're trying to do, plus it could potentially run on other platforms... On May 27, 12:51 am, Josh Guilfoyle jast...@gmail.com wrote: I am hoping to use the svg-android project to implement a dynamic SVG viewer for files with fairly large amounts of detail. My initial smoke tests are promising as the SVG files I am using are rendered correctly however performance is poor without any sophisticated drawing optimizations. I believe this is due to the usage of Canvas.drawPicture (svg-android translates the SVG document structure into a single Picture), preventing hardware acceleration on supporting devices and possibly being implemented without efficient trimming of areas outside the clip bounds. Before I begin significant or fundamental optimization however, I'd like to confirm a few things about Android's rendering pipeline (both recent and older versions). Hopefully this will allow me to utilize existing research already conducted by the Android team or other community developers. Specifically: 1. What performance gotchas may exist with simply constructing my own macro notion of a Picture and replaying the raw Canvas operations on draw? That is, define a very simple op-code interpreted language in which I can represent a Picture and simply execute it on draw myself much like how I assume Picture is natively implemented. Will this alone be sufficient to permit hardware acceleration? I'm assuming no given that Android developers would have implemented drawPicture on the hardware accelerated path if it were this simple, but I'd like to understand why and if there may be anything I can do to mitigate the issues in my specific case. 2. I believe an asynchronous tiling bitmap layer may be an appropriate solution where sections of the SVG are dynamically rendered to off- screen bitmaps and blitted on screen. A separate renderer thread would be used to manage writing to a cache of off-screen bitmaps. Can hardware acceleration help in some way with this off-screen rendering or would it merely kick in with improved performance when blitting those tiles to screen? If no, I may be able to avoid the issues with #1 entirely since hardware acceleration wasn't going to speed up the off-screen rendering anyway. 3. What is the runtime nature of attempting to draw paths and primitives (lines, rects, etc) that are entirely outside the canvas' clipped bounds? Is it necessary or appropriate for me to call Canvas.quickReject myself or can I rely on this rejection happening at a lower level automatically? Can I expect that it behaves consistently when drawing a Picture versus drawing a Path? This is especially important if I implement a tiling renderer as per #2 where a large number of draw requests will be made for the full graphic to render into discrete sections. If Canvas cannot reasonably minimize cycles for this case I will likely need to implement my own culling optimizations. If anyone has other suggestions for things I didn't consider please feel free to let me know. I'm hoping to drive toward an elegant and efficient solution that works optimally on newer hardware but with acceptable performance on other devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: starting avd fails, saying it can't find emulator, but it exists
I recall this happening because something failed when installing the Eclipse plugins. The only way could resolve that was to install an older version of Eclipse and always run it from the terminal (so Ubuntu would not load the newer broken one)... On May 25, 8:35 pm, David Karr davidmichaelk...@gmail.com wrote: 0 down vote favorite share [g+] share [fb] share [tw] I've installed the SDK on Ubuntu 12.0.4. I started up the SDK manager and updated several packages. I ran the avd manager and tried to create an avd, but it just failed with no information. I then tried to create the avd from the command line, using the same information I tried to use from the gui, and it worked. When I tried to start that AVD, it failed with (some strings elided): Failed to start emulator: Cannot run program myhome/apps/android/ android-sdk-linux/tools/emulator: java.io.IOException: error=2, No such file or directory This is what I see when I look for this file: $ ls -lt myhome/apps/android/android-sdk-linux/tools/emulator -rwxrwxr-x 1 me me 24828 May 25 08:20 myhome/apps/android/ android-sdk-linux/tools/emulator* As you can see, the path it's looking for DOES exist. What's going on here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Z-fighting in OpenGLES only?
I'm getting z-fighting polys on every Android device I test, but the same code has been working on ancient OpenGl platforms. The depth seems to behave as if it even less than 16, even with polys a magnitude apart than ususal. Is this another something specific to OpenGLES implementations? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: noob developer, application keeps restarting
Is it safe to assume the new activity will have priorty over the previous activity that is no longer accessible? Will there not a potentially corrupted zombie-process still lurking as the app continues on its merry way? Is it not more likely an exit() of some kind would allow the system to clean-up unforeseen effects of the corruption than the chance that the system would bringing any back from the dead the next time the app starts up? On May 28, 3:11 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, May 28, 2012 at 4:56 PM, Yan yinor...@gmail.com wrote: Thanks for the idea to pull out the battery notification! You guessed right about the category of people treating Android like Linux. Which begs the question of what system call would you use if your app's data got corrupted and the final() call could not handle it. Would you consider it permissible to kill your own process? No. In the beginning, the device does not have your app. Then, the user installs your app. Then, the user runs your app for the first time. At this moment, your app has no data on persistent storage (e.g., databases). Hence, your app needs to handle the first-run scenario where your app has no data on persistent storage -- otherwise, your app can never run successfully, and this is all a moot point. Similarly, at this moment, your app has no data in memory (e.g., static data members). Hence, your app needs to handle the first-run scenario where your app has no data in memory -- otherwise, your app can never run successfully, and this is all a moot point. If, during the operation of your app, you determine that your data is irreversibly corrupted, you wipe the data in persistent storage, null out the static data members, and start over, along with launching an activity with FLAG_ACTIVITY_CLEAR_TOP + FLAG_ACTIVITY_SINGLE_TOP to let the user know that you had to wipe out their data. You do not need to terminate your process to achieve any of this. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: noob developer, application keeps restarting
On Tue, May 29, 2012 at 10:53 AM, Yan yinor...@gmail.com wrote: Is it safe to assume the new activity will have priorty over the previous activity that is no longer accessible? Since I have no idea what you are talking about, I certainly cannot assume that. Will there not a potentially corrupted zombie-process still lurking as the app continues on its merry way? Only if you are a lousy developer. Is it not more likely an exit() of some kind would allow the system to clean-up unforeseen effects of the corruption than the chance that the system would bringing any back from the dead the next time the app starts up? By definition, to use exit() properly, you have to detect the conditions where exit() is needed. And, if you can detect when exit() is needed, then you do not need to call exit() -- you can reset your app to a well-known good state. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get Connections of Linkedin profile in android
Hi all I am trying to get the Connections or user's friends info from LinkedIn using LinkedIn jar and example in google code google code, but i wont get Connections using linkedInApiClient.getConnectionsForCurrentUser() this method call it returns null, but i can access user current profile info using linkedInApiClient.getProfileForCurrentUser() can any body suggest me how to get User connections information in linkedIn in android. Or guide me the the wright way. Thanks in Advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: starting avd fails, saying it can't find emulator, but it exists
I figured this out. I didn't follow the installation instructions properly. I'm on 64-bit Ubuntu, and the 32-bit SDK can't be used out of the box. I had to install the 32-bit compatibility package (something like ia32), and that fixed the problem. On Friday, May 25, 2012 7:35:55 PM UTC-7, David Karr wrote: 0 down vote favorite share [g+] share [fb] share [tw] I've installed the SDK on Ubuntu 12.0.4. I started up the SDK manager and updated several packages. I ran the avd manager and tried to create an avd, but it just failed with no information. I then tried to create the avd from the command line, using the same information I tried to use from the gui, and it worked. When I tried to start that AVD, it failed with (some strings elided): Failed to start emulator: Cannot run program myhome/apps/android/ android-sdk-linux/tools/emulator: java.io.IOException: error=2, No such file or directory This is what I see when I look for this file: $ ls -lt myhome/apps/android/android-sdk-linux/tools/emulator -rwxrwxr-x 1 me me 24828 May 25 08:20 myhome/apps/android/ android-sdk-linux/tools/emulator* As you can see, the path it's looking for DOES exist. What's going on here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get Connections of Linkedin profile in android
Ask on a LinkedIn forum... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 29, 2012 at 9:13 AM, Anieeh animesh.andr...@gmail.com wrote: Hi all I am trying to get the Connections or user's friends info from LinkedIn using LinkedIn jar and example in google code google code, but i wont get Connections using linkedInApiClient.getConnectionsForCurrentUser() this method call it returns null, but i can access user current profile info using linkedInApiClient.getProfileForCurrentUser() can any body suggest me how to get User connections information in linkedIn in android. Or guide me the the wright way. Thanks in Advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Z-fighting in OpenGLES only?
Are you sure you are getting a 16bit z-buffer? What values of near and far are you using? On Tuesday, May 29, 2012 3:51:18 PM UTC+1, Yan wrote: I'm getting z-fighting polys on every Android device I test, but the same code has been working on ancient OpenGl platforms. The depth seems to behave as if it even less than 16, even with polys a magnitude apart than ususal. Is this another something specific to OpenGLES implementations? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 4:37 PM, Kostya Vasilyev kmans...@gmail.com wrote: The assets of package B are probably open and memory mapped by package A's process. I don't know...I thought of this but I wasn't able to confirm it. A can access files after B's uninstallation that were never read or even opened before B's uninstallation. Unlike the test, in the actual app where I bumped into this, B is an APK of almost a megabyte, I mean it's not small, and still A was able to read in files (tens or hundreds kB in size) after uninstallation that had never been accessed before uninstallation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On 29 May 2012 17:19, Latimerius l4t1m3r...@googlemail.com wrote: On Tue, May 29, 2012 at 4:37 PM, Kostya Vasilyev kmans...@gmail.com wrote: The assets of package B are probably open and memory mapped by package A's process. I don't know...I thought of this but I wasn't able to confirm it. A can access files after B's uninstallation that were never read or even opened before B's uninstallation. Unlike the test, in the actual app where I bumped into this, B is an APK of almost a megabyte, I mean it's not small, and still A was able to read in files (tens or hundreds kB in size) after uninstallation that had never been accessed before uninstallation. Weren't these files A's assets? If so, the were in A's .apk file, so even you uninstall or remove (rm) that file, filesystem still got it unless all handles refering to it are closed. That's how linux fs works. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/*, *Google+*http://bit.ly/webnetmobile-gpand *Twitter http://webnetmobile.com/twitter/* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 11:19 AM, Latimerius l4t1m3r...@googlemail.com wrote: I don't know...I thought of this but I wasn't able to confirm it. A can access files after B's uninstallation that were never read or even opened before B's uninstallation. Unlike the test, in the actual app where I bumped into this, B is an APK of almost a megabyte, I mean it's not small, and still A was able to read in files (tens or hundreds kB in size) after uninstallation that had never been accessed before uninstallation. Did you acquire the package context before or after the uninstall? If before, it's eminently possible that Android is indeed keeping a record of processes holding package contexts and is only deleting the data once those processes have terminated. It is also possible that it's simply a question of time, that the package data is not deleted immediately upon uninstall but some moments later, and that requests from a package context will succeed in the interim. If you acquired the package context *after* the uninstall... please contact me off-list. -- 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 Android Development_ Version 3.7 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 5:24 PM, Marcin Orlowski webnet.andr...@gmail.com wrote: Weren't these files A's assets? If so, the were in A's .apk file, so even you uninstall or remove (rm) that file, filesystem still got it unless all handles refering to it are closed. That's how linux fs works. Nope, that's what makes it interesting. The were B's assets. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 5:25 PM, Mark Murphy mmur...@commonsware.com wrote: On Tue, May 29, 2012 at 11:19 AM, Latimerius l4t1m3r...@googlemail.com wrote: I don't know...I thought of this but I wasn't able to confirm it. A can access files after B's uninstallation that were never read or even opened before B's uninstallation. Unlike the test, in the actual app where I bumped into this, B is an APK of almost a megabyte, I mean it's not small, and still A was able to read in files (tens or hundreds kB in size) after uninstallation that had never been accessed before uninstallation. Did you acquire the package context before or after the uninstall? If before, it's eminently possible that Android is indeed keeping a record of processes holding package contexts and is only deleting the data once those processes have terminated. It is also possible that it's simply a question of time, that the package data is not deleted immediately upon uninstall but some moments later, and that requests from a package context will succeed in the interim. If you acquired the package context *after* the uninstall... please contact me off-list. I acquire the package context before the uninstall. Attempts to acquire it after the uninstall fail as they should. If the file removal is deferred upon uninstall it's probably not just for a few moments, in my tests A was still able to access the uninstalled B's assets after an hour or two. Well, from the replies in this thread it appears that the behaviour is not documented and it wouldn't be such a great idea to rely on it... shame, it would have made a bunch of things easier for me. :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can I have a service run as a seperate process?
The motivation for this was (perhaps erroneously) the idea that sometimes the users would see one process being heavy on battery, want to kill it, and then still be left with the other app, because presumably the app does two disparate things that aren't really logically related. However, that seems obviously contrived to me.. kris On Tue, May 29, 2012 at 7:32 AM, Mark Murphy mmur...@commonsware.com wrote: On Tue, May 29, 2012 at 7:29 AM, Put_tiMe putt...@gmail.com wrote: i.e. I don't want to do IPC. Then get rid of your second process, and run your entire app as one process. Your users will thank you for not wasting their RAM and battery by having a second process that you do not really need. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 11:39 AM, Latimerius l4t1m3r...@googlemail.com wrote: Well, from the replies in this thread it appears that the behaviour is not documented and it wouldn't be such a great idea to rely on it... Agreed. shame, it would have made a bunch of things easier for me. :-) Aw, c'mon now. If things were easy, they wouldn't be paying you the big bucks to write the code! :-) -- 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 Android Development_ Version 3.7 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] what if package is uninstalled while another package holds its Context?
2012/5/29 Mark Murphy mmur...@commonsware.com On Tue, May 29, 2012 at 11:19 AM, Latimerius l4t1m3r...@googlemail.com wrote: I don't know...I thought of this but I wasn't able to confirm it. A can access files after B's uninstallation that were never read or even opened before B's uninstallation. Unlike the test, in the actual app where I bumped into this, B is an APK of almost a megabyte, I mean it's not small, and still A was able to read in files (tens or hundreds kB in size) after uninstallation that had never been accessed before uninstallation. Did you acquire the package context before or after the uninstall? If before, it's eminently possible that Android is indeed keeping a record of processes holding package contexts and is only deleting the data once those processes have terminated. It's possible that there is reference counting somewhere inside Context... ... but also keep in mind that Linux (and other Unixes, AFAIK) allows for currently open files to be deleted, deferring the deallocation of actual backing bits in the file system until all references have been closed. -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Difference btwn following methods
Well, since this is framework code, looking at the bytecode generated for these pieces of code won't really help you much, there will be little difference, and the way the JIT works for it will basically make any perceived difference superficial anyway. kris On Mon, May 28, 2012 at 12:11 PM, G. Blake Meike blake.me...@gmail.com wrote: If you have a concern, you probably ought to look at the bytecodes. Honestly, I can't imagine what kind of concern there might be at this level but, if you have one, that's the way to resolve it. I mean, this isn't J2ME or anything... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Sunday, May 27, 2012 10:45:27 PM UTC-7, Jovish P wrote: I just want to know any difference is there in the following methods like memory allocation , performance issues TextView txtView = (TextView)findViewById(R.id. username); txtView.setText(Method 1); ((TextView) findViewById(R.id.priority_rel_layout)).setText(priorityList[i]); Regards, Jovish On Sunday, May 27, 2012 10:45:27 PM UTC-7, Jovish P wrote: I just want to know any difference is there in the following methods like memory allocation , performance issues TextView txtView = (TextView)findViewById(R.id. username); txtView.setText(Method 1); ((TextView) findViewById(R.id.priority_rel_layout)).setText(priorityList[i]); Regards, Jovish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Difference btwn following methods
I should clarify, since the thing that would potentially make these things differ in perf is framework code, not this code. If interested you can read the framework code. In this specific case, it seems you're (the OP) *not* interested in methods, but some other things like array indexing, etc... I would say that because of everything I just mentioned the difference between those two code sequences should be basically negligible kris On Tue, May 29, 2012 at 11:54 AM, Kristopher Micinski krismicin...@gmail.com wrote: Well, since this is framework code, looking at the bytecode generated for these pieces of code won't really help you much, there will be little difference, and the way the JIT works for it will basically make any perceived difference superficial anyway. kris On Mon, May 28, 2012 at 12:11 PM, G. Blake Meike blake.me...@gmail.com wrote: If you have a concern, you probably ought to look at the bytecodes. Honestly, I can't imagine what kind of concern there might be at this level but, if you have one, that's the way to resolve it. I mean, this isn't J2ME or anything... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Sunday, May 27, 2012 10:45:27 PM UTC-7, Jovish P wrote: I just want to know any difference is there in the following methods like memory allocation , performance issues TextView txtView = (TextView)findViewById(R.id. username); txtView.setText(Method 1); ((TextView) findViewById(R.id.priority_rel_layout)).setText(priorityList[i]); Regards, Jovish On Sunday, May 27, 2012 10:45:27 PM UTC-7, Jovish P wrote: I just want to know any difference is there in the following methods like memory allocation , performance issues TextView txtView = (TextView)findViewById(R.id. username); txtView.setText(Method 1); ((TextView) findViewById(R.id.priority_rel_layout)).setText(priorityList[i]); Regards, Jovish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what if package is uninstalled while another package holds its Context?
On Tue, May 29, 2012 at 5:54 PM, Kostya Vasilyev kmans...@gmail.com wrote: ... but also keep in mind that Linux (and other Unixes, AFAIK) allows for currently open files to be deleted, deferring the deallocation of actual backing bits in the file system until all references have been closed. Yeah, I know, a standard idiom using temporary files actually relies on this, I was just pondering how come someone has (tens of) my asset files open that I myself haven't touched. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Difference btwn following methods
Thanks for the detailed clarification Kristopher Micinski . I will take a look into the framework code.. Just to understand the difference only I asked this question. Regards , Jovish On Tue, May 29, 2012 at 9:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: I should clarify, since the thing that would potentially make these things differ in perf is framework code, not this code. If interested you can read the framework code. In this specific case, it seems you're (the OP) *not* interested in methods, but some other things like array indexing, etc... I would say that because of everything I just mentioned the difference between those two code sequences should be basically negligible kris On Tue, May 29, 2012 at 11:54 AM, Kristopher Micinski krismicin...@gmail.com wrote: Well, since this is framework code, looking at the bytecode generated for these pieces of code won't really help you much, there will be little difference, and the way the JIT works for it will basically make any perceived difference superficial anyway. kris On Mon, May 28, 2012 at 12:11 PM, G. Blake Meike blake.me...@gmail.com wrote: If you have a concern, you probably ought to look at the bytecodes. Honestly, I can't imagine what kind of concern there might be at this level but, if you have one, that's the way to resolve it. I mean, this isn't J2ME or anything... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Sunday, May 27, 2012 10:45:27 PM UTC-7, Jovish P wrote: I just want to know any difference is there in the following methods like memory allocation , performance issues TextView txtView = (TextView)findViewById(R.id. username); txtView.setText(Method 1); ((TextView) findViewById(R.id.priority_rel_layout)).setText(priorityList[i]); Regards, Jovish On Sunday, May 27, 2012 10:45:27 PM UTC-7, Jovish P wrote: I just want to know any difference is there in the following methods like memory allocation , performance issues TextView txtView = (TextView)findViewById(R.id. username); txtView.setText(Method 1); ((TextView) findViewById(R.id.priority_rel_layout)).setText(priorityList[i]); Regards, Jovish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to root android phone
Hi All, How to root android phone by programmatically , Kindly guide me. with regards, M.G.Manikandan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en