[android-developers] How do I develop a Eclipse plugin on top of google's ADT?

2011-09-29 Thread Carl Lee
I think it will be nice to modify or enhance google's ADT, since Eclipse's plugins are almost all written in Java and in Eclipse. For example, let DDMS's logcat support regular expression filter; open sqlite3 database directyly in eclipse by double clicking the db file in DDMS's file expolrer. An

Re: [android-developers] How to change the Android system beep sound(when you adjusting the volume by the "+" or "-" key) behavior [where is the code that control it]?

2011-08-04 Thread Carl Lee
Find it in the system partition and replace it, you must have Root permission to do that On Thu, Aug 4, 2011 at 5:05 PM, fei wang wrote: > How to change the Android system beep sound(when you adjusting the volume > by the "+" or "-" key) behavior [where is the code that control > it]?** > > > >

[android-developers] Re: Accessing PostGIS database from Android

2011-08-09 Thread Carl Lee
You may want to check the .jar file you included in you .classpath , make sure you have Driver.class in it, so the reflection method( that's "Class.forname('org.postgresql.Driver')",which is obviously used in your ReportActivity somehow directly or indirectly) will work correctly in your code. On

[android-developers] Re: Project Ideas

2011-08-09 Thread Carl Lee
How about write a simple twitter client? It's a relatively difficult one for university students, but I'm sure you'll learn a lot from it and have fun, you may ask your friends to use it, and you'll be proud that you made it. Best regards. On Aug 9, 1:12 pm, Sahi wrote: > Hi, > I am a University

[android-developers] Re: Accessing PostGIS database from Android

2011-08-09 Thread Carl Lee
In the root folder? I think it should be in /org/postgresql/Driver.class, shouldn't it? On Aug 9, 7:09 pm, alexbruy wrote: > On 9 авг, 12:00, Carl Lee wrote: > > > You may want to check the .jar file you included in you .classpath , > > make sure you have Driver.class i

[android-developers] Re: finish all running activities in the task above a particular activity.

2011-08-16 Thread Carl Lee
Try this: startActivity(new Intent(getApplicationContext(), Login.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); On Aug 16, 5:32 pm, Riv wrote: > How to finish all activities above the current activity in the task.? > I have an application that has logout option. When i logout and login > agai

[android-developers] Re: finish all running activities in the task above a particular activity.

2011-08-16 Thread Carl Lee
s the > LoginActivity. > > On Aug 16, 2:38 am, Carl Lee wrote: > > > > > > > > > Try this: > > startActivity(new Intent(getApplicationContext(), > > Login.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); > > > On Aug 16, 5:32 pm, Riv wr

[android-developers] Android Debug Bridge hack

2011-08-17 Thread Carl Lee
http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=adb;h=9478be080872bd70b379c8d2b6beb78a535f3b2d;hb=HEAD I was reading these source code from android git, because I want to use a feature of Android Debug Bridge - screenshot. Most screenshot apps on market needs Root permission, wh

[android-developers] Re: Android Debug Bridge hack

2011-08-17 Thread Carl Lee
By the way, what I want is to get screenshot from the device without the help of a computer On Aug 17, 8:38 pm, Carl Lee wrote: > http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=ad... > > I was reading these source code from android git, because I want to > use

[android-developers] Re: Android Debug Bridge hack

2011-08-17 Thread Carl Lee
> Thanks > > > > > > > > > > On Wed, Aug 17, 2011 at 6:08 PM, Carl Lee wrote: > > >http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=ad... > > > I was reading these source code from android git, because I want to > > use a feature

[android-developers] Re: Android Debug Bridge hack

2011-08-17 Thread Carl Lee
leave a comment on the tutorial fro others to see. > > Thanks > > > > > > > > > > On Wed, Aug 17, 2011 at 6:28 PM, Carl Lee wrote: > > Thank you but that is not what I want, what I want is to get > > screenshot from the device without > > the help of a

[android-developers] Re: Android Debug Bridge hack

2011-08-17 Thread Carl Lee
I don't think this is a security flaw, because Android will prompt user when he/she enables "USB Debug", Android will allow adbd to run only if user agrees to that prompt message. On Aug 17, 9:07 pm, Mark Murphy wrote: > On Wed, Aug 17, 2011 at 8:43 AM, Carl Lee wrote: >

[android-developers] Re: Problems changing the drawable on a Button

2010-12-10 Thread Carl Lee
Maybe you should just simply use button.setBackgroundDrawable(R.drawable.something) In addition, you should also write a selector xml like this: http://schemas.android.com/apk/res/android";> On Dec 10, 1:24 pm, neuromit wrote: > I'm working on a basic media player and am

[android-developers] Re: onSaveInstanceState problem while making oAuth request

2010-12-13 Thread Carl Lee
I haven't tried yet, but maybe you should see this: http://developer.android.com/guide/topics/resources/runtime-changes.html On Dec 12, 2:14 pm, bobetko wrote: > In my app at some point I am making oAuth request to authorize user > with Twitter. App opens WebView in which user enter his credentia