Re: [android-developers] Sharing data between Android framework and app
Thanks Kristopher, I fully understand the kludgeyness of this implementation, and you're absolutely right, this is a quick dirty hack. The actual implementation will not be done in this way, but rather in a more secure location. However, that portion is currently not being done by myself, so in the mean time I'm trying to whip some sort of a framework up to continue development and testing, and then port the final implementation over once that is ready. It does not need to be secure or elegant - it just needs to work for now, like a duct tape, which is why I'm even contemplating writing to a file on the sdcard (which is totally insecure and not a good idea for a final implementation). :) In any case, I appreciate your continued patience in addressing my somewhat esoteric problems. On Tuesday, August 14, 2012 11:28:19 AM UTC+8, Kristopher Micinski wrote: Well, this isn't really the appropriate place to answer system hacking related questions, but basically, you're not running in the context of that package, you're running somewhere else, so you're not storing in that shared preferences. But beyond that, this is just a horrible design, you're using a shared preferences and then: you encode the component statically, leading to a really kludgey hack depending on your system component, you allow the string to be read by *anyone*, not just your app, which it probably should be, and in reality sharing data to an app should probably be shared by using a new system server and then interfaced with via an AIDL component or something of the like, like *every other* system process, that is the standard way. You might be upset, because perhaps this is just a quick hack, but then, that type of question doesn't belong on android-developers, and this is what I think is the right way to do it :-). You can see tons of other examples of this kind of thing: inside any *Manager, for example, providing this interface. kris On Mon, Aug 13, 2012 at 10:57 PM, galapogos goi...@gmail.comjavascript: wrote: Thanks, I didn't know of the android-platform group, I've posted my question there. Meanwhile, do you have any idea why I would encounter the above-mentioned problems with SharedPreferences? I've also tried simply creating a file in /mnt/sdcard in the framework with the intention of the app reading it later, but I was thrown a permission denied error. I was under the impression that accessing the external sdcard required no special permissions, but if permissions are necessary, I'm not even sure where to specify it since I can't seem to find the AndroidManifest.xml of this particular framework component. Thanks again. On Monday, August 13, 2012 10:31:47 PM UTC+8, Kristopher Micinski wrote: This group is solely for SDK related applications. There is a list of groups on the website indicating which might be good for this, android-platform, and android-porting, perhaps? I'm a little weary of sticking this in shared preferences for this, but I guess there's nothing inherently horrible about that.. kris On Mon, Aug 13, 2012 at 5:28 AM, galapogos goi...@gmail.com wrote: Where would it belong then? Yes I'm trying to share some data between the framework and the launcher app, and I'm trying to accomplish this via SharedPreferences. The framework will set a variable during user authentication, which will then be read later on by the launcher. I'm having some problems doing this as I get a NameNotFoundException exception in my try-catch block. On Monday, August 13, 2012 4:01:59 PM UTC+8, Kristopher Micinski wrote: FYI this *definitely* does not belong on android-developers. Additionally, it's sort of unclear what you're asking. You're asking about the sharing of the shared preferences, correct?... If you're modifying the system and can't figure, that generally doesn't bode well.. What are you actually trying to do? Something with authentication? kris On Mon, Aug 13, 2012 at 2:59 AM, Sihan Goi goi...@gmail.com wrote: Hi, Is it possible to share data between the Android framework and an app? I'm modifying the Android framework login component so that a variable will be saved upon login, and then later retrieved by another app. I'm trying to use SharedPreferences, and my code looks like this: In com.android.internal.policy.impl.PasswordUnlockScreen.java, I have the following code to write to the SharedPreferences. SharedPreferences prefs = getContext().getSharedPreferences(mypref, Context.MODE_WORLD_READABLE); SharedPreferences.Editor editor = prefs.edit(); editor.putString(mypref, my data editor.commit(); In my other app, I have the following code to read from it.
Re: [android-developers] How to remove black topbar on activity animation?
I assume you mean the part of your window that is normally behind the status bar? If so, there is no simple way to do this. Aside from just making your app fullscreen so there is no status bar (and thus your content draws all the way to the top), you'd need to do an approach like playing games where you make your window translucent, set it to not have a background, and make sure that tap part of your window is transparent when it is drawn. Note that in 3.1 the platform know does some tricks to prevent that top part of the window from being drawn when it determines it is obscured by the status bar prior to any transformation applied by an animation etc. On Sat, Aug 11, 2012 at 2:20 PM, user123 ivanschu...@gmail.com wrote: I defined a scale animation from 0 to 1 for entering activity: overridePendingTransition(R.anim.scale, 0); In application tag in Manifest: android:theme=@android:style/Theme.NoTitleBar But I get a black topbar on the entering activity, while it scales... looks very ugly since the activity doesn't have this topbar. How do I hide it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Arrow keys on custom keyboard
That sample code is interpreting these as Unicode characters which it applies as edit operations on the text. You will need to modify the code to do the appropriate calls to move the cursor. On Mon, Aug 13, 2012 at 5:59 AM, yakobom yako...@gmail.com wrote: Hi, I've been trying to add arrow keys to the SoftKeyboard example from the SDK, without success: Added this to the keyboard xml (qwerty.xml): Row android:rowEdgeFlags=bottom Key android:codes=21 android:keyLabel=lt; android:isRepeatable=true android:keyWidth=5%p android:keyEdgeFlags=left/ Key android:codes=22 android:keyLabel=gt; android:isRepeatable=true android:keyWidth=5%p/ Key android:codes=20 android:keyLabel=\\/ android:isRepeatable=true android:keyWidth=5%p/ Key android:codes=19 android:keyLabel=/\\ android:isRepeatable=true android:keyWidth=5%p android:keyEdgeFlags=right/ /Row I get the extra keys, but when I click them I get squares. Can anyone tell why? I googled for it but could not find any answer, this seem to be correct - but does not work. Thanks, yakobom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to initialize MediaRecorder in the background?
Dear Robert, have you found solution for this issue? I have the same problem now... четверг, 6 августа 2009 г., 17:22:24 UTC+3 пользователь Robert написал: I tried various things to overcome the limitation of setPreviewDisplay (): - preserved the surface (sf), so mSurfaceHolder.getSurface() was not called again. Worked fine while the surface was visible, but once it was destroyed, sf.isValid() returned false, and prepare() failed again - tried to use the other 3 types of SURFACE_TYPE_*. Preview was not working, but video was being captured, until it needed to be initialized again, when prepare() failed - with these other 3 types of surface, I tried mSurfaceHolder.lockCanvas(), sf.lockCanvas(dirtyrect) and sf.freeze() in an attempt to keep the surface being destroyed Nothing has worked as expected :( Is there a way to keep a valid surface when the view is pushed to the background? Or, make setPreviewDisplay() accept a dummy surface? Thanks, Robert On Aug 5, 1:10 pm, Robert ferob...@gmail.com wrote: Hello all, I am building a camera app, where photos and videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMaxDuration(). When MediaRecorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED is reached, the video is saved, and a new sequence is initialized with something like: mMediaRecorder = new MediaRecorder(); mMediaRecorder.setVideoSource (MediaRecorder.VideoSource.CAMERA); mMediaRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); mMediaRecorder.setVideoFrameRate(20); mMediaRecorder.setVideoSize(176, 144); mMediaRecorder.setVideoEncoder (MediaRecorder.VideoEncoder.H263); mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); mMediaRecorder.setMaxDuration(1000 * Integer.valueOf (videoLength)); mMediaRecorder.setOnInfoListener(videoInfoListener); mMediaRecorder.setOutputFile(/sdcard/test.3gp); mMediaRecorder.prepare(); mMediaRecorder.start(); I also have a SurfaceHolder mSurfaceHolder, set up like: mPreview = (SurfaceView) findViewById(R.id.preview); mSurfaceHolder = mPreview.getHolder(); mSurfaceHolder.addCallback(this); mSurfaceHolder.setType (SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); public void surfaceCreated(SurfaceHolder holder) { mSurfaceHolder = holder; } public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { } public void surfaceDestroyed(SurfaceHolder holder) { mSurfaceHolder = null; } The whole process works fine, while the main activity is in the foreground. But, when I go to another activity (e.g. settings), the video recording works in the background only until max duration is reached. The file is saved, but a new sequence can not be started because prepare() fails. setPreviewDisplay() needs to be there, but it doesn't like not having a proper surface to attach to. I tried to use a dummy Surface, a dummy SurfaceHolder, or reuse the Camera with mMediaRecorder.setCamera(), but nothing works. Is there a way to initialize MediaRecorder in the background? Thanks and regards, Robert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Create 2 groups in expandable listview
Hi I have tried to develop expandable listview in android application.Now I have one doubts.How is creating 2 groups ion below my code for separate child details? For Eg: Group name: OrderInfo,CustomerInfo. Childname(OrderInfo):payment_method. Childname(CustomerInfo):name,email. How to do this?Please help me. this is my code: SimpleExpandableListAdapter expListAdapter = new SimpleExpandableListAdapter( this, createGroupList(), // Creating group List. R.layout.group_row, // Group item layout XML. new String[] { OrderInfo,CustomerInfo}, // the key of group item. new int[] { R.id.order,R.id.customer}, // ID of each group item.-Data under the key goes into this TextView. createChildList(), // childData describes second-level entries. R.layout.single_list_item, new String[] {KEY_ARTIST,KEY_DURATION,KEY_SUBTOTAL,KEY_DISCOUNT,KEY_COUPON,KEY_COST}, new int[] { R.id.payment_label,R.id.total_label,R.id.discount_label,R.id.discount_label,R.id.coupon_label,R.id.cost_label}// Keys in childData maps to display. ); setListAdapter( expListAdapter ); // setting the adapter in the list. }catch(Exception e){ System.out.println(E +++ + e.getMessage()); } } /* Creating the Hashmap for the row */ @SuppressWarnings(unchecked) private List createGroupList() { ArrayList result = new ArrayList(); for( int i = 0 ; i 1 ; ++i ) { // 15 groups HashMap m = new HashMap(); map.put( CustomerInfo,CustomerInfo); // the key and it's value. m.put( OrderInfo, OrderInfo); result.add( m); } return (List)result; } /* creatin the HashMap for the children */ @SuppressWarnings(unchecked) private List createChildList() { ArrayList result = new ArrayList(); for( int i = 0 ; i 1 ; ++i ) { // this -15 is the number of groups(Here it's fifteen) /* each group need each HashMap-Here for each group we have 3 subgroups */ ArrayList secList = new ArrayList(); for( int n = 0 ; n 1 ; n++ ) { HashMap child = new HashMap(); Intent in = getIntent(); String payment_method = in.getStringExtra(KEY_ARTIST); TextView lblPayment = (TextView) findViewById(R.id.payment_label); /// lblPayment.setText(payment_method); int payment; payment=1; String s= getIntent().getStringExtra(payment_method); String s1= getIntent().getStringExtra(total); String s2= getIntent().getStringExtra(subtotal); String s3= getIntent().getStringExtra(discount); String s4= getIntent().getStringExtra(coupon_discount); String s5= getIntent().getStringExtra(shipping_cost); child.put( KEY_ARTIST, s); child.put( KEY_DURATION, s1); child.put( KEY_SUBTOTAL, s2); child.put( KEY_DISCOUNT, s3); child.put( KEY_COUPON, s4); child.put( KEY_COST, s5); secList.add( child); } result.add( secList ); } return result; } Here my above code is not worked.So please help me I have to change what line. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to initialize MediaRecorder in the background?
I have the same problem now... Ditto, except a year ago. We know you have the answer. Spill the beans Robert :-) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SD card on Sony Tablet S
I know this is probably not the best place to ask, but I cannot think of a better one. The Sony Tablet S uses an external storage, which is actually internal. It's real SD card is on some other path. My app allows the user to configure their folders using a full path name. My user has done this giving it the full path to a folder on the SD card. My app does a sanity check on the folder to make sure it's ok -- one of the checks done is to call File.canWrite(). This fails on this folder and I display an error message. But, the user claims that using ES File Explorer, he can actually create/copy a file in this folder, but cannot delete it or rename it. Looking at the folder permissions, w is not set, so canWrite() returns the correct value according to the permission set on the folder. Can anyone have any ideas what's going on here? How can a file created in a folder, but then not be able to modify it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] My developer account has been canceled., Anybody knows the reason???
On 10/08/2012 11:58, julious raj wrote: Your Google Play Publisher account has been suspended due to prior violations of our terms of service by an associated account. It seems that your account is linked to another account that was suspended. - Fabien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabbed Menu with Gallery-like Menu in one of the tab
The problem is that you are doing network operations on the UI thread. Most probable your application is not targeting the latest android version, if you did android would have given you an error for this. You have to load the images from a thread and once they are downloaded you will add them in your image view. The solution is here: http://developer.android.com/training/displaying-bitmaps/index.html On Tuesday, August 14, 2012 6:50:23 AM UTC+3, Jeff Huang wrote: the problem should be coming from. public void setViewImage(ImageView v, String value) { super.setViewImage(v, value); try { v.setImageBitmap(BitmapFactory.decodeStream(new URL(value).openConnection().getInputStream())); } catch (Exception e) { e.printStackTrace(); } } but I can't seem to figure out why.. MagouyaWare於 2012年8月8日星期三UTC+8上午5時13分12秒寫道: No one is going to download your code and look at it. Figure out the relevant parts and paste them here and then you have a better chance of getting someone to help. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 6, 2012 at 9:23 AM, Jeff Huang jeff...@gmail.com wrote: First thing first I've attached all my code Design: Interface with 4 Tabs Under one of the tab contains a gallery like menu (fragment + gridview) gallery pictures are retrieve at runtime from the web. there is a correspond namelist to retrieve the pictures. Goal: Create application that retrieves most of the content at runtime from the internet. meaning a client-side app if possible ex. Alice, Bob, Cathy, Don ~string array pictures are retrieved from say http://www.friend.com/alic.pnge, http://www.friend.com/bob.png etc etc. onclick of the avatar/picture of the person will trigger a new activity (not yet implemented) Problem: even though the pictures loads correctly, however there seems to be a huge lagging issue. (tested with 100 photos of of grand total size of 1mb) and whenever I scroll down the gallery it seems to reload the pictures. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, 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] SD card on Sony Tablet S
Your user is very clever, because I get a message saying Copying failed when trying to copy to this second memory card with ES on my S. There is a built-in app that lets you transfer files to and from this memory card, and that's it. As far as rights go, here is what I see. Note the different owners. This is 4.0.3. kman@ivy:~$ adb shell ls -l /mnt drwxr-xr-x root system2012-08-14 11:23 asec drwxr-xr-x root system2012-08-14 11:23 obb d---rwxr-x system sdcard_rw 1970-01-01 04:00 sdcard d---rwxr-x system media_rw 1970-01-01 04:00 sdcard2 drwx-- root root 2012-08-14 11:23 secure d- system system2012-08-14 11:23 usbdisk1 d- system system2012-08-14 11:23 usbdisk2 d- system system2012-08-14 11:23 usbdisk3 d- system system2012-08-14 11:23 usbdisk4 d- system system2012-08-14 11:23 usbdisk5 d- system system2012-08-14 11:23 usbdisk6 d- system system2012-08-14 11:23 usbdisk7 d- system system2012-08-14 11:23 usbdisk8 kman@ivy:~$ adb shell ls -l /mnt/sdcard d---rwxr-x system sdcard_rw 2011-09-27 11:05 Alarms d---rwxr-x system sdcard_rw 2011-08-17 07:40 Android kman@ivy:~$ adb shell ls -l /mnt/sdcard2 d---rwxr-x system media_rw 2012-02-06 19:30 LOST.DIR d---rwxr-x system media_rw 2012-04-25 18:01 transferred -- K 2012/8/14 Zsolt Vasvari zvasv...@gmail.com I know this is probably not the best place to ask, but I cannot think of a better one. The Sony Tablet S uses an external storage, which is actually internal. It's real SD card is on some other path. My app allows the user to configure their folders using a full path name. My user has done this giving it the full path to a folder on the SD card. My app does a sanity check on the folder to make sure it's ok -- one of the checks done is to call File.canWrite(). This fails on this folder and I display an error message. But, the user claims that using ES File Explorer, he can actually create/copy a file in this folder, but cannot delete it or rename it. Looking at the folder permissions, w is not set, so canWrite() returns the correct value according to the permission set on the folder. Can anyone have any ideas what's going on here? How can a file created in a folder, but then not be able to modify it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Invisible Files on ICS - media scanner thing?
2012/8/14 Nikolay Elenkov nikolay.elen...@gmail.com On Tue, Aug 14, 2012 at 7:18 AM, Kostya Vasilyev kmans...@gmail.com wrote: The media scanner has a utility class in the framework: http://developer.android.com/reference/android/media/MediaScannerConnection.html The easiest thing you can do is to call static MediaScannerConnection.scanFile. BTW, this method never closes the connection it opens, so you will get 'leaked service connection' (or some such) warnings in logcat if yo use it. Hmm, there is a call to mConnection.disconnect in ClientProxy, line 204: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/MediaScannerConnection.java Perhaps it was added recently? It won't trigger if scanning a particular path element doesn't result in onScanCompleted(), though -- wonder if it can? -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SD card on Sony Tablet S
Well these are his exact words: BUT I can actually create files in that folder using ES file explorer or by copying files to it. I cannot however, rename or delete them. So he's not saying he was using ES to copy the files, but he was using ES to create files in there. Not sure what that means. On Tuesday, August 14, 2012 3:42:14 PM UTC+8, Kostya Vasilyev wrote: Your user is very clever, because I get a message saying Copying failed when trying to copy to this second memory card with ES on my S. There is a built-in app that lets you transfer files to and from this memory card, and that's it. As far as rights go, here is what I see. Note the different owners. This is 4.0.3. kman@ivy:~$ adb shell ls -l /mnt drwxr-xr-x root system2012-08-14 11:23 asec drwxr-xr-x root system2012-08-14 11:23 obb d---rwxr-x system sdcard_rw 1970-01-01 04:00 sdcard d---rwxr-x system media_rw 1970-01-01 04:00 sdcard2 drwx-- root root 2012-08-14 11:23 secure d- system system2012-08-14 11:23 usbdisk1 d- system system2012-08-14 11:23 usbdisk2 d- system system2012-08-14 11:23 usbdisk3 d- system system2012-08-14 11:23 usbdisk4 d- system system2012-08-14 11:23 usbdisk5 d- system system2012-08-14 11:23 usbdisk6 d- system system2012-08-14 11:23 usbdisk7 d- system system2012-08-14 11:23 usbdisk8 kman@ivy:~$ adb shell ls -l /mnt/sdcard d---rwxr-x system sdcard_rw 2011-09-27 11:05 Alarms d---rwxr-x system sdcard_rw 2011-08-17 07:40 Android kman@ivy:~$ adb shell ls -l /mnt/sdcard2 d---rwxr-x system media_rw 2012-02-06 19:30 LOST.DIR d---rwxr-x system media_rw 2012-04-25 18:01 transferred -- K 2012/8/14 Zsolt Vasvari zvas...@gmail.com javascript: I know this is probably not the best place to ask, but I cannot think of a better one. The Sony Tablet S uses an external storage, which is actually internal. It's real SD card is on some other path. My app allows the user to configure their folders using a full path name. My user has done this giving it the full path to a folder on the SD card. My app does a sanity check on the folder to make sure it's ok -- one of the checks done is to call File.canWrite(). This fails on this folder and I display an error message. But, the user claims that using ES File Explorer, he can actually create/copy a file in this folder, but cannot delete it or rename it. Looking at the folder permissions, w is not set, so canWrite() returns the correct value according to the permission set on the folder. Can anyone have any ideas what's going on here? How can a file created in a folder, but then not be able to modify it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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] AVD is no launching in Ubuntu ICS
Hi All, is it any issue with ICS with Ubuntu to start emulator ? Same is working over Windows XM but not working in Ubuntu 10.5 above. Please suggest me . -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SD card on Sony Tablet S
2012/8/14 Zsolt Vasvari zvasv...@gmail.com Well these are his exact words: BUT I can actually create files in that folder using ES file explorer or by copying files to it. I cannot however, rename or delete them. So he's not saying he was using ES to copy the files, Perhaps he is copying the files using the app built into the firmware just for this purpose. but he was using ES to create files in there. Not sure what that means. There is a menu item in ES to create a file, and it fails inside /mnt/sdcard2 as well on my S. -- K On Tuesday, August 14, 2012 3:42:14 PM UTC+8, Kostya Vasilyev wrote: Your user is very clever, because I get a message saying Copying failed when trying to copy to this second memory card with ES on my S. There is a built-in app that lets you transfer files to and from this memory card, and that's it. As far as rights go, here is what I see. Note the different owners. This is 4.0.3. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Handling Redirects in Android WebView
On Saturday 11 August 2012 02:31 AM, Mark Murphy wrote: On Fri, Aug 10, 2012 at 2:31 PM, farble1670 jeffrey.blatt...@gmail.com wrote: yeah, but how do tell if it's a redirect? Unless you can tell by examining the URL, probably you can't tell if it is a redirect. You can create your own webclient and overrideonPageFinished(...) onPageStarted(..) shouldOverrideUrlLoading(...) Try these.. you we get complete redirected url... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Examples for Android with Eclipse
On Saturday 11 August 2012 11:59 PM, Justin Anderson wrote: Care to explain what doesn't work means? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Aug 10, 2012 at 9:35 AM, augusto amerc...@gmail.com mailto:amerc...@gmail.com wrote: Where can I find examples for Android Programming, using Eclipse? I have tried to install the Samples of the SDK, but it doesnt work TIA, Augusto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en start android-sdk-manager and download samples for sdk. there you will get samples. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SD card on Sony Tablet S
I asked him if he did anything special. His answer is: No without any changes I can create a new file from ES using their new/file option but only using /mnt/sdcard2 not using /sdcard2. Its all very weird isn't it? He says he's on the latest ICS build. He doesn't seem like an especially technical user based on some other discussions with him. On Tuesday, August 14, 2012 4:03:20 PM UTC+8, Kostya Vasilyev wrote: 2012/8/14 Zsolt Vasvari zvas...@gmail.com javascript: Well these are his exact words: BUT I can actually create files in that folder using ES file explorer or by copying files to it. I cannot however, rename or delete them. So he's not saying he was using ES to copy the files, Perhaps he is copying the files using the app built into the firmware just for this purpose. but he was using ES to create files in there. Not sure what that means. There is a menu item in ES to create a file, and it fails inside /mnt/sdcard2 as well on my S. -- K On Tuesday, August 14, 2012 3:42:14 PM UTC+8, Kostya Vasilyev wrote: Your user is very clever, because I get a message saying Copying failed when trying to copy to this second memory card with ES on my S. There is a built-in app that lets you transfer files to and from this memory card, and that's it. As far as rights go, here is what I see. Note the different owners. This is 4.0.3. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SD card on Sony Tablet S
2012/8/14 Zsolt Vasvari zvasv...@gmail.com I asked him if he did anything special. His answer is: No without any changes I can create a new file from ES using their new/file option but only using /mnt/sdcard2 not using /sdcard2. Its all very weird isn't it? Considering that /sdcard2 is a symlink to /mnt/sdcard2 -- yes, very weird. He says he's on the latest ICS build. He doesn't seem like an especially technical user based on some other discussions with him. Oh, I don't know. I think he is, just not in a conscious way. Being able to bypass the kernel's file system mode checking certainly qualifies as very advanced hacking to me. -- 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: Invisible Files on ICS - media scanner thing?
On Tue, Aug 14, 2012 at 4:47 PM, Kostya Vasilyev kmans...@gmail.com wrote: 2012/8/14 Nikolay Elenkov nikolay.elen...@gmail.com On Tue, Aug 14, 2012 at 7:18 AM, Kostya Vasilyev kmans...@gmail.com wrote: The media scanner has a utility class in the framework: http://developer.android.com/reference/android/media/MediaScannerConnection.html The easiest thing you can do is to call static MediaScannerConnection.scanFile. BTW, this method never closes the connection it opens, so you will get 'leaked service connection' (or some such) warnings in logcat if yo use it. Hmm, there is a call to mConnection.disconnect in ClientProxy, line 204: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/MediaScannerConnection.java Perhaps it was added recently? It's been there at least since GB. Looks like it should get closed, so it looks like my assumption is (mostly?) wrong. It won't trigger if scanning a particular path element doesn't result in onScanCompleted(), though -- wonder if it can? Not sure, but here's one warning I got recently, and I've had reports of this before. This is for scanning a single file. Service com.github.andlyticsproject.io.ExportService has leaked ServiceConnection android.media.MediaScannerConnection@4149279 that was originally bound here android.app.ServiceConnectionLeaked: Service com.github.andlyticsproject.io.ExportService has leaked ServiceConnection android.media.MediaScannerConnection@4149279 that was originally bound here at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:965) at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:859) at android.app.ContextImpl.bindService(ContextImpl.java:1216) at android.app.ContextImpl.bindService(ContextImpl.java:1208) at android.content.ContextWrapper.bindService(ContextWrapper.java:394) at android.media.MediaScannerConnection.connect(MediaScannerConnection.java:116) at android.media.MediaScannerConnection.scanFile(MediaScannerConnection.java:235) at com.github.andlyticsproject.io.MediaScannerWrapper.scanFile(MediaScannerWrapper.java:15) at com.github.andlyticsproject.util.Utils.scanFile(Utils.java:81) at com.github.andlyticsproject.io.ExportService.exportStats(ExportService.java:102) at com.github.andlyticsproject.io.ExportService.onHandleIntent(ExportService.java:71) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:60) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Weird behavior on different device
Thanks for your help guys. I got this now. Something caused the bitmaps I am creating to become somehow too large, so it couldnt update some of the widgets and this did only happen on my Xperia P because of its big screen resolution which caused them to become even bigger. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Arrow keys on custom keyboard
Thank you very much Dianne. In case anyone who needs help bumps into this, this is what I did: Inside the key down handling function I added this code: CharSequence txt = getCurrentInputConnection().getTextBeforeCursor(1000, 0); int len = txt.length(); if ( len 1 ) { switch (arrow) { case KEY_LEFT: len--; break; case KEY_RIGHT: len++; break; case KEY_UP: case KEY_DOWN: //TBD break; } getCurrentInputConnection().setSelection(len, len); } yakobom On Tuesday, August 14, 2012 9:14:37 AM UTC+3, Dianne Hackborn wrote: That sample code is interpreting these as Unicode characters which it applies as edit operations on the text. You will need to modify the code to do the appropriate calls to move the cursor. On Mon, Aug 13, 2012 at 5:59 AM, yakobom yak...@gmail.com javascript:wrote: Hi, I've been trying to add arrow keys to the SoftKeyboard example from the SDK, without success: Added this to the keyboard xml (qwerty.xml): Row android:rowEdgeFlags=bottom Key android:codes=21 android:keyLabel=lt; android:isRepeatable=true android:keyWidth=5%p android:keyEdgeFlags=left/ Key android:codes=22 android:keyLabel=gt; android:isRepeatable=true android:keyWidth=5%p/ Key android:codes=20 android:keyLabel=\\/ android:isRepeatable=true android:keyWidth=5%p/ Key android:codes=19 android:keyLabel=/\\ android:isRepeatable=true android:keyWidth=5%p android:keyEdgeFlags=right/ /Row I get the extra keys, but when I click them I get squares. Can anyone tell why? I googled for it but could not find any answer, this seem to be correct - but does not work. Thanks, yakobom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hac...@android.com javascript: Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?
2012/8/14 Nikolay Elenkov nikolay.elen...@gmail.com On Tue, Aug 14, 2012 at 4:47 PM, Kostya Vasilyev kmans...@gmail.com wrote: Hmm, there is a call to mConnection.disconnect in ClientProxy, line 204: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/MediaScannerConnection.java Perhaps it was added recently? It's been there at least since GB. Looks like it should get closed, so it looks like my assumption is (mostly?) wrong. It won't trigger if scanning a particular path element doesn't result in onScanCompleted(), though -- wonder if it can? Not sure, but here's one warning I got recently, and I've had reports of this before. This is for scanning a single file. Service com.github.andlyticsproject.io.ExportService has leaked ServiceConnection android.media.MediaScannerConnection@4149279 that was originally bound here android.app.ServiceConnectionLeaked: Service com.github.andlyticsproject.io.ExportService has leaked ServiceConnection android.media.MediaScannerConnection@4149279 that was originally bound here Funny. When in doubt, trust the logs, ignore the code, I guess :) -- 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
[android-developers] Using a symbol font
I have seen that it is possible to use custom fonts within our Android apps. I am starting to build an app for tablets and need to use a specific symbol font. I place it in a font directory under assets and load it via the Typeface.*createFromAsset* method. I get back a Typeface object and assign it to my Paint object and then paint it out onto the canvas. However, instead of getting the symbols, I get normal text. Is there a special step necessary to get symbol fonts to output 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
Re: [android-developers] Using a symbol font
On Tue, Aug 14, 2012 at 5:46 AM, Simon Giddings mr.s.giddi...@gmail.com wrote: I have seen that it is possible to use custom fonts within our Android apps. I am starting to build an app for tablets and need to use a specific symbol font. I place it in a font directory under assets and load it via the Typeface.createFromAsset method. I get back a Typeface object and assign it to my Paint object and then paint it out onto the canvas. However, instead of getting the symbols, I get normal text. Is there a special step necessary to get symbol fonts to output correctly ? Android does not honor all custom fonts, substituting the default font silently. I'd start with a font that is known to work, such as the one in this sample project: https://github.com/commonsguy/cw-omnibus/tree/master/Fonts/FontSampler If that fails, then there is something wrong with the application logic (or that font has started failing on devices, where it has worked for years). If that font succeeds and your symbol font fails... you will need to find another symbol font, or perhaps try slightly modifying that symbol font in some font editor in hopes that the newly-saved font will work with Android. -- 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 4.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] progress bar during uploading
i use httpurlconnection to made upload file to the server but i didn't succeed to find a way to show progress in the user interface, is there a way to find out how much has been uploaded may some help with that please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] progress bar during uploading
this is the code to download a file from server using progress bar hope might be you get some idea!!! import android.app.Activity; import android.os.Bundle; import java.io.BufferedInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import java.net.URLConnection; import android.app.Dialog; import android.app.ProgressDialog; //import android.content.Intent; import android.os.AsyncTask; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; public class UploadingFile extends Activity { public static final int DIALOG_DOWNLOAD_PROGRESS = 0; private Button startBtn; private Button next; private ProgressDialog mProgressDialog; Activity m_activity = this; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main3); startBtn = (Button)findViewById(R.id.startBtn); next = (Button) findViewById(R.id.Button02); startBtn.setOnClickListener(new OnClickListener(){ public void onClick(View v) { // handleButtonClick(); //Intent myIntent = new Intent(v.getContext(), UploadingFile.class); // startActivityForResult(myIntent, 0); // finish(); startDownload(); } }); } private void startDownload() { String url = http://115.115.95.74/mobileapp/test60/uploads/phonedata.txt;; new DownloadFileAsync().execute(url); } @Override protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_DOWNLOAD_PROGRESS: mProgressDialog = new ProgressDialog(this); mProgressDialog.setMessage(Downloading file..); Toast.makeText(this, File Downloaded Sucessfully.Please check your file into sdcard, Toast.LENGTH_LONG).show(); mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mProgressDialog.setCancelable(false); mProgressDialog.show(); return mProgressDialog; default: return null; } } class DownloadFileAsync extends AsyncTaskString, String, String { @Override protected void onPreExecute() { super.onPreExecute(); showDialog(DIALOG_DOWNLOAD_PROGRESS); } @Override protected String doInBackground(String... aurl) { int count; try { URL url = new URL(aurl[0]); URLConnection conexion = url.openConnection(); conexion.connect(); int lenghtOfFile = conexion.getContentLength(); Log.d(ANDRO_ASYNC, Lenght of file: + lenghtOfFile); InputStream input = new BufferedInputStream(url.openStream()); OutputStream output = new FileOutputStream(/sdcard/download/phonedata.txt); byte data[] = new byte[1024]; long total = 0; while ((count = input.read(data)) != -1) { total += count; publishProgress(+(int)((total*100)/lenghtOfFile)); output.write(data, 0, count); } output.flush(); output.close(); input.close(); if(next != null){ m_activity.finish(); } } catch (Exception e) {} return null; } protected void onProgressUpdate(String... progress) { Log.d(ANDRO_ASYNC,progress[0]); mProgressDialog.setProgress(Integer.parseInt(progress[0])); } @Override protected void onPostExecute(String unused) { dismissDialog(DIALOG_DOWNLOAD_PROGRESS); }} } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 find the position of the imageview
Hi all, I have imageview at the center of the layout.How to find the position of the imageview? Thanks, vijay.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
[android-developers] Re: progress bar during uploading
i implement the download part and its easy to made by divide the length of file by the downloaded stream and put the result in progress bar but in uploading i i didn't succeed to do the same way so wish a help with that On Tue, Aug 14, 2012 at 1:19 PM, Live Happy livehap...@gmail.com wrote: i use httpurlconnection to made upload file to the server but i didn't succeed to find a way to show progress in the user interface, is there a way to find out how much has been uploaded may some help with that please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] progress bar during uploading
On Aug 14, 2012, at 1:43 PM, Live Happy livehap...@gmail.com wrote: i implement the download part and its easy to made by divide the length of file by the downloaded stream and put the result in progress bar but in uploading i i didn't succeed to do the same way so wish a help with that What you could try is to upload file in chunks. Instead of sending whole file to OutputStream send only parts of it, calling flush() in the middle. And if you're lucky calling flush() will upload that chunk to upstream giving you a possibility to update progress bar. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Using a symbol font
Thanks Mark, I had created a very simple project to try this out. So, it would appear that I will have to look at a different method for drawing symbols. Thanks again On Tuesday, 14 August 2012 12:09:18 UTC+2, Mark Murphy (a Commons Guy) wrote: On Tue, Aug 14, 2012 at 5:46 AM, Simon Giddings mr.s.g...@gmail.comjavascript: wrote: I have seen that it is possible to use custom fonts within our Android apps. I am starting to build an app for tablets and need to use a specific symbol font. I place it in a font directory under assets and load it via the Typeface.createFromAsset method. I get back a Typeface object and assign it to my Paint object and then paint it out onto the canvas. However, instead of getting the symbols, I get normal text. Is there a special step necessary to get symbol fonts to output correctly ? Android does not honor all custom fonts, substituting the default font silently. I'd start with a font that is known to work, such as the one in this sample project: https://github.com/commonsguy/cw-omnibus/tree/master/Fonts/FontSampler If that fails, then there is something wrong with the application logic (or that font has started failing on devices, where it has worked for years). If that font succeeds and your symbol font fails... you will need to find another symbol font, or perhaps try slightly modifying that symbol font in some font editor in hopes that the newly-saved font will work with Android. -- 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 4.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to find the position of the imageview
Take a look in the View documentation. ( http://developer.android.com/reference/android/view/View.html ) getTop(), getLeft(), getRight() and getBottom() should help. Position The geometry of a view is that of a rectangle. A view has a location, expressed as a pair of *left* and *top* coordinates, and two dimensions, expressed as a width and a height. The unit for location and dimensions is the pixel. It is possible to retrieve the location of a view by invoking the methods getLeft()http://developer.android.com/reference/android/view/View.html#getLeft() and getTop()http://developer.android.com/reference/android/view/View.html#getTop(). The former returns the left, or X, coordinate of the rectangle representing the view. The latter returns the top, or Y, coordinate of the rectangle representing the view. These methods both return the location of the view relative to its parent. For instance, when getLeft() returns 20, that means the view is located 20 pixels to the right of the left edge of its direct parent. In addition, several convenience methods are offered to avoid unnecessary computations, namely getRight()http://developer.android.com/reference/android/view/View.html#getRight() and getBottom()http://developer.android.com/reference/android/view/View.html#getBottom(). These methods return the coordinates of the right and bottom edges of the rectangle representing the view. For instance, calling getRight()http://developer.android.com/reference/android/view/View.html#getRight() is similar to the following computation: getLeft() + getWidth() (see Sizehttp://developer.android.com/reference/android/view/View.html#SizePaddingMargins for more information about the width.) 2012/8/14 Vijay Krishnan vijay.vijay...@gmail.com Hi all, I have imageview at the center of the layout.How to find the position of the imageview? Thanks, vijay.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] are processes using SD card killed on unmount?
Hello, from my (anecdotal) tests it appears that processes using SD card are killed when SD card is unmounted. Is this documented behaviour, can it be relied upon for existing and future Android versions? Also, just out of curiosity and to better understand how it works, how are processes to be killed identified? Just by listing those with open descriptors on the SD card, or anything fancier (tracking past users, identifying potential users)? 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] how to find the position of the imageview
it all returns value 0 On Tue, Aug 14, 2012 at 6:19 PM, Luiz Fernando Rodrigues emaild...@gmail.com wrote: Take a look in the View documentation. ( http://developer.android.com/reference/android/view/View.html ) getTop(), getLeft(), getRight() and getBottom() should help. Position The geometry of a view is that of a rectangle. A view has a location, expressed as a pair of *left* and *top* coordinates, and two dimensions, expressed as a width and a height. The unit for location and dimensions is the pixel. It is possible to retrieve the location of a view by invoking the methods getLeft()http://developer.android.com/reference/android/view/View.html#getLeft() and getTop()http://developer.android.com/reference/android/view/View.html#getTop(). The former returns the left, or X, coordinate of the rectangle representing the view. The latter returns the top, or Y, coordinate of the rectangle representing the view. These methods both return the location of the view relative to its parent. For instance, when getLeft() returns 20, that means the view is located 20 pixels to the right of the left edge of its direct parent. In addition, several convenience methods are offered to avoid unnecessary computations, namely getRight()http://developer.android.com/reference/android/view/View.html#getRight() and getBottom()http://developer.android.com/reference/android/view/View.html#getBottom(). These methods return the coordinates of the right and bottom edges of the rectangle representing the view. For instance, calling getRight()http://developer.android.com/reference/android/view/View.html#getRight() is similar to the following computation: getLeft() + getWidth() (see Sizehttp://developer.android.com/reference/android/view/View.html#SizePaddingMargins for more information about the width.) 2012/8/14 Vijay Krishnan vijay.vijay...@gmail.com Hi all, I have imageview at the center of the layout.How to find the position of the imageview? Thanks, vijay.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 find the position of the imageview
Vijay Krishnan wrote: it all returns value 0 this is normal situation when you call them in onCreate or other methods before the layout management takes effect pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] libcore.io.ErrnoException: open failed: EMFILE (Too many open files)
I implemented a file cache to load small images for a long grid view. After scrolling a while, I get a lot of `libcore.io.ErrnoException: open failed: EMFILE (Too many open files)` How do I avoid this? This is the code to read one bitmap: File fullCacheDir = new File(Environment.getExternalStorageDirectory().toString(), cacheDir); File file = new File(fullCacheDir.toString(), fileName); if (!file.exists()) { return null; } Bitmap bm = BitmapFactory.decodeFile(file.toString()); This is to save one bitmap: FileOutputStream outputStream = new FileOutputStream(fileUri); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream); outputStream.flush(); outputStream.close(); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Create 2 groups in expandable listview
If you want to get help, you might consider reading this, and then asking a more clearly defined question: http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 14, 2012 at 12:26 AM, Krishna Veni mercy.krishnav...@gmail.comwrote: Hi I have tried to develop expandable listview in android application.Now I have one doubts.How is creating 2 groups ion below my code for separate child details? For Eg: Group name: OrderInfo,CustomerInfo. Childname(OrderInfo):payment_**method. Childname(CustomerInfo):name,**email. How to do this?Please help me. this is my code: SimpleExpandableListAdapter expListAdapter = new SimpleExpandableListAdapter( this, createGroupList(), // Creating group List. R.layout.group_row, // Group item layout XML. new String[] { OrderInfo,CustomerInfo}, // the key of group item. new int[] { R.id.order,R.id.customer}, // ID of each group item.-Data under the key goes into this TextView. createChildList(), // childData describes second-level entries. R.layout.single_list_item, new String[] {KEY_ARTIST,KEY_DURATION,** KEY_SUBTOTAL,KEY_DISCOUNT,**KEY_COUPON,KEY_COST}, new int[] { R.id.payment_label,R.id.total_** label,R.id.discount_label,R.**id.discount_label,R.id.coupon_**label,R.id.cost_label}// Keys in childData maps to display. ); setListAdapter( expListAdapter ); // setting the adapter in the list. }catch(Exception e){ System.out.println(E +++ + e.getMessage()); } } /* Creating the Hashmap for the row */ @SuppressWarnings(unchecked) private List createGroupList() { ArrayList result = new ArrayList(); for( int i = 0 ; i 1 ; ++i ) { // 15 groups HashMap m = new HashMap(); map.put( CustomerInfo,CustomerInfo)**; // the key and it's value. m.put( OrderInfo, OrderInfo); result.add( m); } return (List)result; } /* creatin the HashMap for the children */ @SuppressWarnings(unchecked) private List createChildList() { ArrayList result = new ArrayList(); for( int i = 0 ; i 1 ; ++i ) { // this -15 is the number of groups(Here it's fifteen) /* each group need each HashMap-Here for each group we have 3 subgroups */ ArrayList secList = new ArrayList(); for( int n = 0 ; n 1 ; n++ ) { HashMap child = new HashMap(); Intent in = getIntent(); String payment_method = in.getStringExtra(KEY_ARTIST); TextView lblPayment = (TextView) findViewById(R.id.payment_** label); /// lblPayment.setText(payment_**method); int payment; payment=1; String s= getIntent().getStringExtra(**payment_method); String s1= getIntent().getStringExtra(**total); String s2= getIntent().getStringExtra(**subtotal); String s3= getIntent().getStringExtra(**discount); String s4= getIntent().getStringExtra(**coupon_discount); String s5= getIntent().getStringExtra(**shipping_cost); child.put( KEY_ARTIST, s); child.put( KEY_DURATION, s1); child.put( KEY_SUBTOTAL, s2); child.put( KEY_DISCOUNT, s3); child.put( KEY_COUPON, s4); child.put( KEY_COST, s5); secList.add( child); } result.add( secList ); } return result; } Here my above code is not worked.So please help me I have to change what line. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cannot run traceview
Running traceview from eclipse does not work (I am on 3.7.2) Could not open the editor: Method exit (java/util/ArrayList.remove (I)Ljava/lang/Object;) does not match current method (java/lang/System.arraycopy (Ljava/lang/Object;ILjava/lang/Object;II)V) java.lang.RuntimeException: Method exit (java/util/ArrayList.remove (I)Ljava/lang/Object;) does not match current method (java/lang/System.arraycopy (Ljava/lang/Object;ILjava/lang/Object;II)V) at com.android.traceview.ThreadData.exit(ThreadData.java:106) at com.android.traceview.DmTraceReader.parseData(DmTraceReader.java:323) at com.android.traceview.DmTraceReader.generateTrees(DmTraceReader.java:92) at com.android.traceview.DmTraceReader.init(DmTraceReader.java:87) at com.android.ide.eclipse.traceview.editors.TraceviewEditor.createPartControl(TraceviewEditor.java:258) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155) at com.android.ide.eclipse.traceview.TraceviewLauncher$1.run(TraceviewLauncher.java:65) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) and running traceview from terminal after pulling the calc.trace file gives ./traceview /tmp/calc Exception in thread main java.lang.RuntimeException: Method exit (java/lang/String.indexOf (II)I) does not match current method (java/lang/String.fastIndexOf (II)I) at com.android.traceview.ThreadData.exit(ThreadData.java:106) at com.android.traceview.DmTraceReader.parseData(DmTraceReader.java:323) at com.android.traceview.DmTraceReader.generateTrees(DmTraceReader.java:92) at com.android.traceview.DmTraceReader.init(DmTraceReader.java:87) at com.android.traceview.MainWindow.main(MainWindow.java:286) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is Chrome in android simulator supported?
Hey Dianne, thank you for the reply, I was actually referring to the emulator, my mistake. On Sunday, August 12, 2012 12:16:59 AM UTC-4, Dianne Hackborn wrote: The simulator is pretty dead. If something works in it, you are just lucky. :} I very much doubt chrome will work in it. On Wed, Aug 8, 2012 at 1:38 PM, Aaron Labiaga alab...@google.comjavascript: wrote: Is chrome in the android simulator supported? I've looked in other forums and no one seemed to have been successful in doing 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hac...@android.com javascript: Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is Chrome in android simulator supported?
I apologize. I actually meant the emulator and not the simulator...Sorry for the personal email to you Dianne. Thanks On Wednesday, August 8, 2012 4:38:46 PM UTC-4, AaronL wrote: Is chrome in the android simulator supported? I've looked in other forums and no one seemed to have been successful in doing this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I missed my Phone at Home - good apps
This is my news apps, please give me suggestion to update it. https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.device -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SecureSMS Free - simple and good apps
Let me know, your comments, https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.secure.sms -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SecureSMS Free - simple and good apps
The links you keep sending don't even work correctly, they just redirect to the Google publisher pages. kris On Tue, Aug 14, 2012 at 1:35 PM, Rocky rkjhaw1...@gmail.com wrote: Let me know, your comments, https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.secure.sms -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SecureSMS Free - simple and good apps
https://play.google.com/store/apps/details?id=com.sst.secure.smsfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3Quc2VjdXJlLnNtcyJd On Tue, Aug 14, 2012 at 11:47 PM, Kristopher Micinski krismicin...@gmail.com wrote: The links you keep sending don't even work correctly, they just redirect to the Google publisher pages. kris On Tue, Aug 14, 2012 at 1:35 PM, Rocky rkjhaw1...@gmail.com wrote: Let me know, your comments, https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.secure.sms -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I missed my Phone at Home - good apps
On Tue, Aug 14, 2012 at 12:34 PM, Rocky rkjhaw1...@gmail.com wrote: This is my news apps, please give me suggestion to update it. https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.device You probably shouldn't be linking people to your developer console. - 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] SecureSMS Free- new apps
Let me know your feed back https://play.google.com/store/apps/details?id=com.sst.secure.smsfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3Quc2VjdXJlLnNtcyJd -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SecureSMS Free - simple and good apps
And then there's the problem that this probably isn't an appropriate list for spamming links to advertise your app.. kris On Tue, Aug 14, 2012 at 2:25 PM, Rocky rkjhaw1...@gmail.com wrote: https://play.google.com/store/apps/details?id=com.sst.secure.smsfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3Quc2VjdXJlLnNtcyJd On Tue, Aug 14, 2012 at 11:47 PM, Kristopher Micinski krismicin...@gmail.com wrote: The links you keep sending don't even work correctly, they just redirect to the Google publisher pages. kris On Tue, Aug 14, 2012 at 1:35 PM, Rocky rkjhaw1...@gmail.com wrote: Let me know, your comments, https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.secure.sms -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I Missed my phone at Home - good apps
Let me know your comments https://play.google.com/store/apps/details?id=com.sst.devicefeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3QuZGV2aWNlIl0 . -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I missed my Phone at Home - good apps
https://play.google.com/store/apps/details?id=com.sst.devicefeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3QuZGV2aWNlIl0 . On Tue, Aug 14, 2012 at 11:54 PM, TreKing treking...@gmail.com wrote: On Tue, Aug 14, 2012 at 12:34 PM, Rocky rkjhaw1...@gmail.com wrote: This is my news apps, please give me suggestion to update it. https://play.google.com/apps/publish/Home?dev_acc=17517429792554806344#AppEditorPlace:p=com.sst.device You probably shouldn't be linking people to your developer console. - 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I missed my Phone at Home - good apps
OK. Now please stop spamming. Thanks. - 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] Regarding MediaRecorder
Does anyone knows if the MediaRecorder class execute itself in seperate thread on in the main thread? thanks in advance kobi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Examples for Android with Eclipse
Clean the project On Tue, Aug 14, 2012 at 1:37 PM, renuka renukanil.deshpa...@gmail.comwrote: On Saturday 11 August 2012 11:59 PM, Justin Anderson wrote: Care to explain what doesn't work means? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Aug 10, 2012 at 9:35 AM, augusto amerc...@gmail.com wrote: Where can I find examples for Android Programming, using Eclipse? I have tried to install the Samples of the SDK, but it doesnt work TIA, Augusto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 start android-sdk-manager and download samples for sdk. there you will get samples. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] media player error (1, -4)
I'm trying to crate an app that will play a number of sound file saved within the app. I'm having trouble getting the media player to start however. Here is the code: public static final String LOG_TAG = BCA; public MediaPlayer mp; @Override public void onCreate(Bundle savedInstanceState) { Log.v(LOG_TAG, creating); super.onCreate(savedInstanceState); setContentView(R.layout.main_list); mp = new MediaPlayer(); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); Log.v(LOG_TAG, set stream type); playMusic(); } public void playMusic() { try { mp.setDataSource(R.raw.music); Log.v(LOG_TAG, set data source); mp.setOnPreparedListener(this); mp.prepareAsync(); Log.v(LOG_TAG, preparing); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalStateException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } public void onPrepared(MediaPlayer mediaPlayer) { Log.v(LOG_TAG, finished preparing; starting); //if (!mp.isPlaying()) mp.start(); Log.v(LOG_TAG, started music); } It runs smoothly until the logtag preparing but finished preparing; starting never prints. Not sure what's going wrong in this segment. The media file is type .mp3 and the api is level 8 (2.1) 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] Android talking to computer
Let's say I have an Android phone, and it is connected by USB to a PC. Is there an easy way to make it talk to the PC by USB? For instance, it might send a camera image to the PC every five minutes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Using a symbol font
Maybe create a Bitmap font? I use a program called bmGlyph to make bitmap fonts for Android. On Tuesday, August 14, 2012 7:18:46 AM UTC-5, Simon Giddings wrote: Thanks Mark, I had created a very simple project to try this out. So, it would appear that I will have to look at a different method for drawing symbols. Thanks again On Tuesday, 14 August 2012 12:09:18 UTC+2, Mark Murphy (a Commons Guy) wrote: On Tue, Aug 14, 2012 at 5:46 AM, Simon Giddings mr.s.g...@gmail.com wrote: I have seen that it is possible to use custom fonts within our Android apps. I am starting to build an app for tablets and need to use a specific symbol font. I place it in a font directory under assets and load it via the Typeface.createFromAsset method. I get back a Typeface object and assign it to my Paint object and then paint it out onto the canvas. However, instead of getting the symbols, I get normal text. Is there a special step necessary to get symbol fonts to output correctly ? Android does not honor all custom fonts, substituting the default font silently. I'd start with a font that is known to work, such as the one in this sample project: https://github.com/commonsguy/cw-omnibus/tree/master/Fonts/FontSampler If that fails, then there is something wrong with the application logic (or that font has started failing on devices, where it has worked for years). If that font succeeds and your symbol font fails... you will need to find another symbol font, or perhaps try slightly modifying that symbol font in some font editor in hopes that the newly-saved font will work with Android. -- 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 4.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding MediaRecorder
Probably. When you call MediaRecorder.start, it doesn't block the UI thread. On Tuesday, August 14, 2012 1:34:50 PM UTC-5, Kobi wrote: Does anyone knows if the MediaRecorder class execute itself in seperate thread on in the main thread? thanks in advance kobi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet
Thank you for your suggestion. I'll try this out if the user is willing and post my findings. On Tue, Aug 14, 2012 at 10:04 AM, Kostya Vasilyev kmans...@gmail.comwrote: 2012/8/14 Acubeware supp...@acubeware.com Thanks for your response. The user has informed us that their version of the Google Play app is 3.7.15. So is mine on a Galaxy Nexus Still -- if that device uses a pirated version of Market (even the latest version) it could break in various ways. And it does look like a generic no-name tablet with someone's logo on it. Also, here is the relevant code from the LVL library: if (mService == null) { Log.i(TAG, Binding to licensing service.); try { boolean bindResult = mContext .bindService( new Intent( new String( Base64.decode(Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U=))), this, // ServiceConnection. Context.BIND_AUTO_CREATE); if (bindResult) { mPendingChecks.offer(validator); } else { Log.e(TAG, Could not bind to service.); handleServiceConnectionError(validator); } } catch (SecurityException e) { callback.applicationError(LicenseCheckerCallback.ERROR_MISSING_PERMISSION); } catch (Base64DecoderException e) { e.printStackTrace(); } } else { mPendingChecks.offer(validator); runChecks(); } } The base64 string is used starting with LVL version 2 and decodes to com.android.vending.licensing.ILicensingService, same action value as was used in LVL version 1. I guess what I would do at this point, if the user has enough patience to investigate this further, is to write a simple test app that attempts to bind to the licensing service, and also queries the package manager to attempt resolving the bind intent. The test app won't be able to perform a real LVL check on behalf of your app but just attempting to bind should be useful. It could call the LVL with its own package name, and that should return not market managed... The point of all this would be to find out for sure if there is something wrong with Market on the device -- I believe there is, but if you wanted to be certain, you should be able to clarify the issue with a simple test like this. -- K On Thursday, July 26, 2012 10:24:00 PM UTC+12, Kostya Vasilyev wrote: Ask the user to check the Google Play app version. I'd guess the device uses the Play app obtained in unofficial ways (putting it mildly), and as such, various pieces of functionality may break in unexpected ways. -- K 2012/7/24 Acubeware sup...@acubeware.com Hi, We have published an app on Google Play Store that uses the Android license verification library. We have a customer whose license is unable to be verified because the LVL library cannot bind to the licensing service (as highlighted in the customer's log file pasted below). This appears to be a device specific issue because our application has been tested on a number of different devices and Android versions without problem. We also have a number of other customers who are successfully using the application. The device that is experiencing this problem is an ALLVIEW PC ALLDRO SPEED with a CORTEX A8, 1.2 GHZ processor running Android 4.0. The device has the Google Play app installed. Does anyone have any idea as to what could be causing the bindService call to fail? 06-26 21:47:33.929 I/System ( 1224): Failed to destroy process 1442 06-26 21:47:33.929 I/System ( 1224): libcore.io.ErrnoException: kill failed: ESRCH (No such process) 06-26 21:47:33.929 I/System ( 1224): at libcore.io.Posix.kill(Native Method) 06-26 21:47:33.929 I/System ( 1224): at libcore.io.ForwardingOs.kill( **F**orwardingOs.java:77) 06-26 21:47:33.929 I/System ( 1224): at java.lang.ProcessManager$** Proce**ssImpl.destroy(**ProcessManager.**java:257) 06-26 21:47:33.929 I/System ( 1224): at com.nolanlawson.logcat.b.a.b(**U**nknown Source) 06-26 21:47:33.929 I/System ( 1224): at com.nolanlawson.logcat.reader.LogcatReaderLoader.init(**Unkn**own Source) 06-26 21:47:33.929 I/System ( 1224): at com.nolanlawson.logcat.reader.LogcatReaderLoader.a(Unknown Source) 06-26 21:47:33.929 I/System ( 1224): at com.nolanlawson.logcat.b.o.a( **U**nknown Source) 06-26 21:47:33.929 I/System ( 1224): at com.nolanlawson.logcat.b.f.** doI**nBackground(Unknown Source) 06-26 21:47:33.929 I/System ( 1224): at android.os.AsyncTask$2.call(* *As**yncTask.java:264) 06-26 21:47:33.929 I/System ( 1224): at
[android-developers] How to allow Landscape mode on Transparent / Translucent Activities?
Suppose I have an Activity that uses the transparent theme: android:theme=@android:style/Theme.Translucent in the AndroidManifest.xml. When my Activity is launched from the Home Screen, most commercial phones will lock it to Portrait mode only. This is probably because the Home Screen only runs in Portrait mode, and applying the Translucent theme to my Activity makes it also lock to Portrait mode. But I would like to run my Activity in Landscape mode as well. Is this possible? For example, is there a way to dynamically remove the Translucent flag when a landscape orientation change is detected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android talking to computer
All Android devices use ADB to talk to computer On Tuesday, August 14, 2012 2:27:53 PM UTC-5, bob wrote: Let's say I have an Android phone, and it is connected by USB to a PC. Is there an easy way to make it talk to the PC by USB? For instance, it might send a camera image to the PC every five minutes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 allow Landscape mode on Transparent / Translucent Activities?
I have an app that has a transparency effect on it as well. From what I have seen, doing this causes your app to have the same orientation policies as the visible app behind it... That is, if the app behind it is locked in portrait, then that is what your app will be. If it is locked in landscape, then your app will run in landscape. If it allows for rotation then your app will also rotate. Due to the way Android handles rotation I don't think this behavior can be changed. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 14, 2012 at 3:47 PM, I.E. inib...@gmail.com wrote: Suppose I have an Activity that uses the transparent theme: android:theme=@android:style/Theme.Translucent in the AndroidManifest.xml. When my Activity is launched from the Home Screen, most commercial phones will lock it to Portrait mode only. This is probably because the Home Screen only runs in Portrait mode, and applying the Translucent theme to my Activity makes it also lock to Portrait mode. But I would like to run my Activity in Landscape mode as well. Is this possible? For example, is there a way to dynamically remove the Translucent flag when a landscape orientation change is detected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android talking to computer
My android device has a separate camera transfer protocol apart from the media device option when connected to a computer. I got this option after I had upgraded to Icecream sandwich. I am not sure whether this was an option added by the manufacturer or it came as a part of the package with ICS. Thanks, Sai On Tue, Aug 14, 2012 at 5:07 PM, Paul Turchenko paul.turche...@gmail.com wrote: All Android devices use ADB to talk to computer On Tuesday, August 14, 2012 2:27:53 PM UTC-5, bob wrote: Let's say I have an Android phone, and it is connected by USB to a PC. Is there an easy way to make it talk to the PC by USB? For instance, it might send a camera image to the PC every five minutes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 allow Landscape mode on Transparent / Translucent Activities?
Why are you making your activity translucent? If this is to allow the launcher to be seen through behind it, you shouldn't let the screen rotate if the launcher doesn't want it to -- the launcher has locked the rotation because it doesn't want to be rotated. If you actually are drawing everything in your activity so the launcher can't be seen, then why are you using the translucent theme? On Tue, Aug 14, 2012 at 2:47 PM, I.E. inib...@gmail.com wrote: Suppose I have an Activity that uses the transparent theme: android:theme=@android:style/Theme.Translucent in the AndroidManifest.xml. When my Activity is launched from the Home Screen, most commercial phones will lock it to Portrait mode only. This is probably because the Home Screen only runs in Portrait mode, and applying the Translucent theme to my Activity makes it also lock to Portrait mode. But I would like to run my Activity in Landscape mode as well. Is this possible? For example, is there a way to dynamically remove the Translucent flag when a landscape orientation change is detected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Bitmap size exceeds
Dear Bob, I tried my app in API 11 with largeHeap=true, but the app crashes. It didn't work. :( On Mon, Aug 13, 2012 at 7:06 PM, bob b...@coolfone.comze.com wrote: If your app is done in API 11 or higher, in the application / in the Android Manifest.xml, you can use largeHeap=true which will allow the application to use more heap if it is available. On Sunday, August 12, 2012 6:48:14 PM UTC-5, Numair Qadir wrote: So, i was working on a project that loads an image from the gallery and set as background. It is working perfectly fine but crashes when i try to load a large image, i.e. 5 MP (2592х1944), 8mpx (3264x2448), 12 MP, 4000x3000 , here is my code: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { { super.onActivityResult(**requestCode, resultCode, data); if (resultCode == Activity.RESULT_OK requestCode == 0) { Uri photo = data.getData(); ContentResolver resolver = getContentResolver(); resolver.notifyChange(photo, null); try { Bitmap bitmap = MediaStore.Images.Media.**getBitmap(resolver, photo); FrameLayout bg = (FrameLayout) findViewById(R.id.frame); Drawable drawable = new BitmapDrawable(getResources(), bitmap); bg.setBackgroundDrawable(**drawable); // Do something useful with your bitmap } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } } here is the logcat 08-13 04:44:01.414: E/AndroidRuntime(11062): FATAL EXCEPTION: main 08-13 04:44:01.414: E/AndroidRuntime(11062): java.lang.OutOfMemoryError: bitmap size exceeds VM budget 08-13 04:44:01.414: E/AndroidRuntime(11062): at android.graphics.** BitmapFactory.**nativeDecodeStream(Native Method) 08-13 04:44:01.414: E/AndroidRuntime(11062): at android.graphics.** BitmapFactory.decodeStream(**BitmapFactory.java:459) 08-13 04:44:01.414: E/AndroidRuntime(11062): at android.graphics.** BitmapFactory.decodeStream(**BitmapFactory.java:515) 08-13 04:44:01.414: E/AndroidRuntime(11062): at android.provider.MediaStore$**Images$Media.getBitmap(** MediaStore.java:503) Any help through code snippet/ tutorial would be more fruitful. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Bitmap size exceeds
Dear Jim, I like the solution you proposed for me, can you please explain me more how to load/scale it at the same time. Any help from code snippet/ example would be more appreciated. Thanks On Mon, Aug 13, 2012 at 5:02 AM, Jim Graham spooky1...@gmail.com wrote: On Sun, Aug 12, 2012 at 04:48:14PM -0700, Numair Qadir wrote: So, i was working on a project that loads an image from the gallery and set as background. It is working perfectly fine but crashes when i try to load a large image, i.e. 5 MP (2592??1944), 8mpx (3264x2448), 12 MP, 4000x3000 , here is my code: If you want to load the larger images, you have two options: either first load ONLY the dimensions for the image (see BitmapFactory and BitmapFactory.Options, and from there, see inJustDecodeBounds), and then load/scale it at the same time. OR you can do this using the NDK (the list for that would be android-...@googlegroups.com). Frankly, I'd suggest loading the former of the two if all you want to do with the image is set it as wallpaper. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W The iPad is a status symbol for yuppies. The Android is for people who actually want something that works. Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is Chrome in android simulator supported?
Okay I can't help you with that... the emulator generally provides a full Android ARM environment, which Android applications will run in. Is Chrome doing something to not run in that environment? I don't know, that would be a Chrome thing. On Tue, Aug 14, 2012 at 10:19 AM, AaronL alabi...@google.com wrote: I apologize. I actually meant the emulator and not the simulator...Sorry for the personal email to you Dianne. Thanks On Wednesday, August 8, 2012 4:38:46 PM UTC-4, AaronL wrote: Is chrome in the android simulator supported? I've looked in other forums and no one seemed to have been successful in doing 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onDraw is called twice
Have you tried commenting out* super.onDraw()*? On Saturday, December 19, 2009 5:06:01 PM UTC-5, jdekeij wrote: Hoi, In my layout I have a custom view which extends View and under this a button is placed. When I click the button the color changes to orange (Android default behavior) but it also causes the onDraw method being called of my custom view. Releasing the button causes again the onDraw method being called. How can I prevent this behavior? How to stop the invalidation of my view when clicking a button? Thanks in advance, Jasper -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Bitmap size exceeds
On Wed, Aug 15, 2012 at 06:27:12AM +0500, Numair Qadir wrote: Dear Bob, I tried my app in API 11 with largeHeap=true, but the app crashes. It didn't work. :( Of course not...I tried that, too...no help at all. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Saw something on TV about Psych-os. H, Psych OS. Perhaps the next freeware OS --me Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bitmap size exceeds
On Wed, Aug 15, 2012 at 06:35:43AM +0500, Numair Qadir wrote: I like the solution you proposed for me, can you please explain me more how to load/scale it at the same time. Any help from code snippet/ example would be more appreciated. Thanks For examples, buy a copy of the book I learned from: Pro Android Media. It's good. I'm sure there are more examples, but that's the source I know about. For a detailed reference, refer to the Bitmap and BitmapFactory pages in the developers guide that I mentioned before. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Saw something on TV about Psych-os. H, Psych OS. Perhaps the next freeware OS --me Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Create 2 groups in expandable listview
please check this link http://android.grepsrc.com/xref/ics-mr1/development/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.java On Monday, 13 August 2012 23:26:20 UTC-7, Krishna Veni wrote: Hi I have tried to develop expandable listview in android application.Now I have one doubts.How is creating 2 groups ion below my code for separate child details? For Eg: Group name: OrderInfo,CustomerInfo. Childname(OrderInfo):payment_method. Childname(CustomerInfo):name,email. How to do this?Please help me. this is my code: SimpleExpandableListAdapter expListAdapter = new SimpleExpandableListAdapter( this, createGroupList(), // Creating group List. R.layout.group_row, // Group item layout XML. new String[] { OrderInfo,CustomerInfo}, // the key of group item. new int[] { R.id.order,R.id.customer}, // ID of each group item.-Data under the key goes into this TextView. createChildList(), // childData describes second-level entries. R.layout.single_list_item, new String[] {KEY_ARTIST,KEY_DURATION,KEY_SUBTOTAL,KEY_DISCOUNT,KEY_COUPON,KEY_COST}, new int[] { R.id.payment_label,R.id.total_label,R.id.discount_label,R.id.discount_label,R.id.coupon_label,R.id.cost_label}// Keys in childData maps to display. ); setListAdapter( expListAdapter ); // setting the adapter in the list. }catch(Exception e){ System.out.println(E +++ + e.getMessage()); } } /* Creating the Hashmap for the row */ @SuppressWarnings(unchecked) private List createGroupList() { ArrayList result = new ArrayList(); for( int i = 0 ; i 1 ; ++i ) { // 15 groups HashMap m = new HashMap(); map.put( CustomerInfo,CustomerInfo); // the key and it's value. m.put( OrderInfo, OrderInfo); result.add( m); } return (List)result; } /* creatin the HashMap for the children */ @SuppressWarnings(unchecked) private List createChildList() { ArrayList result = new ArrayList(); for( int i = 0 ; i 1 ; ++i ) { // this -15 is the number of groups(Here it's fifteen) /* each group need each HashMap-Here for each group we have 3 subgroups */ ArrayList secList = new ArrayList(); for( int n = 0 ; n 1 ; n++ ) { HashMap child = new HashMap(); Intent in = getIntent(); String payment_method = in.getStringExtra(KEY_ARTIST); TextView lblPayment = (TextView) findViewById(R.id.payment_label); /// lblPayment.setText(payment_method); int payment; payment=1; String s= getIntent().getStringExtra(payment_method); String s1= getIntent().getStringExtra(total); String s2= getIntent().getStringExtra(subtotal); String s3= getIntent().getStringExtra(discount); String s4= getIntent().getStringExtra(coupon_discount); String s5= getIntent().getStringExtra(shipping_cost); child.put( KEY_ARTIST, s); child.put( KEY_DURATION, s1); child.put( KEY_SUBTOTAL, s2); child.put( KEY_DISCOUNT, s3); child.put( KEY_COUPON, s4); child.put( KEY_COST, s5); secList.add( child); } result.add( secList ); } return result; } Here my above code is not worked.So please help me I have to change what line. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to allow Landscape mode on Transparent / Translucent Activities?
I am only using a small part of the screen, like an ActionBar strip at the top. I don't know what to put in the remaining space, so I tried using the translucent theme to fill it in. But from the responses, I assume there is no way to dynamically remove this translucent flag, to allow landscape mode. On Aug 15, 1:32 am, Dianne Hackborn hack...@android.com wrote: Why are you making your activity translucent? If this is to allow the launcher to be seen through behind it, you shouldn't let the screen rotate if the launcher doesn't want it to -- the launcher has locked the rotation because it doesn't want to be rotated. If you actually are drawing everything in your activity so the launcher can't be seen, then why are you using the translucent theme? On Tue, Aug 14, 2012 at 2:47 PM, I.E. inib...@gmail.com wrote: Suppose I have an Activity that uses the transparent theme: android:theme=@android:style/Theme.Translucent in the AndroidManifest.xml. When my Activity is launched from the Home Screen, most commercial phones will lock it to Portrait mode only. This is probably because the Home Screen only runs in Portrait mode, and applying the Translucent theme to my Activity makes it also lock to Portrait mode. But I would like to run my Activity in Landscape mode as well. Is this possible? For example, is there a way to dynamically remove the Translucent flag when a landscape orientation change is detected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en