Re: [android-developers] How to get total call duration of last call as well as all call duration

2012-02-18 Thread fei ji
Have you ever move cursor to next? Since the orginal cursor is reference to -1, so if you get the data directly before moving one step next, it will always give this error. I found there is getLastOutgoingCall

Re: [android-developers] Get call duration.

2012-02-18 Thread fei ji
You can use the class called SimpleDateFormat to format the output of time. 6258 is actually counted in millis. So you have to change the millis to seconds and output. On Wed, Feb 15, 2012 at 3:05 PM, Jagruti Sangani < jagruti.sang...@inextrix.com> wrote: > Hello, > Iam using the below code and

Re: [android-developers] test cases are in a different package

2012-02-18 Thread fei ji
> > If test cases are put in the same package, then release version will > contain test project. > who is going to do that? the test cases are in a separate project? In android, test project is usually put in a directory called tests under the tested project. If it is a sub-project of the under t

Re: [android-developers] Errors running builder 'Java Builder'

2012-02-17 Thread fei ji
Have you ever installed any plugins? It may caused by some plugin which isn't very robost I think. 在 2012-2-17 下午11:40,"Jim Morris" 写道: > Every time I open Eclipse, I get a message about a null pointer > exception. Everything seems to work okay, but I fear someday it might > cause me problems. I h

Re: [android-developers] Android Source Code

2012-02-17 Thread fei ji
To use it, you just need to adb push launcher.apk /system/app. Then system will auto reload this app. 在 2012-2-18 上午6:50,"Harri Smått" 写道: > On Feb 18, 2012, at 12:21 AM, LiTTle wrote: > > Is there any way to edit the applications that come with the Android > > platform? > > I'm quite sure there i

Re: [android-developers] test cases are in a different package

2012-02-17 Thread fei ji
If test cases are put in the same package, then release version will contain test project. This isn't customer want to see. And you should only test public interface. Because other module can only use the method declared public. If you insist on testing method other than pubic, you can consider to

Re: [android-developers] How to avoid Starting an activity from adb shell using am start command

2012-02-17 Thread fei ji
Maybe you can change the group of the am binery to root. Then the user can use this tool when they have not get root permission. I haven't test it yet. 在 2012-2-17 下午2:47,"banu" 写道: > Hi, >Here my scenario is something like i developed am android > application which requires login authenticati

Re: [android-developers] hai

2012-02-17 Thread fei ji
the call status is stored in contact2.DB. you get the call status from calllogprovider which is in contact provider module. 在 2012-2-17 上午5:24,"deepu mandy" 写道: > i am very new to the android development and working on desidning > apps... > i have so many confusions while doing this plase let

Re: [android-developers] Android Button Customization

2012-02-17 Thread fei ji
I think image button can also be a good choice. You just need to set a attribute called android:src which reference to the image file you want to use. 在 2012-2-17 上午5:24,"value makers" 写道: > Hi All, > > > I am new in android development. I have one problem regarding with my > button customization.

Re: [android-developers] How to create .apk file without using Eclipse.

2012-02-14 Thread fei ji
Do you mean generate apk file in command line? If your project are create under command line then there must be a file called "build.xml". Then after just using "ant debug", it will generate a apk file under bin directory. Check here

Re: [android-developers] Re: google-api-java-client android calendar setup problem

2012-02-14 Thread fei ji
这都不懂,我擦咧 On Tue, Feb 14, 2012 at 10:13 AM, FOX ELE wrote: > All right .. I made a very silly mistake. > bug fixed. > > > 2012/2/14 FOX ELE > >> I read the instruction in this page >> >> http://samples.google-api-java-client.googlecode.com/hg/calendar-android-sample/instructions.html?r=default

Re: [android-developers] Re: how to create .apk file from my .apk file

2012-02-13 Thread fei ji
Do you mean the auto-build function in eclipse? On Mon, Feb 13, 2012 at 4:46 PM, Kirupa wrote: > I think you run your application when it will create .apk(in bin > directory) file automatically. > > On Feb 13, 11:02 am, rathod kantilal wrote: > > I want to dynamically generate .apk file from my

Re: [android-developers] building workspace lockup in eclipse

2012-02-13 Thread fei ji
Eclipse always have lots of problem. You can't stop switching the version both of eclipse and sdk to make it work property. I remember my best choice is helio and r10. 在 2012-2-13 下午7:52,"vivek elangovan" 写道: > hi members, > * I have two Android projects in my Eclipse > workspace

Re: [android-developers] Re: Layout

2012-02-13 Thread fei ji
Maybe it's me not understand your meaning. Here is the link<https://developer.android.com/training/multiscreen/index.html>to explain my meaning. On Mon, Feb 13, 2012 at 3:20 PM, mark2011 wrote: > Dear fei ji : > > I had tried. But the result isn't what I want. May

Re: [android-developers] installing APK without eclipse/android SDK

2012-02-13 Thread fei ji
Store this apk to sd card. Then using some apps like EsExplore to open it then android will install it automatically. On Mon, Feb 13, 2012 at 2:30 AM, John Goche wrote: > Hello, > > I would like to send my APK to someone by email so that they > may install it using WIndows Vista. I have searched f

Re: [android-developers] Layout

2012-02-12 Thread fei ji
Using dip instead of px, then the size will change according the dpi value of specific device. then put your image files in drawable-mdpi -hdpi -ldpi, Then android will get the most suitable image when needed. Then layout is the same as image. On Mon, Feb 13, 2012 at 12:48 PM, mark2011 wrote: >

Re: [android-developers] 找工作

2012-02-12 Thread fei ji
为什么找得到工作 2012/2/13 ttgdz > android学了半年,没工作经验,本人在深圳,为什么找不到工作?悲苦啊 > > -- > 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

Re: [android-developers] how can i import or export the contacts phone into txt file

2012-02-12 Thread fei ji
I think it's not very hard. Just read the content from ContactsProvider and write to file using xml lib. On Fri, Feb 10, 2012 at 2:57 PM, Ketin Febrina wrote: > im actually trying to develope import export contacts phone ... can > you teach us and bring the source code about it ? > > -- > You rec

Re: [android-developers] Monkey on Android 4.0 (UI/Application Execrciser monkey)

2012-02-12 Thread fei ji
I think you should post the log or the appearance then others can help you. 在 2012-2-12 下午1:36,"Android Tester" 写道: > Hi > > Has anyone tried to run the monkey tool on Android Ice Cream Sandwich? > I am having trouble running the tool. I am new to Android and would > like to know the reason behin

Re: [android-developers] debuggable="false"

2012-02-12 Thread fei ji
There are a property called debugable of Avd. You can print by adb shell get prop. I don't if it is the cause of your problem. 在 2012-2-12 下午1:36,"Walid Aly" 写道: > > I set the debuggable attribute to false but still I can debug using > eclipse >android:debuggable="false" > > so what is

Re: [android-developers] Tools for creating themes.

2012-02-11 Thread fei ji
Quite good question Nathan. I am also modifying themes.XML recently. The inconsistency after modification quite annoying me and make UI designer understood how to design following android pattern is not an easy job. I use API demo to test my modification since you can almost find every usage of al

Re: [android-developers] Image button Issue

2012-02-10 Thread fei ji
Did you use "dip" when setting height and width of ImageButton? On Fri, Feb 10, 2012 at 7:19 PM, mark2011 wrote: > Dear All : > >I set up the background image, it will automatically adjust to > match the diffent screens of different devices. But the image set for > the button is not. Is ther