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.
I think you can use this method to get the last call number. And use this
number to query duration .

On Wed, Feb 15, 2012 at 2:22 PM, Jagruti Sangani <
jagruti.sang...@inextrix.com> wrote:

> Hello,
> I want to get the total call duration.I am using the posted code but
> in that I am getting something error like cursor index -1 requested
> with total records 10.How can i  get the call duration of last
> call.Basically i want the timer system like when call will start then
> timer will start and when call end then timer will stop.But that is
> not occur with me so i am trying to get total call duration.If anybody
> know then plz reply me.
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 output will give as below.
> Cursor c =
>
> context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,
> null, null,android.provider.CallLog.Calls.DATE + " DESC");
>int total=c.getCount();
>int numberColumn =
> c.getColumnIndex(android.provider.CallLog.Calls.NUMBER);
>int dateColumn =
> c.getColumnIndex(android.provider.CallLog.Calls.DATE);
>
>  // type can be: Incoming, Outgoing or Missed
>int typeColumn =
> c.getColumnIndex(android.provider.CallLog.Calls.TYPE);
>int DurationColumn =
> c.getColumnIndex(android.provider.CallLog.Calls.DURATION);
>
> if(c.moveToPosition(0)){
>// c.move(1);
>String callerPhoneNumber = c.getString(numberColumn);
>String callerPhoneDate = c.getString(dateColumn);
>String TYeor = c.getString(typeColumn);
>String Duration = c.getString(DurationColumn);
>Toast.makeText(WalkieTalkieActivity.this,"type column-
> >"+TYeor ,Toast.LENGTH_SHORT).show();
>Toast.makeText(WalkieTalkieActivity.this,"duration-
> >"+Duration ,Toast.LENGTH_SHORT).show();
>Toast.makeText(WalkieTalkieActivity.this,"phone number-
> >"+callerPhoneNumber ,Toast.LENGTH_SHORT).show();
>  }
>
>
> output:
>
> type:->2
> duration->6258
> phonenumber:->1552175049
>
> But what is it that i dont know so how can i get correct output please
> tell me.If any other way then also tell me.
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 testing project.

On Sat, Feb 18, 2012 at 8:31 AM, Ray Tayek  wrote:

> At 03:06 PM 2/17/2012, you wrote:
>
>  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?
>
>
>  And you should only test public interface.
>>
>
> i disagree. i usually test non-public classes and methods.
>
> thanks
>
>  在 2012-2-18 ä¸Šå ˆ6:21,"Ray Tayek" <rtay**
>> e...@ca.rr.com >å†™é “ï¼š
>>
>> having the test cases in a different package make it hard to test methods
>> and classes with protected or the default visibility.
>>
>> is there some reason why the test cases are put into a separate package?
>>
>> placing them in the same package seems to work ok.
>>
>> am going to run into trouble by doing this? ...
>>
>
> ---
> co-chair http://ocjug.org/
>
> --
> 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, visit this group at
> http://groups.google.com/**group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 have seen postings about this, but I have never
> seen a resolution. I am running Eclipse 3.7.1. I have not done
> anything non-standard.
>
>
> ==
>
>
> !ENTRY org.eclipse.core.resources 4 75 2012-02-17 07:18:29.140
> !MESSAGE Errors occurred during the build.
> !SUBENTRY 1 org.eclipse.jdt.core 4 75 2012-02-17 07:18:29.140
> !MESSAGE Errors running builder 'Java Builder' on project 'firms'.
> !STACK 0
> java.lang.NullPointerException
>at java.lang.String.(Unknown Source)
>at
>
> org.eclipse.jdt.internal.compiler.problem.ProblemReporter.conditionalArgumentsIncompatibleTypes(ProblemReporter.java:
> 1335)
>at
>
> org.eclipse.jdt.internal.compiler.ast.ConditionalExpression.resolveType(ConditionalExpression.java:
> 556)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1799)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.CombinedBinaryExpression.resolveType(CombinedBinaryExpression.java:
> 337)
>at
>
> org.eclipse.jdt.internal.compiler.ast.ReturnStatement.resolve(ReturnStatement.java:
> 225)
>at
>
> org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:
> 463)
>at
>
> org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:
> 252)
>at
>
> org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:
> 422)
>at
>
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
> 1148)
>at
>
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
> 1258)
>at
>
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:
> 539)
>at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:
> 763)
>at
>
> org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:
> 137)
>at java.lang.Thread.run(Unknown Source)
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 is. Once you have made your changes to Launcher2,
> setup the build environment at Android source root level and simply call
> "make Launcher2" and it should be built into out -dir
> (out/target/product/generic/system/app/Launcher2.apk in my environment).
>
> How to use this apk goes well beyond my knowledge though  :)
>
> --
> H
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 use the reflection of java to test even private
method. But it violate common sense of TDD.
在 2012-2-18 上午6:21,"Ray Tayek" 写道:

> having the test cases in a different package make it hard to test methods
> and classes with protected or the default visibility.
>
> is there some reason why the test cases are put into a separate package?
>
> placing them in the same package seems to work ok.
>
> am going to run into trouble by doing this?
>
> thanks
>
> ---
> co-chair http://ocjug.org/
>
> --
> 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, visit this group at
> http://groups.google.com/**group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 authentication from user before
> performing any further operations,but i found that for
> instrumaentation testing they use commands like
>
> am start  
>
> to start a particular activity,which makes my application insecure so
> i needs a solution to avoid this,because i saw in instrumentation
> testing they will have different testcases for different activities
> where this above command comes into picture to do undergo testing on
> that particular activity.
>
>
> i am running on this quite for a long time.so your ideas wiull be
> appreciated
>
> banu
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 me help if u
> have idea...
>
>
> nw i am working on a sample module to make phone calls and also to get
> status of that call?
> how to get whether he lift the call/ end call?
> how?
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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. i would like to customize a button in a semi
> circular form .
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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
.

On Tue, Feb 14, 2012 at 3:39 PM, Abhishek Kumar Gupta
wrote:

> I want to develop "Theme Creator" application for Android, so I want to
> create .apk file after making theme. Can anyone help me how to proceed ?
> Any help in this regard will be well appreciated.
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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
>> to setup the project. But after I did as said in the page , eclipse
>> still can't find the packages below .It seemed no help information
>> online .Any one can help me ? THX a lot.
>> import com.google.api.services.calendar.CalendarClient;
>> import com.google.api.services.calendar.CalendarRequestInitializer;
>> import com.google.api.services.calendar.CalendarUrl;
>> import com.google.api.services.calendar.model.CalendarEntry;
>> import com.google.api.services.calendar.model.CalendarFeed;
>>
>>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 project. Is it possible
> ?
> > REAP
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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
> * Compiling the first  project works fine
> * The second one always hangs (at 27% complete)
> * Every time i have to restart my eclipse and have to
> compile the project again
>
> what may be the problem ?
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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. Maybe I
> misunderstand your meaning. Could you give me an example? Thanks.
>
> Br,
> Mark
>
> On Feb 13, 1:49 pm, fei ji  wrote:
> > 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:
> >
> >
> >
> > > Dear All :
> >
> > >   I want to write a application to display some information & the
> > > users can set up some data while they click some buttons. If I want to
> > > install this apk into different screen size devices without too much
> > > effort, what kind of layout should I use?
> >
> > > Thanks in advanced.
> >
> > > BR,
> > > Mark
> >
> > > --
> > > 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, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en- Hide quoted
> text -
> >
> > - Show quoted text -
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 for info on
> how they can install the .apk but only found a pointer to downloading
> the Astro file manager and installing from there after copying the apk
> to the phone's file system eg. via usb. But when the application is
> clicked on the message is: "the application is not installed". The
> phone is a Samsung Galaxy S Plus. Any ideas? (I have already enabled
> USB debugging and installation of non market apps in the settings).
> Installing to the phone via eclipse works, but I want to be able to do
> this from the phone's PC which does not have eclipse.
>
> I would like to be able to just compile the Dalvik APK in eclipse and
> send it via email for the user to install it from windows vista.
>
> Any ideas?
>
> Thanks,
>
> JG
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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:

> Dear All :
>
>   I want to write a application to display some information & the
> users can set up some data while they click some buttons. If I want to
> install this apk into different screen size devices without too much
> effort, what kind of layout should I use?
>
> Thanks in advanced.
>
> BR,
> Mark
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 behind this issue.
>
> Has anyone experienced the same issue?
>
> Thanks
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 actually its effect.?
>
> Walid
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 almost all widget in here. And try to make your image has the same
width and height as the corresponding images in framework will reduce a lot
issues.
在 2012-2-12 上午5:05,"Nathan" 写道:

> I've been sold on how you can create a theme and create a visually
> branded experience for your UI, look more professional, and all that
> stuff.
>
> However, I don't know how to get it done.
>
> I know the wrong way. That would be me going into a copy of themes.xml
> and changing whatever looks good to me. I can guess that I will come
> up with something that looks awful to the end users and breaks in
> unexpected ways as I create new layouts. And I don't know that I could
> test it without having every possible layout on every possible
> emulator.
>
> What I'd like to know is how to get my graphic artist, who already has
> great talent in CSS, Illustrator, and other graphic tools, to create a
> theme for me.
>
> Even if he installs eclipse and all the SDK tools, I don't think there
> is anything specifically for editing themes, just for layouts.
>
> Perhaps I am overcomplicating it, but if there are thousands of lines
> of code in
> android-sdk-windows\platforms\android-9\data\res\values
> between colors.xml.,attrs.xml,dimensions.xml, styles.xml, it doesn't
> look small.
>
> Yes, I know you can inherit from a theme and change only the
> attributes you want. But for those who have successfully created their
> own theme, how many attributes (of the 1500 or so) did you have to
> change? If there is any attribute you don't override, you are still
> subject to the whims of the device theme, correct?
>
> Who has created a theme successfully and what process did you follow?
> How many engineering hours (or graphics hours) did it take?
>
> Incidentally, if you are already good at creating a theme, I will hire
> you on an hourly basis.
>
> Nathan
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 there any method that I don't need to adjust the
> position of the ImageButton to match the different devices?
>
> Thanks in advanced.
>
> BR,
> Mark
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en