[android-developers] Underline of TextView

2009-03-23 Thread aby
Hi, Does anyone know how to set underline attribute on a TextView? I just see it can set bold and italic on TextView. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Can't touch on the screen when adding view in arrayadapter

2009-04-19 Thread aby
Hi, I want to add some views in each row of list view. When I add text view and image view in getView() of ArrayAdapter,it works. But after I add other kind of views (like Check Box and Image Button...), I can't select the list row touching down screen directly, I only can select by key down,

[android-developers] Can't touch on the screen when adding view in arrayadapte

2009-04-19 Thread aby
Hi, I want to add some views in each row of list view. When I add text view and image view in getView() of ArrayAdapter,it works.But after I add other kind of views (like Check Box and Image Button...),I can't select the list row touching down screen directly, I only can select by key down, up

[android-developers] Can't touch on the screen when adding view in arrayadapter

2009-04-22 Thread aby
Hi, I want to add some views in each row of list view. When I add text view and image view in getView() of ArrayAdapter,it works.But after I add other kind of views (like Check Box and Image Button...),I can't select the list row touching down screen directly, I only can select by key down, up

[android-developers] How to add audio file into a content provider?

2009-04-22 Thread aby
Hi, I want to add audio file to my content provider, but there are always having FileNotFoundException when reading the file uri My sample as below. please tell me if you have any suggestion, thanks! //set uri String path = getVoicePath(); // voice file path Uri voiceUri =

[android-developers] Why corsor need to call setNotificationUri when query from content provider?

2009-04-22 Thread aby
In the sample code of android developer http://developer.android.com/reference/android/content/ContentProvider.html When query the content provider, the cursor in query () call setNotificationUri(getContext().getContentResolver(), uri). But the query is a read-data action, it doesn't need to

[android-developers] How to add app calendar on the G1 emulator?

2009-02-05 Thread aby
When I push app calendar button in emulator button by android 1.5, it can't display anything. Does anyone knows how to install the google calendar on the G1 emulator? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] MediaRecorder reset() runtime exception

2009-03-09 Thread aby
Hi, There are always runtime exceptions about reset() method when I tried to finish a audio record operation and start to record new one. The procedure in my code as follows: MediaRecorder mRecorder = new MediaRecorder(); //begin to record mRecorder.prepare(); mRecorder.start();

[android-developers] Release screen on wake lock problem

2009-09-15 Thread aby
Hi, When I use wake lock to screen at the specific time on the device as follows code. sScreenWakeLock = pm.newWakeLock( PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE, Log.LOGTAG); But

[android-developers] How to know software keyboard is on screen or not?

2009-08-25 Thread aby
Hi, Does anyone knows how to know current software keyboard is on screen or not in program? 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] Can’t skip account setting in GoogleLoginServiceHelper.getCredentials

2009-08-27 Thread aby
Hi, I use GoogleLoginServiceHelper.getCredentials in my activity. There are three buttons (Create, Sing in and Skip) in account setting page. When I click skip button and click next, it will change to some pages and the back to the account setting page but only have Create and Sing in buttons. It

[android-developers] How to determine a resource string is existing or not

2009-05-18 Thread aby
Hi, I want to determine a resource string is existing or not. Because other programs in my system will build this string, I need to check the string building is success or not. If fail, I would replace this string as other string. For example, if I want to get R.build.buildid String updated; if

[android-developers] How can I get current SDK version in my program code ?

2009-05-18 Thread aby
Hi, Can I get current SDK version (like 1.0 or 1.5)in the program code? I try to use the PackageInfo way like: http://groups.google.com/group/android-developers/browse_thread/thread/2512093fd268e1d/774a0f0c30bd05a3?lnk=gstq=to+goet+sdk#774a0f0c30bd05a3 but it only can supply my application

[android-developers] Disable specific alarm but disable all alarm

2009-05-25 Thread aby
Hi, I want to disable a specific alarm set from my program, but it would disable all alarms when I disable one of them every time. My code is as follows, Intent AlarmIntent = new Intent(context, AlarmRingtoneReceiver.class); AlarmIntent.putExtra(taskId, taskId); AlarmIntent.putExtra(alarmId,

[android-developers] How to detect current screen is vertical or horizontal?

2009-06-03 Thread aby
Hi, I need to set different content view after rotating device screen. Is there any method to detect the direction of current screen is vertical or horizontal?Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Cannot find provider package when using ProviderTestCase2 to test

2009-06-08 Thread aby
hi, I want to build a test program to test my content provider. The steps as follows: 1.Create project and modify Matifest file instrumentation android:name=android.test.InstrumentationTestRunner android:targetPackage=com.android.abc.providers

[android-developers] How to connect content provider in ProviderTestCase2 class?

2009-06-09 Thread aby
Hi, I try to build a class which extends ProviderTestCase2 to test my content provider. But I don't know how to connect my content provider and also don't find any document about this case. In CalendarProviderTest, they create a Mock Provider and use mResolver = getMockContentResolver();

[android-developers] What is providerAuthority in constructor of ProviderTestCase2?

2009-06-09 Thread aby
Hi, There is a parameter providerAuthority in ProviderTestCase2 constructor. Does anyone know what is the providerAuthority means?Is the content uri of the provider?Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Huge quert and sorting update of content provider

2009-06-14 Thread aby
Hi, I implement ProviderTestCase2 to test my content provider functions. And when I insert huge number (about 1) of data, the insert, delete and update functions are fine. But the query function will have SQLiteDiskIOOException: disk I/O error. And the data number limit of causing the

[android-developers] Get current locale

2009-06-15 Thread aby
Hi, Does anyone know how to get current locale in program? 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

[android-developers] How to cancel google account in the device?

2009-06-15 Thread aby
Hi, Is there any way to cancel Google account already set on the device? 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] How to unable HOME KEY when executing?

2009-06-16 Thread aby
Hi, Dose anyone know how to unable HOME KEY when program is executing? 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] How to set category of manifest file in program?

2009-06-16 Thread aby
Hi, I want my program only run on the first boot. So I need to close the category android:name=android.intent.category.HOME / setting function of manifest file after using. Can I handle this problem in program? Thanks! --~--~-~--~~~---~--~~ You received this

[android-developers] How to change activity priority in program forever?

2009-06-16 Thread aby
Hi, I know Android can set activity priority in manifest file by add “android:priority = 1” in intent filter attribute and also can change as 0 by setPriority(0) of IntentFilter. But I need it can change as 0 forever. Is there any way to solve this problem? Thanks

[android-developers] Determine first run

2009-06-16 Thread aby
Hi, How to distinguish Android is first run or not after booting device? 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] Determine system first run

2009-06-16 Thread aby
Hi, How to distinguish android system is first run or not after booting device? I want to add OOBE program in my device. Does android support this function? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Check during communication or not

2009-06-17 Thread aby
Hi, how to check phone is during communication or not in the program? 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] Get all package names

2009-06-30 Thread aby
Hi, Is there any method to get all android package name? 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

[android-developers] How to get audio file from SD card?

2009-07-06 Thread aby
Hi, I want to use intent = new Intent (RingtoneManager.ACTION_RINGTONE_PICKER) way to show all audio files and select audio file. And I need to include audio files from SD card. Is there any way to get the audio form SD card? Thanks --~--~-~--~~~---~--~~ You

[android-developers] get the HTML Code in Android WebView

2011-06-01 Thread aby
Hello Everyone, I have created a webview and i want to get the html code behind this page. Is there any way i can extract the HTML code or any specific tags in Android? Thanks, Aby -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Upload image to server

2011-06-02 Thread aby
Hello everyone, I want to implement upload image to server. So that i can upload image on facebook using that URL. Is there any examples available? Thanks, aby -- You received this message because you are subscribed to the Google Groups Android Developers group. To post