[android-developers] How to serve streaming data via ContentProvider?

2011-09-06 Thread Alex Xin
Hello Experts, We now need to implement a custom ContentProvider to serve streaming data from local wifi network connection, those data will be used by other apps like a media player. But we found that current ContentProvider only support serving database table data or local files, are there any

[android-developers] Optional permissions

2011-08-24 Thread Alex Xin
Hello experts, I have a app that could use NFC as one of the communication methods. Bu that is optionally, users still could use other alternative ways to communicate. To use NFC my app needs to add permission android.permission.NFC on my manifest.xml file. But if I do this I believe that users

[android-developers] Re: Optional permissions

2011-08-24 Thread Alex Xin
, 2011 at 8:40 PM, Alex Xin xinxi...@gmail.com wrote: Hello experts, I have a app that could use NFC as one of the communication methods. Bu that is optionally, users still could use other alternative ways to communicate. To use NFC my app needs to add permission android.permission.NFC on my

[android-developers] Re: Many apps disappeared in Android Market this morning

2011-06-04 Thread Alex Xin
Our app disappears in Android Market in China. We found that Adobe Reader and many more apps also disappears. I write to Google for help but they said that Android Market is running well and has no problems Alex On May 17, 9:06 am, john huang john.h...@gmail.com wrote: It's all fine several

Re: [android-developers] Re: Free app's visibility in Android Market problem

2011-05-17 Thread Alex Xin
I'm from China and seems that Google removes some popular free apps availability in China. It's stupid! On 5/17/11, Zsolt Vasvari zvasv...@gmail.com wrote: So does anyone has the same issue? No, actually I just stopped offering the free version of my app now that the Market is in all the

[android-developers] Free app's visibility in Android Market problem

2011-05-16 Thread Alex Xin
Hi, Today I found that my app doesn't appear in Android Market as normal, I cannot found it any more. Firstly I thought that there must be something wrong with my app, but when I sign to the developer console website, I found that my app's status is Published. I then try to find another device

[android-developers] Android Market question: Why there's no related applications shown for my app on the market?

2011-02-01 Thread Alex Xin
Hi, I have an app listed on Android Market, those days I noticed that the download times per day is decreasing very fast, so I started to find why, I found that there's no related applications for my app now. On related section of my app on the market, I saw a message said that Android Market

Re: [android-developers] Android Market question: Why there's no related applications shown for my app on the market?

2011-02-01 Thread Alex Xin
I tried to write a support email to Google then I received a reply told me that the related apps is depends on some factors. It's useless for me because I never changes my app's description or something like that. On Wed, Feb 2, 2011 at 5:04 AM, TreKing treking...@gmail.com wrote: On Tue, Feb

[android-developers] How to start media player to play HTTP stream?

2011-01-10 Thread Alex Xin
Hi, I want to use Media Player to play a file which stored on HTTP server, I use following code to play it, but the browser came up and then the browser start the media player to play the file. Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse( http://domain.name/test.mp4;)); startActivity(i);

[android-developers] Comments lost in the developer console and market app

2011-01-06 Thread Alex Xin
Hi, I don't know why, but some of my app comments lost in the developer console. I cannot find themAll comments after 2010/12/20 is lost. But it seems that comments total number is right. Does any body has the same problem? I also used Market to see my app's comments, same issue. Thanks,

[android-developers] Streaming MP3 from HTTP using MediaPlayer

2010-12-13 Thread Alex Xin
Hi, I'm trying to stream MP3 audio file from HTTP by using MediaPlayer class. I found only few of MP3 files could be played. Most of them cannot stream. MediaPlayer will go into Error state while trying to play. Here's my code: mp.reset(); try { mp.setDataSource(this, src_uri); } catch

[android-developers] How to get MAC address?

2010-11-23 Thread Alex Xin
Hi, guys I'd like to know how to get WIFI MAC address on Android system? Does anyone know how to do this? Thanks in advance! Alex -- 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 get notified when list view is displayed

2010-11-12 Thread Alex Xin
Hi, I have a list view with array adapter to show user some information that retrieved from Internet, As we all know reading data from Internet requires some time to finish, but if I try to read data on getView(), it means user must wait and he/she cannot see anything at that time, the screen is

[android-developers] Can not update app on the Market now

2010-11-03 Thread Alex Xin
Hi, guys I found that I cannot update my app now, today I found that market start to support Recent Changes feature, but when I want to use that feature, I found that I cannot update my app, the publish button is now a gray button. How about you? What's happened? thanks, -- You received this

[android-developers] Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread Alex Xin
Hi, I have an app that runs perfect on 2.2 and 2.2 but always getting VerifyError on 1.6 while startup, I don't think that my app cannot run under 1.6 because I don't call any APIs that don't support 1.6. I'm really confused, does anybody has the same issue? How do you solve this problem?

Re: [android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread Alex Xin
:549) 10-20 07:32:27.490: ERROR/AndroidRuntime(204): at dalvik.system.NativeStart.main(Native Method) On Wed, Oct 20, 2010 at 7:11 AM, fadden fad...@android.com wrote: On Oct 19, 2:25 am, Alex Xin xinxi...@gmail.com wrote: I have an app that runs perfect on 2.2 and 2.2 but always getting

Re: [android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread Alex Xin
available on API Level 5 or higher. Thank you all Alex On Wed, Oct 20, 2010 at 7:39 AM, DanH danhi...@ieee.org wrote: Right ***above*** the exception trace should be some arcane-looking messages with VFY in them. On Oct 19, 6:36 pm, Alex Xin xinxi...@gmail.com wrote: Hi, thanks for helping me

[android-developers] How to get notified when there's an incoming call or SMS?

2010-10-16 Thread Alex Xin
Hi, I'd like to implement a feature that monitors incoming calls and SMS, and blocks them if necessary. But I don't know how to capture such events, could someone tell me how to do that? Thank you very much. Alex -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Market app version question

2010-08-25 Thread Alex Xin
Hi, In fact I'm now implementing an app mgr, so I want to check all apps latest version that user installed on his/her phone. That's why I must login to Google server :) Thanks BRs, Alex On Wed, Aug 25, 2010 at 11:37 PM, { Devdroid } webnet.andr...@gmail.comwrote: Why you do not make your

Re: [android-developers] Re: Service start intent problem

2010-08-24 Thread Alex Xin
:35 am, Alex Xin xinxi...@gmail.com wrote: Hi, Frank I can give it a try. Above code snapshot works perfect and on my Android 1.6 based phone, but random FC on Nexus One. Alex On Thu, Aug 12, 2010 at 9:26 AM, Frank Weiss fewe...@gmail.com wrote: Does it FC when you use

Re: [android-developers] Market app version question

2010-08-24 Thread Alex Xin
server? Thanks On Mon, Aug 23, 2010 at 9:52 PM, { Devdroid } webnet.andr...@gmail.comwrote: On 23 August 2010 15:41, Alex Xin xinxi...@gmail.com wrote: oh, sorry for my poor English, I mean, if I know a app's package name and that app is listed on Android Market, are there any ways I can get its

Re: [android-developers] Market app version question

2010-08-23 Thread Alex Xin
: On Sun, Aug 22, 2010 at 11:49 PM, Alex Xin xinxi...@gmail.com wrote: Are there any ways I could use to get the installed app's latest version from Market? Just like some version tracking app. Can you elaborate? I'm not quite sure what you're asking

[android-developers] Market app version question

2010-08-22 Thread Alex Xin
Hi, Are there any ways I could use to get the installed app's latest version from Market? Just like some version tracking app. Thanks BRs, Alex -- 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] Re: How to install package without asking user just like market app?

2010-08-13 Thread Alex Xin
. On Aug 12, 11:29 am, TreKing treking...@gmail.com wrote: On Thu, Aug 12, 2010 at 9:04 AM, Alex Xin xinxi...@gmail.com wrote: How to install package without asking user just like market app? You can't. Well, maybe if you build your own firmware. On Thu, Aug 12, 2010 at 12:13 PM

[android-developers] How to install package without asking user just like market app?

2010-08-12 Thread Alex Xin
Hi, How to install package without asking user just like market app? Thanks BRs, Alex -- 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

[android-developers] Service start intent problem

2010-08-11 Thread Alex Xin
Hi, I've found a problem that may random FCs on some certain phones, Here's the code snapshot: Intent i = new Intent(); i.setClasss(this, MyService.class); i.putExtra(tag, test); startService(i); public void onStart(Intent intent, int startId ){ String str = intent.getExtras().getString(tag);

Re: [android-developers] Service start intent problem

2010-08-11 Thread Alex Xin
Hi, Frank I can give it a try. Above code snapshot works perfect and on my Android 1.6 based phone, but random FC on Nexus One. Alex On Thu, Aug 12, 2010 at 9:26 AM, Frank Weiss fewe...@gmail.com wrote: Does it FC when you use getIntent() instead of the parameter to onStart? -- You

[android-developers] Do we need to call System.gc() ?

2010-08-09 Thread Alex Xin
Hi, Do we need to call System.gc() to indicate that system should do a garbage collection or just let system to choose when to collect garbage and free it? Because my app will random FCs on certain phones, but if I add some calls to System.gc(), then there were no FCs. Thanks BRs, Alex --

Re: [android-developers] Re: ERROR IN C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windowsSDK Setup.exe

2010-08-09 Thread Alex Xin
Try http, it works for me On Tue, Aug 10, 2010 at 12:25 PM, Bob Kerns r...@acm.org wrote: Has this (https) ever worked for anyone, ever? On Aug 9, 4:05 pm, Kwan Cheng yukwanch...@gmail.com wrote: I think you can fix it by turning force http its on the getting started page On Aug 9,

Re: [android-developers] Re: Does all Android Devices support Map API

2010-08-08 Thread Alex Xin
Are there any ways that we can install Google API and apps on those devices? On Mon, Aug 9, 2010 at 6:47 AM, Jonas Petersson jonas.peters...@xms.sewrote: Hi again Nithin, Sorry, for the somewhat late response On 08/07/2010 07:36 AM, Nithin wrote: Sony's first release (X3) have lot of

Re: [android-developers] Does all Android Devices support Map API

2010-08-07 Thread Alex Xin
The answer is NO. For example, Lenovo LePhone is an Android 1.6 based device, but it doesn't support any of Google APIs, it even doesn't support Google search, the default search engine on this phone is Baidu not Google, you cannot install GTalk/GMail/Market and other Google apps on this phone.

[android-developers] How to unload image from memory?

2010-08-07 Thread Alex Xin
Hi, Are there any ways that I can unload unused images from memory? For example I want to unload background pictures in order to save memory when my activity is going to background? I want to this because my app will force close on Nexus One, from the logcat I found it was caused due to out of

Re: [android-developers] renaming a image file on sd card

2010-08-07 Thread Alex Xin
That what I used in my code: public static boolean rename(String orig_name, String new_name, String path) { File Operator1 = new File(path, orig_name); File Operator2 = new File(path, new_name); if (Operator1.exists() == false) { return false; } if (Operator2.exists() == true) { return false; }

Re: [android-developers] Strange out of memory issue on Nexus One

2010-08-05 Thread Alex Xin
has doesn't matter. One a WVGA device, the maximum amount of memory you can use in your app is 24 MB. You are using too much memory (or leaking memory) in yoru app. On Wed, Aug 4, 2010 at 11:14 AM, Alex Xin xinxi...@gmail.com wrote: Hi, All I'm now facing a very strange out of memory issue

Re: [android-developers] Re: Strange out of memory issue on Nexus One

2010-08-05 Thread Alex Xin
#3238945 On Aug 5, 2:54 pm, Alex Xin xinxi...@gmail.com wrote: Hi, I'm using DDMS to track my app's allocation event and heap memory size. I found that my app only use 2M-4M heap memory, so it's impossible to have out of memory issue. thanks BRs Alex On Thu, Aug 5, 2010 at 2

Re: [android-developers] Thread

2010-08-04 Thread Alex Xin
Try AsyncTask On Wed, Aug 4, 2010 at 4:43 PM, perumal316 perumal...@gmail.com wrote: Hi All, I want to write a separate Thread within my application(to do Bluetooth connection). Any idea where I can find any reference for help to write Threads in Android? I searched online but could not

[android-developers] Strange out of memory issue on Nexus One

2010-08-04 Thread Alex Xin
Hi, All I'm now facing a very strange out of memory issue on Nexus One. I have a user leaves a comment in market said that my app always got force closed on his Nexus One, then I try to contact that user and ask for the logcat. Here's the logcat: E/AndroidRuntime( 4016): FATAL EXCEPTION: main

Re: [android-developers] Re: A very strange ServerSocket.accept problem

2010-08-03 Thread Alex Xin
connected to the server port. I think it is sucefully creating the server socket, the problem seems with the client and where client is not polling to the server port. Thanks, Arjun. On Aug 3, 8:26 am, Alex Xin xinxi...@gmail.com wrote: Hi Oscar I have no firewall installed.. Alex

Re: [android-developers] Why is Android so buggy?

2010-08-03 Thread Alex Xin
Android is buggy, yes, I totally agree with you. The most buggy release is Froyo, in Froyo, I cannot use Java NIO selector anymore, but it works fine in previous releases. On Mon, Jun 7, 2010 at 5:25 AM, blahblah...@gmail.com blahblah...@gmail.com wrote: It seems that Android is very buggy

[android-developers] A very strange ServerSocket.accept problem

2010-08-03 Thread Alex Xin
Hi, I have asked this question before but no answers, so I post again hope that someone might help me, thank you. I'm now facing a very strange server socket problem, I have a server that will listen on a TCP port, I use the following code to do this work. public class RequestListenerThread

Re: [android-developers] Re: A very strange ServerSocket.accept problem

2010-08-03 Thread Alex Xin
Hi Oscar I have no firewall installed.. Alex On Tue, Aug 3, 2010 at 11:11 PM, Oscar oscar...@gmail.com wrote: Do you have a firewall or something like that, it´s maybe the problem On Aug 3, 8:56 am, Alex Xin xinxi...@gmail.com wrote: Hi, I have asked this question before

Re: [android-developers] why application size increase in market

2010-08-01 Thread Alex Xin
If you use copy protection, that's true. Market needs extra space to store those security related information. On Mon, Aug 2, 2010 at 12:17 PM, aswani kumar tholeti ensisinf...@gmail.com wrote: Hi Folks, i developed one application its apk file size is 1.x mb.i uploaded apps into android

Re: [android-developers] Re: Upload large files on the web server on android

2010-07-31 Thread Alex Xin
method as 'Post'. On Jul 30, 9:44 pm, Alex Xin xinxi...@gmail.com wrote: Do you use HTTP POST to upload your file to android phone? On Fri, Jul 30, 2010 at 7:27 PM, mudit mudit.a...@gmail.com wrote: Hi I want to upload files on a web server in my android app.Currently i am able

Re: [android-developers] Upload large files on the web server on android

2010-07-30 Thread Alex Xin
Do you use HTTP POST to upload your file to android phone? On Fri, Jul 30, 2010 at 7:27 PM, mudit mudit.a...@gmail.com wrote: Hi I want to upload files on a web server in my android app.Currently i am able to upload files around 5mb from the device but more than this gives a outofmemory

Re: [android-developers] Re: Media streaming on Android

2010-07-26 Thread Alex Xin
Which format you tried to stream? If it's MP4, you need to hint that video in order to make it stream ready for RTP/RTSP/HTTP streaming. Use MP4Box to do that work On Mon, Jul 26, 2010 at 7:23 PM, arsalank2 arsala...@gmail.com wrote: Thanks for the link, but the encoded video is not decoded by

Re: [android-developers] How to get scroll position in a GridView? getScrollY always return 0

2010-07-26 Thread Alex Xin
Anyone who could help me on this issue? Thanks a lot!! On Sat, Jul 24, 2010 at 3:34 PM, Alex Xin xinxi...@gmail.com wrote: Hi, I have a GridView in my activity, and I want to save current scroll position while user goes to another place and restore it while user comes back. I try to use

[android-developers] How to get scroll position in a GridView? getScrollY always return 0

2010-07-24 Thread Alex Xin
Hi, I have a GridView in my activity, and I want to save current scroll position while user goes to another place and restore it while user comes back. I try to use GridView.getScrollY and GridView.scrollTo methods, but getScrollY method always return 0 instead of right scroll position. Am I

Re: [android-developers] Portrait Inflate problem

2010-07-24 Thread Alex Xin
changes in your activity. Therefore, when you now rotate the phone you activity will not be recreated and the layout file will not be inflated again. On Sat, Jul 24, 2010 at 2:56 AM, Alex Xin xinxi...@gmail.com wrote: Hi, I found that if I add android:configChanges=keyboardHidden

[android-developers] Portrait Inflate problem

2010-07-23 Thread Alex Xin
Hi, I've met a very strange issue that my app will crash if user first switch to landscape, then back to portrait. I found that Activity.setContentView() will throw an inflate exception. It said: android.view.InflateException: Binary XML file line #29: Error inflating class unknown This crash

Re: [android-developers] Portrait Inflate problem

2010-07-23 Thread Alex Xin
Hi TreKing I stored in my layout file at Project Folder\res\layout\main.xml, I have only one layout for different orientations and screen densities. Thanks Alex On Sat, Jul 24, 2010 at 3:03 AM, TreKing treking...@gmail.com wrote: On Fri, Jul 23, 2010 at 12:48 PM, Alex Xin xinxi...@gmail.com

Re: [android-developers] Portrait Inflate problem

2010-07-23 Thread Alex Xin
Hi, I found that if I add android:configChanges=keyboardHidden|orientation in mainfest.xml for each activities, then everything works fine, no crashes, no reset. Does anyone know why? Thanks a lot On Sat, Jul 24, 2010 at 8:23 AM, Alex Xin xinxi...@gmail.com wrote: Hi TreKing I stored

[android-developers] Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread Alex Xin
Hi, I have a free app that has 64% of ratings at 5 starts, but still has 9% of ratings at only 1 start, some of them even said that my app is an useless garbage, so I think maybe I need to leave a reply to those users to explain something or answer their questions. So are there any ways that we

Re: [android-developers] Re: Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread Alex Xin
You're right, I've already saw that happened. 2010/7/20 Kostya Vasilyev kmans...@gmail.com Especially when you get contradicting comments on the day some new device becomes available. 'Doesn't work on .. - 1 star followed by 'Works on .. - 5 stars' from a different user a while later.

[android-developers] How to uninstall application?

2010-07-17 Thread Alex Xin
Hi, there I'm now implementing an app management tool, but I don't know how to uninstall an application using SDK? Could anyone tell me this? Thanks a lot Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: 回复: [android-developers] How to uninstall application?

2010-07-17 Thread Alex Xin
-17 下午2:07,Alex Xin xinxi...@gmail.com编写: Hi, there I'm now implementing an app management tool, but I don't know how to uninstall an application using SDK? Could anyone tell me this? Thanks a lot Alex -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Does anybody know why PackageManager.getApplicationIcon() doesn't work in Android 2.2 Froyo?

2010-07-14 Thread Alex Xin
Hi, all We found that PackageManager.getApplicationIcon always return default app icon in Android 2.2 Froyo. But works perfect in previous Android release like 1.6/2.1 Does anybody knows why? Does Google change this API's behavior in 2.2? Thanks! Alex -- You received this message because you

Re: [android-developers] Re: Socket connection question

2010-07-09 Thread Alex Xin
Thanks for explanation. Are there possibles if I use NDK to do that? On Fri, Jul 9, 2010 at 5:12 PM, Indicator Veritatis mej1...@yahoo.comwrote: The normal Java socket classes (Socket, DatagramSocket, SocketImpl, DatagramSocketImpl, ServerSocket) do force you to choose between TCP (stream)

Re: [android-developers] Problems while working with Android 2.2 Froyo - Need help - Thanks very much!

2010-07-09 Thread Alex Xin
, 2010 at 4:11 PM, Alex Xin xinxi...@gmail.com wrote: *Hi,* * * *I have a problem while trying to run my app in new Android 2.2 Froyo emulator and real device Nexus One.* *The problem is that when I try to call java.nio.channels.Selector.wakeup() method, it will throw a runtime exception

Re: [android-developers] Re: Making Video files Android ready for playback over HTTP

2010-07-09 Thread Alex Xin
Thank you!! This post is very useful for me!! On Fri, Jul 9, 2010 at 9:43 PM, Samuh samuh.va...@gmail.com wrote: Mark: Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Problems while working with Android 2.2 Froyo - Need help - Thanks very much!

2010-07-05 Thread Alex Xin
*Hi,* * * *I have a problem while trying to run my app in new Android 2.2 Froyo emulator and real device Nexus One.* *The problem is that when I try to call java.nio.channels.Selector.wakeup() method, it will throw a runtime exception NullPointerException. But this code works very well on all

Re: [android-developers] Re: paypal mobile payment allowed?

2010-07-05 Thread Alex Xin
Some Paypal employees in China told me that I can list my app in market as free but use their payment library in my app to ask user to pay for it. They even told me that Google allow this. Those Paypal employees said that because Google doesn't allow Chinese developers to publish paid apps in

[android-developers] Socket connection question

2010-07-04 Thread Alex Xin
Hi, Are there any methods which I can use to establish a socket connection that only use 3G network? Thank you a lot! Alex -- 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] Can I put a donation link in my free app?

2010-06-29 Thread Alex Xin
=en Chandana On 27 June 2010 18:46, Alex Xin xinxi...@gmail.com wrote: Hi, folks I want to login my app as free app, but I think maybe I can put a donation link in my app, of course, my users can use my app without any donations. I don't sell my app. Does Google allow developer to do

[android-developers] How to keep android phone both connected to WIFI and 3G network?

2010-06-28 Thread Alex Xin
Hi, folks I have a application that requires both connected to WIFI and 3G mobile network, but I found that if I switch to WIFI, I'll automatically lost 3G data connection, all connection I made now routes to WIFI. Does anybody know how to keep phone both connected to those networks, and how to

Re: [android-developers] Re: rtsp client?

2010-06-28 Thread Alex Xin
Hi, folks Are there any media player in Android can play HTTP stream media files? thanks On Tue, Jun 29, 2010 at 9:10 AM, Andy Savage a...@bluewire.net.nz wrote: With certain types of well formed RTSP streams the mediaplayer class can play it directly. http://m.youtube.com is a great

[android-developers] Can I put a donation link in my free app?

2010-06-27 Thread Alex Xin
Hi, folks I want to login my app as free app, but I think maybe I can put a donation link in my app, of course, my users can use my app without any donations. I don't sell my app. Does Google allow developer to do this? Thanks a lot Alex -- You received this message because you are subscribed

[android-developers] ServerSocket problem

2010-06-25 Thread Alex Xin
Hi, folks I'm now facing a very strange server socket problem, I have a server that will listen on a TCP port, I use the following code to do this work. public class RequestListenerThread extends Thread { private final ServerSocket serversocket; public RequestListenerThread(int port, final

Re: [android-developers] ServerSocket problem

2010-06-25 Thread Alex Xin
more on this problem... it works great in emulator, but always failed on real device On Sat, Jun 26, 2010 at 1:03 AM, Alex Xin xinxi...@gmail.com wrote: Hi, folks I'm now facing a very strange server socket problem, I have a server that will listen on a TCP port, I use the following code

Re: [android-developers] ServerSocket problem

2010-06-25 Thread Alex Xin
shubem...@gmail.com wrote: do you know what's the ip address you got on the real device. There are chances the real device is on NAT network. In such a case you wont be able to talk directly to the device. On Fri, Jun 25, 2010 at 12:04 PM, Alex Xin xinxi...@gmail.com wrote: more

[android-developers] ListView and CheckedTextView questions - help me, thanks!!!!

2010-06-22 Thread Alex Xin
Hi, guys I'm now developing an application that uses a ListView with a CheckedTextView on every item that managed by an ArrayAdapter to support multiple chooses. The contents in my ListView are dynamic, that means, can be changed during runtime. Now I try to use ListView.getCheckedItemPositions()

Re: [android-developers] ListView and CheckedTextView questions - help me, thanks!!!!

2010-06-22 Thread Alex Xin
Or could anyone who can teach me how to get the position of CheckedTextView in its OnClickListener callback? If I can do this it means I can monitor user actions by my own. On Tue, Jun 22, 2010 at 8:41 PM, Alex Xin xinxi...@gmail.com wrote: Hi, guys I'm now developing an application that uses

[android-developers] ListView questions

2010-06-18 Thread Alex Xin
Hi, folks I have a ListView that contains a custom view looks like this: ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal

Re: [android-developers] how to launch applications installed in a phone?

2010-06-18 Thread Alex Xin
Hi, Here's an example, hope this will be useful for you: Intent i = getPackageManager().getLaunchIntentForPackage(ai.packageName); startActivity(i); where ai is an instance of ApplicationInfo object, you can use following call to get all ApplicationInfo instances: Context.listAllApplication();

Re: [android-developers] Re: Content provider implementation questions

2010-06-14 Thread Alex Xin
it but I wouldn't recomend it... Try a service... Maybe inside the service open a proxy to listen for incoming requests... :) -Moto On Jun 13, 12:35 pm, Alex Xin xinxi...@gmail.com wrote: Hi, All I'm now trying to implement my own content provider. My original data was stored

[android-developers] Content provider implementation questions

2010-06-13 Thread Alex Xin
Hi, All I'm now trying to implement my own content provider. My original data was stored on network or local/remote file systems, so I want to provide data via input stream. I know that client may call ContentResolver.getnputStream to retrieve the input stream to access data. But I don't know how

Re: [android-developers] Re: How global is the app market?

2010-06-10 Thread Alex Xin
First of all, I'm a Chinese adn I want to tell you guys the truth about this fast growing market. I know that most of android powered phones sells in this market has no google market pre-installed in their device. In my Lenovo LePhone, which is a Android 1.6 based system, even has no google search

Re: [android-developers] Re: How global is the app market?

2010-06-10 Thread Alex Xin
a proxy) On 10 Juni, 13:12, Alex Xin xinxi...@gmail.com wrote: First of all, I'm a Chinese adn I want to tell you guys the truth about this fast growing market. I know that most of android powered phones sells in this market has no google market pre-installed in their device. In my Lenovo

Re: [android-developers] Re: How global is the app market?

2010-06-10 Thread Alex Xin
All connections to google.cn now forward to google.com.hk On Thu, Jun 10, 2010 at 10:19 PM, Alex Xin xinxi...@gmail.com wrote: Ok, Google has decided to close their local website http://www.google.cn/due to the Internet censorship in China. You could still use google global service site

[android-developers] How to listen on socket port 80?

2010-06-07 Thread Alex Xin
Hi, guys I'm new to Android development, now I'm working on a simple HTTP server project. I try to use ServerSocket to listen on port 80 but I failed. There will have an exception if I did this. I have already set INTERNET premission in manifest. I found that everything is Okay if I use port