[android-developers] Android how to run adb commands programatically ?

2013-12-04 Thread 12169
Hi, I run adb command on the cmd ( adb shell getevent ) and found the list of the devices. but how i can run these command programatically ? and check there corresponding output. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Align text right side in spinner

2013-12-04 Thread sree android
Hi, i want display text right side, inside spinner.my code is Spinner android:id=@+id/leaveTypeSpinner android:layout_width=match_parent android:layout_height=wrap_content android:layout_gravity=right android:layout_margin=5dp

[android-developers] Gridview items not aligning to top, but align in order of scroll...

2013-12-04 Thread Russell Wheeler
I have a gridview with items of a custom view. The custom view is a relative layout with an image at the top and 3 textviews underneath. One or two of the textviews can possibly wrap onto 2-3 lines depending on the values. When I scroll down through my grid this works as I'd like, with the

[android-developers] AIDL files and Android.mk

2013-12-04 Thread gallagth
I'm trying to build my app as a system app so I added the sources to aosp. I'm having troubles with AIDL files, related to the project structure. Here is the relevant part of the project's structure src --main Android.mk aidl --com/master/android IDialCallback.aidl

[android-developers] Android USB API does not work on all devices

2013-12-04 Thread Aleksandr Konstantinov
Hello all, I'm developing application which talks to MTP devices connected to Android device. Initially I was testing it on Asus Transformer TF101 and it worked as expected. Now I decided to test it on other tablet, namely OVO Air. Both are Android 4.0.x devices and OVO Air has OTG

Re: [android-developers] How to call from Android Native Dialers, ignore other dialers

2013-12-04 Thread Iqbal Ahmed
Hi Mr. Piren, Thanks for your helpful suggestion, I will consider your suggestion in future. But how can we achieve these native dialer things. if you have any sample code to do this task please share with us . On 4 December 2013 13:13, Piren gpi...@gmail.com wrote: Although i agree with

Re: [android-developers] How to call from Android Native Dialers, ignore other dialers

2013-12-04 Thread Piren
That i do not know... I wouldn't do it myself as android is designed to allow that selection and bypassing it at the moment will be a hack. If anything i wish there was an API to do that since i got stuck in a similar situation... Personally i think that hijacking the dial-out is horrible, if

Re: [android-developers] How to call from Android Native Dialers, ignore other dialers

2013-12-04 Thread Asheesh Arya
*At first I thought we would just be friends. A little did we know, our friendship would bend To a love that’s so big for the world to see that you and me are meant to be. Sun or snow, rain or shine forever, forever you will be mine Mine for me, mine to be Mine for all eternity. * On Wed, Dec 4,

[android-developers] Get E-164 format of contacts in Android API less than 16

2013-12-04 Thread Rahul Shukla
I retrieve the list of contact numbers from the phone using the following code: Cursor c = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null); while(c.moveToNext()){ Log.d(TAG,NO.: +

[android-developers] How to refresh icons ?

2013-12-04 Thread Brakkar
Hi, how can the end user force refresh android desktop icons, I think he must force close the launcher, but can't find 'launcher' app on some devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] BLE support in Android

2013-12-04 Thread Ken
On Tuesday, December 3, 2013 10:28:47 AM UTC-5, MagouyaWare wrote: The S3 isn't even running Android 4.3. Actually, my T-Mobile S3 is running 4.3...got it as an OTA install a little less than a month ago :-) Haven't tried it w/ a BLE device yet though it supports their Galaxy Health

Re: [android-developers] BLE support in Android

2013-12-04 Thread Justin Anderson
Cool. You are the first person I've heard that is running 4.3... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Dec 4, 2013 at 1:30 PM, Ken kenk...@gmail.com wrote: On Tuesday, December 3, 2013 10:28:47 AM UTC-5, MagouyaWare wrote: The S3

Re: [android-developers] Align text right side in spinner

2013-12-04 Thread TreKing
On Wed, Dec 4, 2013 at 5:37 AM, sree android android.sreeni...@gmail.comwrote: i want display text right side, inside spinner. Create an ArrayAdapter with custom layouts for the view and drop down view how you want it (right-aligned) and then set that on the Spinner.

[android-developers] Build Tools 19 no good. How to downgrade?

2013-12-04 Thread Nathan
Apparently, Build tools version 19 is broken. https://code.google.com/p/android/issues/detail?id=61710 None of the workarounds worked for me. I tried uninstalling Build Tools 19. Obviously that wasn't the proper way. Now it can't find any build tools. Error executing aapt. Please check

[android-developers] Re: Build Tools 19 no good. How to downgrade?

2013-12-04 Thread Jonathan S
Did you check build.gradle for buildToolsVersion? On Wednesday, December 4, 2013 8:41:16 PM UTC-5, Nathan wrote: Apparently, Build tools version 19 is broken. https://code.google.com/p/android/issues/detail?id=61710 None of the workarounds worked for me. I tried uninstalling Build

[android-developers] Re: image not coming proper some times lazy loading grid view

2013-12-04 Thread Streets Of Boston
Not sure if this would work, but may be worth a try: Before you close the FileOutputStream 'fs', have you tried to call fs.getFD(),sync() ? On Wednesday, December 4, 2013 3:00:43 AM UTC-5, Amit Mangal wrote: Hi there, i am loading images on grid view using lazy loading from network. problem

[android-developers] Re: Build Tools 19 no good. How to downgrade?

2013-12-04 Thread Nathan
On Wednesday, December 4, 2013 6:37:54 PM UTC-8, Jonathan S wrote: Did you check build.gradle for buildToolsVersion? I've never gotten all the way through import on Studio. It hangs, or throws up an error about the android projects not finding a library project. The following line in