Re: [android-developers] using anctionbar to implement tab, how to jump to another tab programmly?

2013-01-22 Thread Summer Xia Jiang
Yes, this works. Thanks! On Mon, Jan 21, 2013 at 5:08 PM, Michael Leung michaelchi...@gmail.comwrote: actionBar.setSelectedNavigationItem(x)? On Tue, Jan 22, 2013 at 4:17 AM, Summer novelt...@gmail.com wrote: Could you give me an example of how to set the fragment to be active? Thanks

Re: [android-developers] using anctionbar to implement tab, how to jump to another tab programmly?

2013-01-21 Thread Summer Xia Jiang
Could you give me an example of how to set the fragment to be active? Thanks On Sun, Jan 20, 2013 at 9:15 PM, Michael Leung michaelchi...@gmail.comwrote: Can you set the tab with B Fragment to be active? On Mon, Jan 21, 2013 at 9:25 AM, Summer novelt...@gmail.com wrote:

Re: [android-developers] Re: ListFragment and actionbar

2013-01-11 Thread Summer Xia Jiang
Thanks, that worked for me! On Fri, Jan 11, 2013 at 5:18 AM, Fisiu fisi...@gmail.com wrote: W dniu piątek, 11 stycznia 2013 08:44:42 UTC+1 użytkownik Summer napisał: Hi, I am developing an application which I will have multiple tabs and in one of the tab I will have listview. --So if I

[android-developers] NDK jni recommend some examples for me

2012-10-21 Thread Tony-jiang
NDK jni recommend some examples for me . How to link the .so file? How to write the .mk file? everything about this . My system environment is Ubuntu 12.04 .I set everything up. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Questions about enabling both 3g and wifi at the same time,and selecting the interfacec by programming

2012-02-21 Thread jue jiang
Hello! I'v seen that you'v anwsered a lot about enabling 3g and wifi simultaneouly. You mean that there's no this kind of function in the past sdk, do you know that whether there is improvement in this kind of function in recent sdk version? You also mentioin firmware, could you please explain a

Re: [android-developers] Re: How to close entire app?

2011-08-14 Thread Andry Jiang
Perhaps you could try creating your own BroadcastReceiver on every Activity that will exit its Activity upon receiving broadcasted message sent from the last page when user choose to exit the app. I haven't tried it myself but I hope it gives you a clue to solve your problem. Otherwise you should

[android-developers] How to embed a package in another package

2010-12-20 Thread Jiang
I have 2 packages a.apk and b.apk, is it possible to embed b.apk into a.apk, that when I install a.apk, b.apk is installed automatically, and when a.apk is uninstalled, b.apk is uninstalled as well? Thanks. -Jiang -- You received this message because you are subscribed to the Google

Re: [android-developers] How to embed a package in another package

2010-12-20 Thread Jiang
@googlegroups.com 日期: 2010年12月21日,周二,上午10:11 On Mon, Dec 20, 2010 at 8:09 PM, Jiang webs...@yahoo.cn wrote: I have 2 packages a.apk and b.apk, is it possible to embed b.apk into a.apk, that when I install a.apk, b.apk is installed automatically, and when a.apk is uninstalled, b.apk is uninstalled as well

Re: [android-developers] How to embed a package in another package

2010-12-20 Thread Jiang
as you said? Thanks. BR, -Jiang --- 10年12月21日,周二, TreKing treking...@gmail.com 写道: 发件人: TreKing treking...@gmail.com 主题: Re: [android-developers] How to embed a package in another package 收件人: android-developers@googlegroups.com 日期: 2010年12月21日,周二,下午12:00 2010/12/20 Jiang webs...@yahoo.cn Since

[android-developers] Key store is lost

2010-12-14 Thread Jiang
I lost the key store which has been used to sign a published application. I generated the key store with the following instructions: keytool -genkey -keystore keystore-name -storepass store-password -alias store-alias -keypass key-password -validity validity-date -dname d-name I remember all

Re: [android-developers] Key store is lost

2010-12-14 Thread Jiang
,周二,下午7:51 On 14 December 2010 12:35, Jiang webs...@yahoo.cn wrote: I lost the key store which has been used to sign a published application. I generated the key store with the following instructions: keytool -genkey -keystore keystore-name -storepass store-password -alias store-alias

回复: [android-developers] Re: How to communicat e between Activities/Services

2010-12-13 Thread Jiang
, Jiang How can I implement it as program code? Thanks! Kenneth On 12月13日, 下午12�r32分, Jiang webs...@yahoo.cn wrote: Once some specific event occurs, such as app is expired, I need to inform all active Activities/Services, is there any good way to implement such communication? Currently, I

[android-developers] How to communicate between Activities/Services

2010-12-12 Thread Jiang
Once some specific event occurs, such as app is expired, I need to inform all active Activities/Services,  is there any good way to implement such communication? Currently, I use Broadcast, but some guys said it is expecsive. Thanks. -Jiang -- You received this message because you

[android-developers] How to restart activity once configuration changed

2010-11-06 Thread Jiang
will be restart immediately, and activities stack is reordered reversedly. b), When restarted activity, onCreate is invoked before onDestroy() my question is: If I myself handle configuration changes event, how to restart activity as Android does by default. Thanks very much! - Jiang -- You

[android-developers] How to restart application.

2010-10-13 Thread Jiang
In my application, I need to restart the application itself (kill it, and then relaunch it), how to implement this feature? I tried ActivitiManager.restartPackage(), but seems the application doesn't be killed. Thanks. -Jiang -- You received this message because you are subscribed

[android-developers] How to close all activities in Activity stack and start a new one

2010-10-10 Thread Jiang
When some activities is created, such as A-B-C-D, and in a timer, I need to close all activities in Ativity stack in the order D-C-B-A (the timer don't know what activities have been created), and then start a new Activity E. How to implement this feature? Thanks. -- You received

Re: [android-developers] Re: What's on earth the SAX Parser changes between 2.1 and 2.2

2010-10-10 Thread Jun Jiang
wrote 'excpetion'. On Oct 9, 7:42 am, Jun Jiang jiangjun.jk...@gmail.com wrote: Thanks, frank, I have found the cause of my problem, you can refer my blog post for more detail: http://mmmyddd.freeshell.net/blog/Computer/Android/saxcompatibility On Thu, Oct 7, 2010 at 11:58 PM, Frank

Re: [android-developers] What's on earth the SAX Parser changes between 2.1 and 2.2

2010-10-09 Thread Jun Jiang
Thanks, frank, I have found the cause of my problem, you can refer my blog post for more detail: http://mmmyddd.freeshell.net/blog/Computer/Android/saxcompatibility On Thu, Oct 7, 2010 at 11:58 PM, Frank Weiss fewe...@gmail.com wrote: The bug report sheds no more light on the problem than you

[android-developers] What's on earth the SAX Parser changes between 2.1 and 2.2

2010-10-07 Thread Jun Jiang
I have wrote a ContentHandler for SAX parser to retrieve data from and xml file, but it does't work on 2.1-update1, but works fine on 2.2, What is on earth is the changes, anyone knows? the problem I encountered is exactly the same as stated at:

[android-developers] How to get android version programmtically

2010-09-15 Thread Jiang
Hello, guyes. I need to get android version programmtically dynamically when my application is running on device. I tried android.os.Build.Version, but it doesn't exist in Android sdk 1.6. How to get android version? Thanks. Jiang -- You received this message because you

[android-developers] How to know who has registered the developer name on Android Market

2010-09-13 Thread Jiang
entered is already taken. How to know who has registered this developer name? Thanks. -Jiang -- 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] Doesn any body konw how to contact with Android Market support team?

2010-09-13 Thread Jiang
Thanks. Jiang -- 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

Re: [android-developers] Re: Killi Process with files on SD card

2010-09-07 Thread Zhenyu Jiang
i think the problem here is that you really do not known when the user is going to unmount the sdcard.. it can happen at any moment. so the only way is to make those open file closed, which seams to be difficult, especially for files read/written in a separate thread async... since i met with the

Re: [android-developers] Re: how to press menu key programmatically..

2010-09-07 Thread Zhenyu Jiang
maybe he means unlock the screen by pressing the menu key. i think you cannot achieve it by your app, since the key event is poped up by the system and delivered to upper layer apps. 2010/9/7, Yahel kaye...@gmail.com: i think pressing menu key Not sure what you mean by open lock, but the way to

[android-developers] help

2010-08-31 Thread Zhenyu Jiang
help -- 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,

[android-developers] How to use preference objects in TabActivity

2010-07-30 Thread Jiang
In general, preference objects can be used in PreferenceActivity. Now I need to use these objects in TabActivity, how to implement this feature? Thanks! - Jiang -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] subscribe

2010-06-30 Thread Zhenyu Jiang
subscribe -- 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

[android-developers] It is possible to monitor and block network?

2010-06-24 Thread Jiang
, -Jiang -- 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

[android-developers] How to implement a listiew like Android built-in application Settings.apk

2010-06-10 Thread Jiang
. -Jiang -- 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

回复: [android-developers] How to implement a li stiew like Android built-in application Settings.apk

2010-06-10 Thread Jiang
Oh, I know, it is preference activity --- 10年6月10日,周四, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] How to implement a listiew like Android built-in application Settings.apk 收件人: android-developers@googlegroups.com 日期: 2010年6月10日,周四,下午4:45 I want to design

回复: [android-developers] Int to string

2010-06-10 Thread Jiang
Integer.toString(tmp) --- 10年6月11日,周五, Jason Hensler jasonehens...@gmail.com 写道: 发件人: Jason Hensler jasonehens...@gmail.com 主题: [android-developers] Int to string 收件人: android-developers@googlegroups.com 日期: 2010年6月11日,周五,上午11:58 It seems like in my code that my app is crashing because it is a

[android-developers] Why my application doesn't in application history?

2010-06-07 Thread Jiang
is launched, I press HOME key for about 3 seconds, and I see the a dialog with messages No recent applications. why my application is disappeared? thanks. -Jiang -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

Re: [android-developers] How to show a dialog even if the Activity is in background

2010-06-05 Thread Jiang
, Jiang webs...@yahoo.cn wrote: In other word, no matter what application is running on foreground, use can watch the dialog. Let me get this straight - you want to force a popup dialog in front of the user's current activity after they've made the deliberate decision to navigate away from your

[android-developers] How to show a dialog even if the Activity is in background

2010-06-04 Thread Jiang
If my Activity is switched to background, when something takes place, I want to show a dialog without switching the Activity to foreground. In other word, no matter what application is running on foreground, use can watch the dialog. Thanks. -Jiang. -- You received this message

回复: [android-developers] Re: How to know the r eason that causes the activity destroyed

2010-06-03 Thread Jiang
...@gmail.com 主题: [android-developers] Re: How to know the reason that causes the activity destroyed 收件人: Android Developers android-developers@googlegroups.com 日期: 2010年6月3日,周四,下午1:41 I guess one of the reason maybe due to the screen orientation changed? On Jun 3, 6:53 am, Jiang webs...@yahoo.cn

[android-developers] How to know the reason that causes the activity destroyed

2010-06-02 Thread Jiang
() returns false How to know the reason auses the activity destroyed? Thanks. -Jiang -- 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

Re: [android-developers] How to decrease the space between checkbox?

2010-05-31 Thread Jiang
:25, TreKing пишет: On Sun, May 30, 2010 at 10:18 PM, Jiang webs...@yahoo.cn wrote: The space between checkboxes in below UI layout is too much, how to decrease it? Try adjusting the various padding parameters on them

[android-developers] How to decrease the space between checkbox?

2010-05-30 Thread Jiang
The space between checkboxes in below UI layout is too much, how to decrease it? LinearLayout android:orientation=vertical     android:layout_width=fill_parent     android:layout_height=wrap_content     CheckBox android:layout_width=wrap_content     android:layout_height=wrap_content    

[android-developers] CheckBoxs' labels are not updated after locale is changed

2010-05-28 Thread Jiang
, the checkboxs' labels become correct. Why, is it Android's bug? Thanks. -Jiang -- 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

回复: [android-developers] Memory leaks???

2010-05-21 Thread Jiang
My God. The statements to send messages cause memory leak. I should use the following statements instead. Message message = m_handler.obtainMessage(); message.what = 1; message.what = obj; message.sendToTarget(); --- 10年5月21日,周五, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs

回复: [android-developers] Re: capture outgoing sms in android

2010-05-21 Thread Jiang
1, Cache all messages's hash code on the phone 2, Register an content observer for content://sms 3, In onChange method of observer, enumrate all messages to check if it is in cache, if not, the message is sent out just now. --- 10年5月21日,周五, Nandan . bhavesh2...@gmail.com 写道: 发件人: Nandan .

[android-developers] How to force Activity to call finalize()?

2010-05-20 Thread Jiang
My application contains 2 activities A and B. B is opened with startActivity(intent) in A, when B is closed with finish(), I found the method finalize() of B is not called. My question is: How to force Activity to call finalize() when it is closed with finish()? Thanks. -- You

[android-developers] When Activity is closed, its fields is not release, how to resolve this issue.

2010-05-20 Thread Jiang
In the followingscenario, the fields of Activity is not released when the Activity is closed with calling finish(). Class MyClass { } public MyActivity extends Activity {     private MyClass obj;     public void onCreate(xxx)     {                

[android-developers] How to find memory leak?

2010-05-20 Thread Jiang
When start Activity A, I found the memory usage of application is about 5MB, Then start Activity B from A via startActivity. In Activity B, I created a thread, and traverse file system in this thread, after traversing completed, call finish() and to return to

回复: [android-developers] Re: How to find memor y leak?

2010-05-20 Thread Jiang
. Also, you will need to grant write permissions to the output directory in your emulator. I just go do a chmod 777 /user/data. hth, Sean Overby On May 20, 6:27 am, Jiang webs...@yahoo.cn wrote: When start Activity A, I found the memory usage of application is about 5MB, Then start

Re: [android-developers] When Activity is closed, its fields is not release, how to resolve this issue.

2010-05-20 Thread Jiang
Thanks. Even if I called System.gc(), the 'obj' field of MyActivity is still not released. If I don't use infinite loop, and tried the following test, exception 'out of memory' still occurs 1, Start Activity A 2, Press a button on Activity A to start Activity B 3, In onCreate method of B,

回复: [android-developers] Re: How to force Acti vity to call finalize()?

2010-05-20 Thread Jiang
, implement the onDestroy. On May 20, 3:42燼m, Jiang webs...@yahoo.cn wrote: My application contains 2 activities A and B. B is opened with startActivity(intent) in A, when B is closed with finish(), I found the method finalize() of B is not called. My question is: How to force Activity

[android-developers] Memory leaks???

2010-05-20 Thread Jiang
1, In a thread, I send a gread many of messages with followign statements:     Message message = new Message();     message.what = 1;     message.what = obj;     m_handler.sendMessage(message)     message = null; 2, In a acvity class MyActivity extends Activity {     class MyHandler extends

[android-developers] -http-proxy not working solution

2010-04-20 Thread Andry Jiang
Hi, I'm trying to get my emulator works with my HTTP proxy servers. I remember that I ever succeeded using -http-proxy option settings from Eclipse Run Configuration window when I was using android 1.5 SDK. But now when I already updated to latest SDK I cannot make my emulator to connect to

[android-developers] Re: -http-proxy not working solution

2010-04-20 Thread Andry Jiang
Sorry, already solved this issue. I replaced my emulator.exe in SDK folder using old android-1.5 SDK emulator.exe :). Now the browser can connect to the internet using proxy. Hope there is no other issue regarding this hard way solution On Tue, Apr 20, 2010 at 10:38 PM, Andry Jiang andryde

Re: [android-developers] Re: Android in China - What is going on?

2009-11-21 Thread Evan JIANG
I was at Shenzhen last week. It is strange that the google sync doesn't work in Shenzhen, but it works perfectly in Beijing. I hadn't modified any settings. And in Beijing, both CNC network and CMCC APN work fine. Best regards, On Sat, Nov 21, 2009 at 9:26 AM, shimsim shim@gmail.com wrote:

[android-developers] Can an application get event that it is installed?

2009-08-27 Thread Jiang
Hello, Guys, In application, I want to do some operations when it is installed, how can I implement this feature? Thanks in advance. ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/

回复: [android-developers] Re: In Java application, how to load native library which depends on the third shared library

2009-08-26 Thread Jiang
午3:20 Hi, you probably want to ask about native development on android-ndk. 2009/8/25 Jiang webs...@yahoo.cn Hello, guys. I created a jni library which depends the third shared library, I must copy the third shared library to /system/lib, otherwise, Java application can't load jni library

[android-developers] In Java application, how to load native library which depends on the third shared library

2009-08-25 Thread Jiang
java.library.path to the location stored the thired shared library before load jni library, but the issue still exists. Is there any one konw how to solve this issue? Thanks a lot. BR, - Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http

[android-developers] why glReadPixels return Alpha always -1

2009-08-03 Thread BaoXu Jiang
Hi, it is always return -1 when call Android opengl es api glReadPixels(), it is a bug of Android? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Extending contacts

2009-06-16 Thread Evan JIANG
I suggest you to save these extra data to your own database. Best regards, On Wed, Jun 10, 2009 at 6:12 PM, marc.popple...@orange-ftgroup.com wrote: Hi, I'm trying to see how extra information can be attached to contacts entries. Looking at the SDK reference, I stumble upon the

[android-developers] Re: About PinyinIME in android-1.5

2009-05-12 Thread Evan JIANG
I guess, first, it's not so stable yet, still some of bugs need to be fixed before release it. 2nd, G1 and other android devices are not shipped to China Mainland so far. So they do not need to include this in this version, which is built as G1 android-1.5 firmware update. Best regards, On Wed,

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-29 Thread Evan JIANG
Well, I met the same issue. Does anyone have any idea about this? Best regards, On Tue, Apr 28, 2009 at 11:14 PM, Guillaume Perrot guillaume.p...@gmail.com wrote: We have an application cut into 3 android projects: * Project REAL (the real android project) * Project LIB1 (an android project

[android-developers] Re: Bus error when running 1.5 emulator

2009-04-21 Thread Evan JIANG
I've submitted a patch for this bug https://review.source.android.com/Gerrit#change,9597 If you'd like, I can mail you the binaray file I built. Best regards, On Tue, Apr 21, 2009 at 7:58 AM, Peter pkana...@gmail.com wrote: Ok, my problem has returned, so the above fix wasn't it. Here's my

[android-developers] Re: SDK 1.5 Error

2009-04-17 Thread Li Jiang Hua
First you should create a avd file for your emulator: the command line is: cd sdk_dir android create avd -n my_avd -t 1 On 4月14日, 下午5时42分, vinny.s...@gmail.com vinny.s...@gmail.com wrote: Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted. when i'm going to Run the

[android-developers] Re: SDK 1.5 Error

2009-04-17 Thread Li Jiang Hua
While i run the emulator with command line, i get an error message: emulator: ERROR: You did not provide the name of an Android Virtual Device with the '-avd name' option. Read -help-avd for more information. If you *really* want to *NOT* run an AVD, consider using '-data file' to specify a

回复: [android-developers] Re: How to delete package programmatically without UI

2009-04-08 Thread Jiang
Thanks for your help. BR, -Jiang --- 09年4月8日,周三, Al Sutton a...@funkyandroid.com 写道: 发件人: Al Sutton a...@funkyandroid.com 主题: [android-developers] Re: How to delete package programmatically without UI 收件人: android-developers@googlegroups.com 日期: 2009,48,周三,2:40下午 A user should always know

[android-developers] How to delete package programmatically without UI

2009-04-07 Thread Jiang
silently (without Applications Manager's UI showing), Thanks greatly. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ You received this message because you

[android-developers] How to hide an Activity

2009-04-03 Thread Jiang
implement this feature? Thanks. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] How to set item's height of ListView

2009-04-01 Thread Jiang
Hello, Guys. The default item's height of ListView is too large, how can I set it's height? just like ApiDemos/Views/Lists/6. ListAdapter Collapsed. Thanks! -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com

[android-developers] How to display a horizontal bar

2009-03-31 Thread Jiang
  android:background=#FF909090   android:fadingEdge=horizontal /TableLayout Then the horizontal bar is shown, but the left/right of the bar is not fading. Would you give me any suggestion? Thanks in advance. -Jiang

回复: [android-developers] Re: How to display a horizontal bar

2009-03-31 Thread Jiang
It works, thanks a lot. -Jiang --- 09年3月31日,周二, Jon Colverson jjc1...@gmail.com 写道: 发件人: Jon Colverson jjc1...@gmail.com 主题: [android-developers] Re: How to display a horizontal bar 收件人: Android Developers android-developers@googlegroups.com 日期: 2009,331,周二,7:36下午 On Mar 31, 11:25燼m, Jiang

[android-developers] Re: why I can't access http://developer.android.com

2009-03-30 Thread Evan JIANG
Use this url: http://androidappdocs.appspot.com On Fri, Mar 27, 2009 at 2:09 PM, kingfu kingfu2...@gmail.com wrote: Now I am in China. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] How can i use vold(New volume manager daemon) to automatically mount sdcard when device startup?

2009-03-29 Thread Jiang Jiang
Hi, all I am porting android to my own device now. I checkout the latest source code from android.git.kernel.org. I have successfully compilated filesystem images and burn those images to my devices. But i couldn't automatically mount my sdcard when android startup. The / sdcard directory is

回复: [android-developers] Re: Problem w ith setTheme() method

2009-03-19 Thread Jiang
Please invoke setTheme() just before setContentView() --- 09年3月19日,周四, Marcus marcus.ter...@gmail.com 写道: 发件人: Marcus marcus.ter...@gmail.com 主题: [android-developers] Re: Problem with setTheme() method 收件人: Android Developers android-developers@googlegroups.com 日期: 2009,319,周四,3:31下午 I'm sorry.

回复: [android-developers] Re: Extra I cons in Menu

2009-03-19 Thread Jiang
activity android:name=.mainApp android:label=@string/app_name     intent-filter     action android:name=android.intent.action.MAIN /     category android:name=android.intent.category.LAUNCHER /     /intent-filter     /activity     activity

回复: [android-developers] Re: How to re ad the file in sdcard?

2009-03-17 Thread Jiang
Sorry, you need to write like: FileInputStream is = new FileInputStream(/sdcard/your_file); --- 09年3月17日,周二, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: 回复: [android-developers] Re: How to read the file in sdcard? 收件人: android-developers@googlegroups.com 日期: 2009,317,周二,5:17下午

[android-developers] Is it possible to get notification when a application is about to be launched

2009-03-16 Thread Jiang
Hello guys, I need to execute some operation when the specific application is launched, it is possible to get notification when an application is to be launched, or after it is launched? Thanks. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线

回复: [android-developers] Re: Is it p ossible to get notification when a application is about to be launched

2009-03-16 Thread Jiang
Thanks for your replay. many people may have various requirement but Android doesn't support now,  could you set up a type of communication pipe to let user present their suggestion?  :-) Thanks. -Jiang --- 09年3月16日,周一, Dianne Hackborn hack...@android.com 写道: 发件人: Dianne Hackborn hack

[android-developers] [From Jiang] How to receive Email/Gmail programatically

2009-03-13 Thread Jiang
= resolver.query(uriGmail, null, null, null, null); . function resolver.query(xxx)  returns null; how can I implement those features?  Thanks a lot. BR, -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com

回复: [android-developers] (from Jiang) How to get notification when sd card is inserte d/mounted?

2009-03-12 Thread Jiang
(Intent.ACTION_MEDIA_EJECT); ... filter.addDataScheme(file); //I forgot this line registerReceiver(myReceiver, filter); --- 09年3月11日,周三, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] (from Jiang) How to get notification when sd card is inserted/mounted? 收件人: android-developers

[android-developers] (from Jiang) How to get notification when sd card is inserted/mounted?

2009-03-11 Thread Jiang
Hello guys, I registered a broadcast receiver with action android.intent.action.MEDIA_MOUNTED, but when sd card is inserted, the broadcast is not sent out. Any one could help me to solve this issue? Thanks in advance. -Jiang

回复: [android-developers] Re: Am I able to hook file system on Android

2009-03-04 Thread Jiang
to open that file. Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ ___ 好玩贺卡等你发,邮箱贺卡全新上线! http

[android-developers] How to get socket connectivity notification

2009-03-04 Thread Jiang
Hello Guys, I need to monitor socket connectivity and close specific connection. I tried broadcast receiver with Intent action android.net.conn.CONNECTIVITY_CHANGE, but it seems that doesn't work. Is it possible to implement my feature? Thanks in advance. -Jiang

回复: [android-developers] Re: Am I able to hook file system on Android

2009-03-03 Thread Jiang
. Am I able to hook file system on Android? that means before a file is opened by other application, a registered function by the third application is invoked, and in the registered function, it can decide whether permit other application to open that file. Thanks in advance. -Jiang

[android-developers] Am I able to hook file system on Android

2009-03-02 Thread Jiang
Hello guys. Am I able to hook file system on Android? that means before a file is opened by other application, a registered function by the third application is invoked, and in the registered function, it can decide whether permit other application to open that file. Thanks in advance. -Jiang

[android-developers] Does bitwise operation for the number of contains bug?

2009-02-18 Thread Jiang
Hello guys, I want to obtain least 32 bits from a number of type long, so I perform bitwise operation on the number with bits mask 0x, but the result is error, it still contains other bits. for example: long a = 0x1234567890abL; long b = (a 0x); I expect the value of b is

回复: [android-developers] Does bitwis e operation for the number of contains bug?

2009-02-18 Thread Jiang
Sorry, it's my faults. I should change the line     long b = (a 0x); to     long b = (a 0xL); --- 09年2月18日,周三, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] Does bitwise operation for the number of contains bug? 收件人: android-developers

[android-developers] How to get what process has openned the file?

2009-02-16 Thread Jiang
What has process openned the specified file? On Linux, we can implement that simply by reversing directory /proc/pid/fd/ for all PIDs. But how to implement this function on Android? Thanks a lot. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线

[android-developers] How to bring a existing activity to foregroung when the application icon in program list is clicked

2009-02-11 Thread Jiang
/activity How can I implement it? Thanks in advance! BR, -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] How to get the position of the click point.

2009-01-31 Thread Hongfei Jiang
Hi, I'm working on a simple application, I need the application to give different response when the user click different position of the screen. But it seems I can't get the position in the OnClickLisenter, I tried OnTouchListener, but it's not as well as I expected. Can you give me some help on

[android-developers] How to judge a file/directory is a symbol link

2009-01-20 Thread Jiang
Hello, guys. I need to traverse all files recursively in the specified path, but I found a directory is a symbol link to its parent/ancestor, so the traversal behavior never completes. My question is how to judge a file/directory is a symbol link. Thanks a lot. BR, -John

[android-developers] Can one application removes files of other application?

2008-12-01 Thread John Jiang
I tried following methods, but looks like all of them are infeasible: 1) From Android official documents, I did't find proper permission to be added to application manifest; 2) I want to use 'setuid su' security hole, but that is fixed on Android RC30. Is it possible to remove files of other

[android-developers] Re: Where is the android.jar source

2008-11-06 Thread Evan JIANG
frameworks/base/core/java/android Regards, Evan JIANG On Fri, Nov 7, 2008 at 11:22 AM, NY [EMAIL PROTECTED] wrote: I visit git.source.android.com want to find the source of android.jar such as the package android.app, android.widget but I can not find them where are they? thx

[android-developers] Re: how the library files (c, c++) are linked with framework (java files)

2008-11-04 Thread Evan JIANG
Just for an example,
There`s a file FileObserver.java under framewors/base/core/java/android
The linked jni file is android_util_FileObserver.cpp under frameworks/base/core/jni
The path may be not exactly right. I`m writing mail from my cell phone. Regards,
Evan 2008/11/4, [EMAIL PROTECTED]

[android-developers] Re: OpenDatabase error

2008-11-04 Thread Evan JIANG
I guess it`s permission problem. Why not access the settings through the SettingsProvider? Regards Evan 2008/11/5, Kingorcus [EMAIL PROTECTED]: db = SQLiteDatabase.openDatabase(/data/data/ com.android.providers.settings/databases/settings.db, null,SQLiteDatabase.OPEN_READONLY); I keep

[android-developers] Re: Add an item click listener on the ListView

2008-11-04 Thread Evan JIANG
HI, listViewXMLFiles.setOnItemClickListener() Regards, Evan JIANG On Wed, Nov 5, 2008 at 11:26 AM, Anshul [EMAIL PROTECTED] wrote: I have created a ListView and want to register a listener whenever an item on the listview is clicked. I saw a lot of references on implementing

[android-developers] Re: Lock view orientation?

2008-11-04 Thread Evan JIANG
Change your activity attributes in the AndroidManifest.xml Like: Activity android:name=foo *android:screenOrientation=portrait* /Activity Best regards, Evan JIANG On Wed, Nov 5, 2008 at 11:33 AM, Eric B [EMAIL PROTECTED] wrote: I'd like my app to always display like the keyboard

[android-developers] Re: Missing Import android.provider.Telephony

2008-11-04 Thread Evan JIANG
The class and APIs are still there. But the document is hidden. You can have a look at android source code: ROOT/frameworks/base/core/java/android/provider/Telephony.java Best regards, Evan JIANG On Wed, Nov 5, 2008 at 12:14 PM, Shawn Burkit [EMAIL PROTECTED]wrote: I do not see this int

[android-developers] Re: R.java

2008-11-04 Thread Evan JIANG
Hi, You can have a look at ANDROID_SDK/tools/lib/build.template Best regards, Evan JIANG On Wed, Nov 5, 2008 at 11:08 AM, Mr Chaloo [EMAIL PROTECTED] wrote: Hi, Is there any way to make the R.java using Ant scripts. If some one have idea...let me know. Thanks. Mr Chaloo

[android-developers] Re: Join via ContentProvider

2008-10-24 Thread Evan JIANG
There's a android.database.CursorJoiner class to join 2 cursors On Fri, Oct 24, 2008 at 5:44 PM, zero [EMAIL PROTECTED] wrote: it depends on what you're up to. if you just want to join accross tables, in a contentprovider, you can do that with the querybuilder object. also, from the

[android-developers] Re: Content observers for SMS mailboxes

2008-10-23 Thread Evan JIANG
. After get the notifyChange, query the latest SMSes, and check the sent flag to judge is it a sent sms or received sms. Regards, Evan JIANG On Fri, Oct 24, 2008 at 8:22 AM, denismo [EMAIL PROTECTED] wrote: Hi, I've spent several days trying to figure out how to listen for sent SMS. One thing

[android-developers] Re: Looking for a TextView with hyperlinks

2008-07-21 Thread Evan JIANG
See APIDemos - Text - LinkyText Regards, Evan JIANG On Tue, Jul 22, 2008 at 10:53 AM, Gavin Bong [EMAIL PROTECTED] wrote: Has anyone opensourced a TextView that will render urls as clickable links (fire up WebKit on receiving a clickc event) ? If not, I'll write one myself. Thanks Gavin

[android-developers] Re: SDK Update?

2008-05-09 Thread Evan JIANG
Good question. In the same time, Apple had released 5 updates of iphone sdk. On Sat, May 10, 2008 at 9:23 AM, Gil [EMAIL PROTECTED] wrote: It's been more than two months since the release of m5-rc15. Can anyone from Google give us an update on the next SDK release schedule?

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Evan JIANG
Thank you for your reply. Is there any examples to show how to use SpannableString. In the method like SpannableStringBuilder.setSpan(Object what, int start, int end, int flags) , I've no idea what type of Object of the parameter what is needed. Best regards, Evan JIANG On Fri, Apr 4, 2008

  1   2   >