[android-developers] How to monitor the operation result of the non-dynamically requested USB permission popup

2021-03-25 Thread wei qin
Configure the following in the AndroidManifest.xml file to automatically pop up the USB permission request box. How can I monitor the operation result of this request box, or how can I prevent this pop-up box from popping up? -- You received this message because you are subscribed to

[android-developers] Can't add in app product in Google Play Console

2017-08-01 Thread Wei Liu
I'm testing in-app-billing API with my app. I've published the app in alpha channel. However, I wasn't able to add any in-app product in Google Play Console. The error says "The in-app product could not be saved. Please check the form for errors." but I don't know where to find the form and the

[android-developers] A survey on compatibility issues caused by Android fragmentation

2016-12-01 Thread Lili Wei
nnaire with the link: https://goo.gl/forms/9WRRINcFQqPvQaRB2 Your response will only be used for research purpose. Thanks a lot! Lili Wei -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop recei

[android-developers] Nexus 5X can not function well after flashing

2016-02-24 Thread wei yan
it become OK. What's the issue with my build procedure? I downloaded the branch android-6.0.1_r10 (MMB29P) which I suppose support Nexus 5X. Then ./build/envsetup.sh lunch asp_bullhead-userdebug make -j8 fastboot -w flashall Thanks in advance Regards Wei -- You received this message b

[android-developers] GuidedStepFragment NPE error in SupportLibrary23.1.1

2015-12-23 Thread Huang Wei
Does anyone meet this problem when quit from an activity contains GuidedStepFragment, it crashes due to an NPE: E/AndroidRuntime(13363): java.lang.NullPointerException: Attempt to read from field 'int android.app.Fragment.mContainerId' on a null object reference E/AndroidRuntime(13363):

[android-developers] how to customize http "accept:" header on webview

2015-12-14 Thread li wei
Hi All, Our image server is supporting convert image from jpge to webp, but we need to add "Accept: image/webp" header on the image request to let server know the client supports Webp format image. But on Android View, the default Header is "Accept: */*", how to add header "Accept: image/webp"

[android-developers] android-sdk dose not running on win8

2012-08-30 Thread Wei Hao
I installed win8 yesterday, and of course I setup android sdk immediately. But it cannot run. After double-click it SDK.exe or AVD.exe, it activates a cmd window and disappear right away. That is all. it was not running.T_T . who knows how to solve this issue? -- You received this message

[android-developers] what's layout-sw680dp-w1000dp means?

2012-04-17 Thread wei li
Hi All, I am research android 4.0.3 contacts code. and find some layout directory such as layout-sw680dp-w1000dp. i know layout-sw680dp means at least width or height is high than 680dp. but i confused about layout-sw680dp-w1000dp. who can help explain it? or tell me where to get related

Re: [android-developers] What is the best development strategy?

2012-04-02 Thread Wei,Wu
minSkdVersion is just for indicate your application supporting min sdk version, i think it is not a problem. Example: you develop a APK using front facing camera, and you setting minsdkversion to 1.6, you should check the hardware support in your application, if it support, use the front facing

[android-developers] Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found

2012-01-11 Thread Wei Chen
Hi, Today as I try to use the /tools/android.bat to update the Android components I got error as shown in title. Though I've forced the https to http and set the proxy. Who could help? Many thanks.- -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Newbie question about SimpleAdapter and ViewBinder

2011-09-26 Thread Chen Ming Wei
The methods I used for my major project is to get the values from another string array, an example: [The coding may be wrong as I currently don't have a eclipse software to debug]

[android-developers] Re: display one view from 2 different activity

2011-09-26 Thread Chen Ming Wei
from my understanding, you wouldn't want duplicated codes of the date view? how about writing them in a date picker class file, so whenever you using date view you can simply call the date picker class to get the value for display, does this answered your question? -- You received this

Re: [android-developers] Re: Overlay text and live video in Android

2011-08-24 Thread James (Wei-Jie) He
The text data is pulling from Bluetooth and it needs to be saved (merged) into saved video file. Can I save the TextView data into the video file? On Wed, Aug 24, 2011 at 11:29 AM, Drezden mmjohns...@gmail.com wrote: Can't you just use a RelativeLayout and place a TextView on top of the

[android-developers] non-stripped file for symbol-based profiling

2011-08-11 Thread Hung-wei Yang
Hello, I am try to use OProfile on android platforms. I find out the images on the target board are stripped. Is it normal for getting symbol- based summaries? Thanks a lot for any reply. BR, HW -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] How can I extends InputMethodService and using its feature without setting system keyboard?

2011-06-09 Thread Wei Zhao
Hi all, I'm using SoftKeyboard to simulate some KeyEvents to application. Everything is done after I had set the system keyboard (LatinKeyboard) in Setting screen. But I don't want to do this Settings action. I want to run emulator with default setting. If I don't set the LatinKeyboard in

[android-developers] how to geting start android NFC program

2011-06-03 Thread wei-te
i have already go through ( http://developer.android.com/guide/topics/nfc/index.html ) but i still have no idea and i face some error that i can't solve could somebody give me some websites or tutorial to help me have some sense about programming NFC on android -- You received this message

[android-developers] A question about Failed to fetch URL https://dl-ssl.google.com/android/repository/re...

2011-02-23 Thread Wei Chen
timed out: connect But I can open the xml-file in Browser. Can someone help? Regards Wei -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Can't download Honeycom Preview

2011-01-31 Thread Chih-Wei
Downloading SDK Platform Android Honeycomb Preview, revision 1 File not found: https://dl-ssl.google.com/android/repository/android-3.0_pre_r01-linux.zip Any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: Best way to schedule a task?

2011-01-18 Thread liu wei
I think you bind the service . With AIdL UI communicate with service .use Timer and TimerTask. . 2011/1/17 Sergio Luceno slucen...@gmail.com Ohh thanks, i thought that Timer + Handler will open a new thread instead of be on the main UI thread. So, i can combine a timer + handler +

Re: [android-developers] what to do with Only the original thread that created a view hierarchy can touch its views?

2011-01-03 Thread goodwin wei
Hi Mark, I am back. I forgot this thread here. using your suggestion, i choose using AsyncTask and implement onPostExecute(). Iam very happy It works well. but I write an inner class that extends AsyncTash to use findViewById. can i wirte a non-inner class to get the TextView to setText()? On

[android-developers] Re: sending c2dm: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found.

2010-09-09 Thread Wei Hsu
I am getting the same error as you when sending a POST to https://android.apis.google.com/c2dm/send: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found. Can you update me if you've found a solution? Thanks, Wei On Aug 12, 1:39 pm

[android-developers] how to use https connection

2010-08-23 Thread Barry Wei
hi all i have tested for some time that i found a problem. i used a https connection and it's perfectly work in my swing app,but it's can not connect to server while i use it on emulator. i also try to use TrustManager and HostnameVerifier that returns always true,but it still don't work.

Re: [android-developers] Re: Eclipse shows error, but no error found

2010-05-24 Thread hao wei
I have the problem too. And I tried to delete the marker then run it. The msg of console is Could not find .apk file. 2010/5/22 Ken H hunt1...@gmail.com Ok, I opened a Window Show views Problems, and it said something about an Unparsed aapt error(s)!... whatever the devil that is. So I

[android-developers] How to use my own sqlite database, LOG.E show the java.lang.Error: Error copying database message.

2010-03-15 Thread wei diaoxiang
I have a sqlite database, and i put this file in assets folder. The code like below, Pls help and tell what's wrong in this code, How to use my own sqlite database. public class DataBaseHelper extends SQLiteOpenHelper { private static String DB_PATH = /data/data/com.SGMalls/databases/;

[android-developers] bitmap size exceeds VM budget

2010-03-01 Thread wei yan
is trying to decode an uncompressed version of a big image(in my situation, jpg). I can use BitmapFactory.Options.inSampleSize to fix it. but my question is what's the maximum size that VM would like to allocate for loading a image with BitmapFactory? so I can do some scale before it loads. thanks wei

[android-developers] china government blocks google groups,what should we do ?

2010-01-17 Thread Barry Wei
as you've known all, it's hard for us(here in china) go online via this network. we have to use a proxy or change url to visit android groups. is there any way to get this easier? or you have provide ultimate way to ? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Background Service is not working.

2009-11-25 Thread Wei Jian
Hi all, thx for the reply. i'm trying the localService and the LocalServiceController sample code now. As in the sample code LocalService, i get this log LocalServiceController]ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1000

[android-developers] Re: Background Service is not working.

2009-11-25 Thread Wei Jian
Problem Solved. It was the SDK version problem. Thanks all. On Nov 25, 4:15 pm, Wei Jian weijia...@gmail.com wrote: Hi all, thx for the reply. i'm trying the localService and the LocalServiceController sample code now. As in the sample code LocalService, i get this log LocalServiceController

[android-developers] Re: Permission denial

2009-11-25 Thread Wei Jian
Problem solved..mine was the API version problem. Thanks. On Nov 25, 3:50 pm, Wei Jian weijia...@gmail.com wrote: Hi all...i'm getting the similar problem..the log says LocalServiceController]ActivityManager: java.lang.SecurityException:PermissionDenial: starting Intent { flg=0x1000 cmp

[android-developers] Background Service is not working.

2009-11-24 Thread Wei Jian
Hello. i wish to use implement Service in my application to display a message on the screen. This service should run while my application is running. But right now, i just want to test the service function and the Service doesn't seem to work well. In the main java file, i call startService(new

[android-developers] Re: Permission denial

2009-11-24 Thread Wei Jian
Hi all...i'm getting the similar problem..the log says LocalServiceController]ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1000 cmp=com.example.android.apis/.LocalServiceController } from null (pid=-1, uid=-1) requires

[android-developers] Lyrics Synchronization on audio using MediaPlayer class

2009-11-19 Thread Wei Jian
Hello, had anyone successfully did Lyrics Synchronization on Android? For example, display the lyrics while the song is playing? Can someone give me some idea how to do this? Please...I need help!!! -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Sample code MediaPlayerDemo_Audio.java, Application Stopped Unexpectedly

2009-11-09 Thread Wei Jian
Can anyone help me with this? The code seems no problem when i run it, but it stop unexpectedly in the emulator. I read some answer in the forum, i has to look at the logcat to see about the exception handler. But i do not really understand the logcat output. Please, developers, help me!. Below

[android-developers] MediaPlayerDemo_Audio.java

2009-11-09 Thread Wei Jian
i was trying to run this sample code provided at android website. but the emulator stated stop unexpectedly. Can anyone help me with this? This is the output of the logcatcan anyone help me to check where is the problem? please 11-08 02:50:25.614: INFO/vold(538): Android Volume

[android-developers] How does ImageView just redraw part of its content when invalidate(Rect) is called?

2009-11-09 Thread Wei
Hi, guys I am new to Android development, just reading docs and trying the APIs. I am quit confused how ImageView managed to draw just a part of its content after an invalidate(Rect) invocation. I've checked ImageView.java, found no other drawing method except onDraw(Canvas), but onDraw(Canvas)

[android-developers] How does ImageView just redraw part of its content when invalidate(Rect) is called?

2009-11-09 Thread Wei
Hi, guys I am new to Android development, just reading docs and trying the APIs. I am quit confused how ImageView managed to draw just a part of its content after an invalidate(Rect) invocation. I've checked ImageView.java, found no other drawing method except onDraw(Canvas), but onDraw(Canvas)

[android-developers] question on media.audio_policy

2009-11-09 Thread wei zou
Hi Expert, I'm bringing up a board running with andriod. I have problem to start the /system/bin/app_process. By looking at the /dev/log/main, I see the system is spin at ServiceManager: ServiceManagerWaiting for sevice media.audio_policy... AudioSystemAudioPolicyService not

[android-developers] Re: How to solve the error: This attribute must be localized

2009-10-01 Thread Chih-Wei
Anybody could give me a hint? Why this attribute must be localized must be an error? Can't it just be a warning? On 10月1日, 上午9時55分, Chih-Wei cwhu...@linux.org.tw wrote: Hi, I'm trying to compile an app via Android 1.6, and got errors shown below. It said some strings in TextView and Button

[android-developers] Discussion on localizing-android-apps-draft

2009-10-01 Thread Chih-Wei
I have two questions about localization. First, can I control which strings should to be localized and which shouldn't be? I asked this question since it complains when some strings are not set to be localized in class TextView and Button (at least I noticed). I don't believe I have to localize

[android-developers] How to solve the error: This attribute must be localized

2009-09-30 Thread Chih-Wei
Hi, I'm trying to compile an app via Android 1.6, and got errors shown below. It said some strings in TextView and Button are not localized. I know how to fix them. It's easy to add them to strings.xml. But I still doubt why I need to localize every string. I don't think the strings like '1024'

[android-developers] how to set layout .xml file to a new Activity ?

2009-08-18 Thread Barry Wei
hi,all. i created a new Activity. and created a new layout file under res/ layout . after this,i also want to add a options menu file under res/menu. but how could i bind all these layout file with this Activity ? i can't find any info in manifest file. or i missed it? please,help. thinks a

[android-developers] Re: how to set layout .xml file to a new Activity ?

2009-08-18 Thread Barry Wei
yeah,thanks for that. i really did it via onCreate and onCreateOptionsMenu ,and they both work fine. On Aug 18, 4:07 pm, String sterling.ud...@googlemail.com wrote: On Aug 18, 6:27 am, Barry Wei barat...@gmail.com wrote: i created a new Activity. and created a new layout file under res

[android-developers] Re: Does Android support detection of clicking on right/left button of a mouse

2009-08-17 Thread Barry Wei
it's call a Long Click i think you could search about this via net. also, there's something about this at android dev guide. On Aug 17, 4:13 pm, dinh minh nguyen nguyendinhm...@gmail.com wrote: Hi guys, I want to write an Android application using a mouse (like the way that Windows

[android-developers] Re: How do I use FileObservor ?

2009-08-16 Thread Barry Wei
maybe this FileObservor class is empty. i found many of these class empty in Android sdk. my advice is ,my friend,u should download android source and javac them for urself. that may helps. On Aug 17, 8:50 am, Mapara,Harshit Nitinkumar hnmap...@gmail.com wrote: Hi All, I want to observ file

[android-developers] any development book for new guy?

2009-08-14 Thread Barry Wei
could anyone send me some e-book about develop android application? thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Why force java 1.5?

2009-07-27 Thread Chih-Wei
Recently the build system will check if java version is 1.5, and stop if the version mismatch. I'm unhappy with such unnecessary checking. My system is Fedora 11, I can use its default java compiler, openjdk 1.6, to compile Android without problem. In fact I just removed the unnecessary

[android-developers] with android sdk 1.5, i got a problem.

2009-06-26 Thread wan wei
I am fail to install my apk file on device, in the logcat it show error message: 01-28 01:41:22.944: ERROR/PackageManager(958): Package test.android.media has no signatures that match those in shared user android.media; ignoring! 01-28 01:41:22.944: WARN/PackageManager(958): Package couldn't be

[android-developers] Re: Emulator Camera Issues in 1.5

2009-05-06 Thread Chih-Wei
I have the same issue with 1.5 SDK. Screen goes blak and camera app times out. I traced into the code onCreate at Camera.java try { openCameraThread.join(); loadServiceThread.join(); } catch (InterruptedException ex) { } It seems that

[android-developers] How to programable send multi-attachment in an email

2009-04-29 Thread Mike Wei
How to programable send multi-attachment in an email --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: How to Import Android Package Default Projects to Eclipse

2009-04-27 Thread Chih-Wei
You should use 'New' - 'Android Project' and select 'Create project from exist source', then choose the directory that contains AndroidManifest.xml, like the one you gave. On 4月27日, 下午6時05分, raj.10788 raj.10...@gmail.com wrote: Hi All, Can anyone tell me how to import the Android Default

[android-developers] Emulator power off immediately

2009-04-23 Thread Chih-Wei
Hello, I just do repo sync and recompile the whole tree again. When I start the emulator, it showed the android logo, and then a window 'Power Off shutting down' is shown. Then the emulator window has no any response to any input. Strange... I remember I can run the emulator correctly yesterday

[android-developers] Re: how to get the first frame of a video file ?

2009-04-08 Thread Wei
Hi Dave, I can build the AP in cupcake \packages\apps folder. But I still want to build the AP in eclipse. Is any way to do that? -wei On 4月6日, 上午9時54分, Wei twc0...@gmail.com wrote: Hi Dave, Are you meaning I can not use this class in my own application

[android-developers] Re: how to get the first frame of a video file ?

2009-04-05 Thread Wei
Hi Dave, Are you meaning I can not use this class in my own application? But in MediaPlayerPerformance.java(framework folder), it can import MediaMetadataRetriever. Is any lib I need to load or ? Please give me some hint - wei --~--~-~--~~~---~--~~ You

[android-developers] Re: how to get the first frame of a video file ?

2009-04-02 Thread Wei
. Thanks~~ -wei On 3月8日, 上午2時29分, Dave Sparks davidspa...@android.com wrote: No, we're just adding support for extracting a static thumbnail. What is your use case? Where does the video stream come from? On Mar 5, 2:06 pm, elcadar mogrif...@gmail.com wrote: Will you be able to extract

[android-developers] setTextFilterEnabled(true) and onKeyDown

2009-01-13 Thread Mike Wei
1. write a activity extends ListAcitivity. set a ResourceCursorAdapter. 2. set getListView().setTextFilterEnabled(). 3. write override mothed onKeydown(). Problem. when I typo letter, what's will happen? is ResourceCursorAdapter.getFilter() or onKeydown?

[android-developers] http-proxy does not work on emulator when i use the build of master branch with cupcake changes

2009-01-07 Thread Li Wei (Vincent)
Hi, I made a full build of the latest master branch(including cupcake changes), and then make sdk and run emulator with -http-proxy option under tools directory(also have -vm to specify android virtual machine). but seems I cannot access to internet behind proxy, is there anyone else ran into the

[android-developers] youtube player question

2008-12-11 Thread Wei
in the android emulator? ~ Wei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: youtube player question

2008-12-11 Thread Wei
. It looks work fine in G1 device. G1 should use opencore SW codec to play mpeg4 file. So, the question is why the performance is such different? ~ wei On 12月12日, 上午3時22分, Dave Sparks davidspa...@android.com wrote: Do you really meanYouTubeplayer, or are you referring to the media player

[android-developers] Question: How to access to the contact information

2008-12-03 Thread wei zou
Experts, I try to retrieve the contact information from android.provider.Contacts.People.CONTENT_URI in my Activity application. However, the query always gives me error. Any idea why? The code is like: String[] projection = new String[] {

[android-developers] Re: Web App

2008-11-09 Thread Wei-Meng Lee
Hi Jamie: You might want to checkout this article: http://www.devx.com/wireless/Article/39810 Wei-Meng Lee http://www.learn2develop.net/ On Nov 8, 9:53 pm, Jamie [EMAIL PROTECTED] wrote: Fellow Android Devs, Im new to android!!  wondering where I might start (after the intro tutorials

[android-developers] Location based services using CellID

2008-11-02 Thread Wei-Meng Lee
(); cellid = location.getCid(); lac = location.getLac(); Also, how do I obtain the MNC and MCC? Thanks! Wei-Meng --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Jabber / XMPP Room for Android Developers Group

2008-09-01 Thread wei
Hi all, fellow Android developers, i suggest we have Jabber / XMMP room for live discussion about Android. According to Jabber / XMMP it self was being developed for that purposes, advancing forum technique from passive to active discussion. Thank you and fellow developers and group admins might

[android-developers] How to access DRM protected files?

2008-06-17 Thread Wei Yongqiang
Hi, As I have known, we can access Forward locked drm files using Drm provider. but till now, the drm provider can support Forward locked. Then I want to know how to save Combined drm files and Separate delivery drm files and how to access to them? From the view of the sdk's user point, we have

[android-developers] Re: How to display these String?

2008-05-07 Thread Wei Yongqiang
Hi all, I create some files in my sdcard with Chinese names. I have develop an app to display these file names, but these names can not be displayed correctly. I use TextView to display these names. Anyone have idea for this issue? Thanks. Wei Yongqiang

[android-developers] How to create my own menu?

2008-04-20 Thread Wei Yongqiang
Hi all, I want to create my menu. When I press one button, this menu will appear on the screen's specific position. There are two types of menus, context menu and option menu. but I want one general menu, which I can place it anywhere and also can customize the width of the menu. Anyone can

[android-developers] how to get one row's Uri in one SQLite table?

2008-04-17 Thread Wei Yongqiang
Hi all, I want to get one row's Uri in the database table. Anyone can help me? Thanks. Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Is there a API implementing a multi-selected list views?

2008-03-25 Thread Wei Yongqiang
Hi all, I want to know if there is a API that have implemented a multi-selected list views. I am developing a File Manager, and I need a list view where I can select several items other than only one. Many thanks. Frank, Wei --~--~-~--~~~---~--~~ You