[android-developers] android5.0 Textview gravity center not working correctly.

2014-12-12 Thread Gavin Qin
in android api 21 and android api20, it looks like the attachment. why in android api21 ,the textview gravity not working Correctly. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Android5.0 TextView gravity center not working Correctly

2014-12-12 Thread Gavin Qin
in android api 21 and android api20, it looks like the attachment. why in android api21 ,the textview gravity not working Correctly. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] HLS Stream with Discontinuities reports incorrect position (4.0.x)

2012-11-12 Thread Rick Gavin
When using an HLS playlist with multiple segments of content spliced together ( separated by EXT-X-DISCONTINUITY tags ), MediaPlayer.getCurrentPosition() doesn't return the correct position. In this scenario, each piece of content has its timestamps starting from zero. So for example, if at

[android-developers] Best Practices for releasing Views controlled by Adapter

2012-11-08 Thread Rick Gavin
Hi All, when a Fragment is being closed, what is the correct way to clean up the memory that is being used by a GridView that is being supplied data by an Adapter subclass. The GridView items are layouts that include an ImageView and a text label. in the Fragment's onDestroyView, do you simp

[android-developers] XVID support by Mediaplayer, MediaRecorder class

2012-03-16 Thread Gavin Fang
Hi, Android develops: I have a plan to porting the mediaplayer wich decode/encode with Xvid and Divx format to Android. But I am NOT sure whether Mediaplayer, MediaRecorder support Xvid or DivX format? Thanks a lot! BR Gavin Fang -- You received this message because you are subscribed to the

[android-developers] Disable CPU frequency scaling from APP?

2011-08-29 Thread Gavin
Hi all, I want do some multimedia work on android, but I found that cpu can't be kept on a high frequency. This makes the result of the player not so good. Is there any solution to disable the frequency scaling feature when my app is running? -- You received this message because you are subscrib

[android-developers] Re: Serious bug in 3.2 ResolverActivity

2011-08-17 Thread Gavin
It was fixed at latest version. -- 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...@googlegrou

[android-developers] when drag view, the view blink

2010-09-16 Thread Gavin Qin
Hello, everyone. I have a problem about the view drag. when i drag the view, it will blink. The code like below:

[android-developers] when drag view, the view blink

2010-09-16 Thread Gavin Qin
Hello, everyone. I have a problem about the view drag. when i drag the view, it will blink. The code like below:

[android-developers] Re: [bluetooth] Can't connect to SPP device

2010-03-24 Thread Gavin
port-android on my HTC Hero. I want to ask if you have solved the problem? If yes, could you share the way? Thanks. Gavin -- 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

Re: [android-developers] Re: How to make a multi-player game on Android

2010-03-05 Thread Gavin Aiken
Yes it's possible, read up on Sockets in Java, you'll have to implement a server to match players based on location. Feel free to come back with some more specific questions when you have done some reading and played around with android a bit. On Fri, Mar 5, 2010 at 2:11 PM, Maxood wrote: > I w

Re: [android-developers] Re: How to make a multi-player game on Android

2010-03-05 Thread Gavin Aiken
Bluetooth is just for close quarters, you want two players on two phones within 10 feet? On Fri, Mar 5, 2010 at 1:41 PM, Maxood wrote: > Let's say it is simply a turn based game then do i have to use a > Bluetooth API for that? I precisely want a game app that can be played > by 2 players on 2 a

[android-developers] Sharing a view among several activities

2009-11-04 Thread Gavin Bong
to notify the widget about changes. Obviously that was meant for database providers. Is it wrong to use it like a publish/subscribe method in the general sense ? Thanks Gavin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Re: Google wave invitations...?

2009-10-16 Thread Gavin Aiken
Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller < kennethadammil...@gmail.com> wrote: > Have any of you gotten an email yet? > I swear I've sent them out... > perhaps they're just nominations for a possible invite to google wave an

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-04 Thread Gavin Bong
> mScrollX is a protected member of View, so should be accessible to any > subclass. It should be but eclipse is flagging it. I presume one of Android's eclipse Builders are flagging it. Regards, G --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-04 Thread Gavin Bong
Thanks. scrollTo() solved it for me. On 2 oct, 23:35, Romain Guy wrote: > mScrollX is not part of the public API. Use getScrollX() and > scrollBy()/scrollTo() to change it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Gavin Bong
In the android Launcher app, Workspace.java accesses the mScrollX member variable. http://www.google.com/codesearch/p?hl=fr&sa=N&cd=2&ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.java&q=computeScroll However it looks like mScrollX is not accessible to my ViewGroup subclass. Eclipse is m

[android-developers] ViewGroup#onInterceptTouchEvent is only called once

2009-09-30 Thread Gavin Bong
Event(). However, I notice that all subsequent events ( MotionEvent.ACTION_MOVE and MotionEvent.ACTION_UP) are only delivered to my #onTouchEvent method. In #onTouchEvent , I always return true. What could possibly be my bug ? I am running on Android 1.5r2 SDK. Thanks a lot Regards,

[android-developers] Correct use of Task Affinities and LaunchModes

2009-09-28 Thread Gavin Bong
My android app contains a suite of mini apps. In short, every screen contains a navbar with several clickable icons, one each for the mini apps (and one for the Main screen). When an icon is clicked, the mini app is launched. In total I have 4 mini apps. So you could imagine that my main screen is

[android-developers] Re: TabHost and startActivityForResult

2009-09-09 Thread Gavin
No one can give an answer?? --~--~-~--~~~---~--~~ 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 em

[android-developers] Re: Obtaining the exact SDK Source

2009-09-04 Thread Gavin Aiken
inition has full access to private APIs (since it is also the thing that > contains the private APIs). You'll need to make any necessary changes to > get it to compile cleanly against the SDK. > > > On Wed, Sep 2, 2009 at 3:13 AM, Gavin Aiken wrote: > >> Hey All, >>

[android-developers] Re: Inserting large volumes of data into SQLite - speed issues

2009-09-02 Thread Gavin Aiken
Does the data NEED to be on the device? Can it not reside on a server? Certainly you are better to manage the synchonisation yourself rather than bundle the 120MB lib for downloading through the marketplace. This sort of download needs to be resumable and I would recommend users only download with

[android-developers] Obtaining the exact SDK Source

2009-09-02 Thread Gavin Aiken
ase? This might well be due my inexperience with Git, please let me know if anyone has this set up correctly and I will try again. I seem, in all honesty, to have the head revision still. Thanks in advance! Gavin --~--~-~--~~~---~--~~ You received this message because y

[android-developers] Re: TabHost and startActivityForResult

2009-09-02 Thread Gavin
More, I am using localActivityManager for tabHost. mTabHost.setup (localActivityManager). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] TabHost and startActivityForResult

2009-09-02 Thread Gavin
All, I meet an issue: my activity cannot return result. I created an activity which has one TabHost. I added three tabs using mTabHost.addTab. Every tab will launch an activity(activity A, activity B, activity C). In activity A, it will call startActivityForResult to start activity A1

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
AutoCompleteTextView has an instance of Popup window. But the class AutoCompleteTextView doesn't have any public method to control popup window. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
AutoCompleteTextView has an instance of Popup window. But the class AutoCompleteTextView doesn't have any public method to control popup window. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
AutoCompleteTextView has an instance of Popup window. But the class AutoCompleteTextView doesn't have any public method to control popup window. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
I guess it may control the display stytle of listview in popup window. But how to adjust the location of popup window? On Aug 12, 4:38 pm, peter wrote: > Create a adpter extends BaseAdpter to fill AutoCompleteTextView > > On Aug 12, 3:40 pm, Gavin wrote: > > > all, >

[android-developers] AutoCompleteTextView

2009-08-12 Thread Gavin
all, Is there any method to control popup window in AutoCompleteTextView? Such as location, background...? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] browser package question.

2009-07-22 Thread Gavin
hello, I found there are two browser dirs at source codes and the package names are : com.android.browser and com.android.wapbrowser. Why? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: data between activities

2009-07-01 Thread Gavin Aiken
is supposed to be done through > Bundles. I guess, that is why they are there... > > Dexter. > > On Jun 30, 3:21 pm, Gavin Aiken wrote: > > Yeah, I use an Application class which holds common data. There are a few > > options; > > > > http://developer.android.

[android-developers] Re: data between activities

2009-06-30 Thread Gavin Aiken
Yeah, I use an Application class which holds common data. There are a few options; http://developer.android.com/guide/appendix/faq/framework.html#3 On Tue, Jun 30, 2009 at 8:26 AM, Saurav Mukherjee < to.saurav.mukher...@gmail.com> wrote: > if both the activities are in the same app, yes, its po

[android-developers] Using an SqliteDatabase from multiple threads

2009-06-24 Thread Gavin Aiken
lter; } etc. Should I just synchronize these methods? Any thoughts appreciated. Kind regards, Gavin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Scaling an image

2009-06-24 Thread Gavin Aiken
Hey all! This has been frustrating me for a while, all I want is to scale an image to dimensions that I define whilst keeping an aspect ratio. So for example, image comes in at 500 * 500, I want to scale to 320 * 480 so I need 320 * 320 so as not to distort the image. This must be a simple 3 line

[android-developers] Re: Binder Thread issue.

2009-06-23 Thread Gavin
OK. thanks for your suggestion. I will modify my design. It is Binder Thread that I want to know. Is there any negative impact? On Jun 24, 10:06 am, Mark Murphy wrote: > Gavin wrote: > > Thanks mike. > > But I don't agree with you . If I stop the service through stopSelf(),

[android-developers] Re: Binder Thread issue.

2009-06-23 Thread Gavin
; > On Jun 23, 6:59 am, Gavin wrote: > > > My app have a service and it will create athreadevery 5 mins. > > Thethreadwill connect internet to download some data, and then exit. > > That's not the right design. Instead look into the alarm manager, you > want an i

[android-developers] Binder Thread issue.

2009-06-22 Thread Gavin
Hello all, I met an issue: when I opened DDMS, I found there are too many "Binder Thread" in my app's porcess. I have no idea on Binder Thread. where did the app create them? why they cannot exit automatically? My app have a service and it will create a thread every 5 mins. The thread

[android-developers] How to support drag and drop on listview.

2009-06-15 Thread Gavin
Hello, I want to know how to manual sort with ListView by using drag and drop? for example, the user can drag an item from postion 2 to position 1. Someone said there is a play list activity that can support it in music application. But I cannot find it in my SDK 1.0. Who can provi

[android-developers] Re: develop a simple game like tic toc

2009-06-13 Thread Gavin Aiken
http://bakhtiyor.com/category/30-days-of-android-apps/page/2/ If you're talking about tic-tac-toe you could look here :) Good luck On Sat, Jun 13, 2009 at 5:22 AM, jaimin wrote: > > hi. > i am new to android i have develop a some e book for android mobile > but i never develop a game > in andr

[android-developers] Checking the Hardware (Phone model) programatically

2009-06-13 Thread Gavin Aiken
vance! Gavin --~--~-~--~~~---~--~~ 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 and

[android-developers] Re: How to execute chmod -R 777

2009-06-10 Thread Gavin Aiken
ust trying to do that for accademic reason!can i do this in an > other way? i don't want to use 1:1! > > i'd like to use an other way , not 1.1 can u suggest something? > > 2009/6/10 Gavin Aiken > >> Well I think the guys were saying it's a bad idea, what is

[android-developers] Re: How to execute chmod -R 777

2009-06-10 Thread Gavin Aiken
Well I think the guys were saying it's a bad idea, what is it that you're trying to achieve? On Wed, Jun 10, 2009 at 9:12 PM, Francesco Pace wrote: > Thanks Gavin, so I have to modify (with chmod 777) 1:1 all file in /data > directory.? > > 2009/6/10 Ga

[android-developers] Re: How to execute chmod -R 777

2009-06-10 Thread Gavin Aiken
http://groups.google.com/group/android-developers/browse_thread/thread/9646c6aea5b78c1f/47238ea9d76e4887?lnk=gst&q=gav+chmod#47238ea9d76e4887 Might help :) On Wed, Jun 10, 2009 at 9:04 PM, Francesco Pace wrote: > Hi guys,I have a problem. I'm working with adb shell and I have to execute > this

[android-developers] Re: thread questions.

2009-06-09 Thread Gavin
ebin, thanks On Jun 10, 12:26 pm, ebin jose wrote: > Hi Gavin, > > My answer is not specific to android. So please see if this is useful to > you, else please ignore. > > I assume that you are worried about any user interaction taking place in the > middle of this download

[android-developers] thread questions.

2009-06-09 Thread Gavin
Hi, I have a question. If I have a list which has many url links. I want to download all url. How should I do? There are two solutions: 1) use only one thread to download all links. It needs a while loop. for example, int i=0; while(ihttp://groups.google.com/group/android

[android-developers] thread question.

2009-06-09 Thread Gavin
Hi, I have a question. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Dalvik Version

2009-06-08 Thread Gavin Aiken
That's great cheers, I jsut need to quotre the VM version I ran my tests on. Gav On Mon, Jun 8, 2009 at 7:00 PM, fadden wrote: > > On Jun 7, 7:26 am, Gavin Aiken wrote: > > I am writing the report for my project and I was wondering if anyone > could > > tell me how t

[android-developers] Dalvik Version

2009-06-07 Thread Gavin Aiken
Hi Guys, I am writing the report for my project and I was wondering if anyone could tell me how to find the current version of the Dalvik VM. My phone is a Dev phone running cupcake. I just can't find it, I'm sure it must be obvious but if any of you know I'd really appreciate a pointer. Cheers,

[android-developers] Is it possible to start my service automaticaly after phone boots up.

2009-06-03 Thread Gavin
hello, I want to write a service in my application. I hope the service can automaticaly access to internet and update database after phone boots up every time. The whole process is background and no any UI for user. Is it possible? there is any demo ? thanks. --~--~-~--~--

[android-developers] Re: SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Gavin Aiken
Hi Mark, Thanks so much for the pointer. It is indeed from the newsletter you mentioned, I shall be signing up too I think. Just in case you thought I was being cheeky and passing this off as my own, his name with a link is right at the top of the source :). Thanks again, Gavin On Tue, Jun 2

[android-developers] Database Pattern - What's your method?

2009-06-02 Thread Gavin Aiken
lso closes the cursor? Any advice or links to source would be greatly appreciated. Kind regards, Gavin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Gavin Aiken
Hi All, I have adapted a SoftHashMap that I found online for use in my Android application. I generate many thumbnails which use a lot of memory and are easily traversed, I want to use an ADT like this so that I don't run out of memory but do make use of the memory available. The cache is meant to

[android-developers] how to remove a directory on file system?

2009-06-02 Thread Gavin
Hello, I have some questions. (1) I want to remove a directory on filesystem, it is successful but some logs info was printed: unable to unlink "/data/data/packageName/ dir1/dir2". there are no any file in dir2. my codes: File dir = getFileStreamPath("dir1"); File subdir=new Fi

[android-developers] sub-thread issue.

2009-05-30 Thread Gavin
Hi, I have some questions about threads. Threre is a main thread A, and then it creats a sub-thread B. I want to know: 1) If main thread A exits or crashs, thread B can continue running? 2) if the upper question's anwser is yes, is there a method that A can notify B before A ex

[android-developers] Re: Grayscaling

2009-05-28 Thread Gavin Aiken
set its color-filter to the > ColorMatrixColorFilter (bwPaint). > - Draw the original bitmap onto the new canvas: > mutableCanvas.drawBitmap(immutable, 0, 0, bwPaint); > - After this drawBitmap call, the mutable bitmap contains a b&w > version of your original mutable bitmap. >

[android-developers] Re: Grayscaling

2009-05-28 Thread Gavin Aiken
Hi Marco, Would you mind giving a brief code snippet of how this might work? I've been trying to get a similar function to run faster but when I use the bitmap the values I thought were written by the canvas aren't there. Kind regards, Gav On Tue, Apr 21, 2009 at 12:21 AM, Marco Nelissen wrote:

[android-developers] Simple Canvas Question

2009-05-28 Thread Gavin Aiken
Hi All, I want to fill a bitmap with a colour. I have the a,r,g & b values. The techinique I'm using is; public Bitmap evaluate(Bitmap input) { Canvas c = new Canvas(input); c.drawARGB(a, r, g, b); return input; } But my changes are not apparent in the returned bi

[android-developers] Re: What is the difference between thread and service?

2009-05-26 Thread Gavin
Could you explain it? I am directly using thread. what is the issue if I don't use service? On May 27, 11:29 am, Dianne Hackborn wrote: > Service doesn't. You still need to use a thread in it. > > On Tue, May 26, 2009 at 8:22 PM, Gavin wrote: > > > Hello, > &g

[android-developers] What is the difference between thread and service?

2009-05-26 Thread Gavin
Hello, I want to download some data from internet. It should not block main UI thread. I know both thread and service can handle the work. What is the difference between them? thanks. --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Gathering Usage Data - Any ideas welcome!

2009-05-26 Thread Gavin Aiken
Hi all, I'm currently working on a demo project and I'm about to try it out with some users. I'd like to automatically record the way they use the application, their navigation route, times spent in each section and duration using the application in general etc. I was wondering if there are any so

[android-developers] Re: How to force to update a view?

2009-05-24 Thread Gavin
It can work. thanks. On May 25, 11:13 am, Christine wrote: > A call to notifyDatasetChanged lets the list adapter know that the > dataset has changed and it should update the view. > > On May 24, 7:16 pm, Gavin wrote: > > > But I insert an item to database from an activi

[android-developers] Re: How to force to update a view?

2009-05-24 Thread Gavin
cursor to be requeried and the > the listview to be updated. > > On Fri, May 22, 2009 at 2:31 AM, Gavin wrote: > > > Hello, > > I have a List activity which use cursor adapter. When an item of > > database is changed, I hope the corresponding view of this list

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
EDIT: 'signed' bytes, as you said Cheers On Fri, May 22, 2009 at 10:00 PM, Gavin Aiken wrote: > Thanks for the quick response and sorry for the unneccesary use of the word > bug. > > I was clearly confused wrrt signed ints and 'unsigned' bytes (the values >

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
es are signed in Java, so 137 is not what you want. Also, > Color.rgb() take ints, not bytes. So (byte) 137 cast as an int results > in rg == -119. > > On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken > wrote: > > Hey all, > > > > Before I submit this I just wanted to

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
Did this in the end; ... int nr = table[r] & 0xFF; int ng = table[g] & 0xFF; int nb = table[b] & 0xFF; ... Where table is a byte array. Have a good weekend!! On Fri, May 22, 2009 at 9:09 PM, Gavin Aiken wrote: > Hey all, > > Before I submit this I

[android-developers] Color Bug?

2009-05-22 Thread Gavin Aiken
Hey all, Before I submit this I just wanted to check it's not a java nuiance. The Color class can be used to extract rgb values from a pixel (32 bit int). I implemented a lookup table filter and used a byte to store each individual r g & b value to save a bit of space. Long story short; p

[android-developers] How to force to update a view?

2009-05-22 Thread Gavin
Hello, I have a List activity which use cursor adapter. When an item of database is changed, I hope the corresponding view of this list can update and get new data from database. I know the time when database is changed, but how to update view? thanks. --~--~-~--~~-

[android-developers] Re: Alarm issue.

2009-05-21 Thread Gavin
great. On May 21, 4:51 pm, "Mark Murphy" wrote: > > I need every alarm have different interval time and start time. > > AlarmManager can handle that. > > >> I want to know how many alarms can be set in one application? > > How much memory do you have? > > >> I need many alarms and

[android-developers] Re: Alarm issue.

2009-05-21 Thread Gavin
I need every alarm have different interval time and start time. On May 21, 4:30 pm, Gavin wrote: > Hi, all > > I want to know how many alarms can be set in one application? > what is the length for every interval time that I can set? > I need many alarms and a

[android-developers] Re: Running exclusively SmallTests

2009-05-21 Thread Gavin Aiken
Hey, Just wondering if anyone has found a way to pass the command line parameter '-e size small' to the Android JUnit test runner as configured through eclipse. I'd rather work within eclipse than on the command line if possible. Cheers, Gav On Sat, Apr 11, 2009 at 11:21 PM, Ga

[android-developers] Alarm issue.

2009-05-21 Thread Gavin
Hi, all I want to know how many alarms can be set in one application? what is the length for every interval time that I can set? I need many alarms and at least 1 month interval time in my application. it is possible? Thanks. --~--~-~--~~~---~--~~

[android-developers] Parsing special code types with SAX Parser.

2009-04-20 Thread Gavin
Hello, I have XML file with gb2312 code type, when I use SAX parser, it have error info: " not well-formated (invalid token)". How should I do ?Thanks. some lines of xml file: 新闻 ... --~--~-~--~~~---~--~~ You received

[android-developers] Re: TDD with Android 1.5

2009-04-14 Thread Gavin Aiken
In my humble setup the test application is separate to the actual application but references it so that the required classes can be used. http://code.google.com/p/miffed/source/browse/#svn/trunk/MiffedTest%3Fstate%3Dclosed As such I can choose to install Miffed (The name of my app) or MiffedTest.

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-14 Thread Gavin Aiken
+1 Thank you guys On Tue, Apr 14, 2009 at 7:58 AM, Pd wrote: > > +1 > > Al Sutton wrote: > > To Xav, Dave, JBQ, Dianne, Romain, and anyone else involved in getting > this > > out there. > > > > THANK YOU. > > > > You may not literally get a thousand thank yous in your mail box, but > it'll > >

[android-developers] Writing PerformanceTestCases

2009-04-11 Thread Gavin Aiken
Hi All, Does anyone have a simple example of a PerformanceTestCaseI want to get some timing metrics for certain business logic functions in my ap. Until now I have been using the current milli

[android-developers] Running exclusively SmallTests

2009-04-11 Thread Gavin Aiken
Hi all, To build a test suite containing only small tests I looked at the source examples and found SmallTests.javain the email app test

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-04-09 Thread Gavin Aiken
Hi Guys, I'm having the same issue. I just go a dev phone and i'm used to wiping the database of my ap by removing it using eclipse from the /data/data//databse.db location. Now i'm developing on a dev phone I don;t have access to /data/. I've installed terminal emulator but I need to know what

[android-developers] Re: file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-09 Thread Gavin
which permission need be added? On Apr 9, 10:49 am, Richard Schilling wrote: > Problem solved. > > There was nothing wrong - it was a permissions problem. > > Richard > > On Apr 8, 6:43 pm, Richard Schilling > wrote: > > > > > O.K., Three problems in one, perhaps all related? > > > My applicati

[android-developers] Re: Passing ArrayList across actvities

2009-04-07 Thread Gavin
I have the same codes with you. I don't know the type of MyList, but I think you should new it before use it. like this: ArrayList aList = new ArrayList(); aList.add(new String("hello1")); intent.putExtra("MyList", aList ); it can work. On Apr 7, 1:07 pm, "a...@lg" wrote: > Hi all, > I have an

[android-developers] Failed to create email account on emulator.

2009-04-07 Thread Gavin
Hello, When I create email account, it prompts "Unable to open connection to server". But the browser application can connect to server after I add proxy setting in settings.db. Is there other settings for email application? Thanks. --~--~-~--~~~---

[android-developers] Re: Taking a picture Intent?

2009-04-06 Thread Gavin Aiken
Hey, Currently you can only get a very small resolution image but I expect this to be changed in Cupcake (I don't know though). android.media.action.IMAGE_CAPTURE Is the intent you want search this list for it to get mroe info, on the emulator this yields a very low resolution still image from t

[android-developers] Image Manipulation - getPixel on a PNG resource error - bug?

2009-03-15 Thread Gavin Aiken
Hi all! I am trying to perform a transformation on an image, specifically a PNG although any lossless format supported by Android would suit me, when running my test suite I keep getting errors that the new pixel values I'm creating are slightly wrong. To narrow the problem I ran my tests with a

[android-developers] Re: How can I source-level debugging in unit test caes in android under eclipse with ADT?

2009-03-14 Thread Gavin Aiken
http://developer.android.com/reference/android/test/InstrumentationTestRunner.html * " To debug your tests, set a break point in your code and pass: -e debug true in addition to the other arguments. "* Knew i'd read it somewhere! Gav On Sat, Mar 14, 2009 at 8:53 PM, Gavin Aik

[android-developers] Re: How can I source-level debugging in unit test caes in android under eclipse with ADT?

2009-03-14 Thread Gavin Aiken
Hi Ying, Did you ever work out how to debug using adb shell am instrument? I can't work out what the flag to allow this is. Kind regards, Gav On Mon, Feb 2, 2009 at 8:09 PM, ying lcs wrote: > > By following this: > > http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html >

[android-developers] Re: JUnit and ClassNotFoundException

2009-03-13 Thread Gavin Aiken
Hi Xav, Thanks for the tip, I'm still having trouble setting up the test project; File New Android Project Create new android project Create Project from existing source android/android-sdk-linux_x86-1.1_r1/samples/ApiDemos/tests ! No activity name defined in /home/gavin/Work/android/an

[android-developers] How to hide signal icon and clock icon at status bar?

2009-03-09 Thread gavin
Hello, I want to hide the two icons but not the whole status bar when user enters my application. After exit my application, the two icons can be re-displayed. How should I do ? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] Re: SimpleCursorAdapter and OnListItemClick - Simple question

2009-03-08 Thread Gavin Aiken
).putExtra("_id", filterId)); finish(); } On Sun, Mar 8, 2009 at 7:56 PM, Gavin Aiken wrote: > Hi guys, > > I use a SimpleCursorAdapter like this; > > @Override > public void onCreate(Bundle icicle) { > super.onCreate(

[android-developers] SimpleCursorAdapter and OnListItemClick - Simple question

2009-03-08 Thread Gavin Aiken
Hi guys, I use a SimpleCursorAdapter like this; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); this.getIntent().getIntExtra("category", -1); Integer category = this.getIntent().getIntExtra("category", -1);

[android-developers] Re: Bitmaps (.bmp) don't show up in 'Pictures' when on SDCard

2009-03-08 Thread Gavin Aiken
Thanks clark, I wasn't aware png was lossless, I changed the format and it all works fine! Cheers, Gav On Sat, Mar 7, 2009 at 5:35 PM, clark wrote: > > The .png file format employs lossless data compression. You may give > that a try. I even through a .png image onto my SD card and it shows

[android-developers] Re: JUnit and ClassNotFoundException

2009-03-06 Thread Gavin Aiken
Hi Bo, Did you resolve this issue? I'm having a similar problem. My test suite is a separate eclipse project, I need to test my android program against a desktop Java program in order to verify that I have ported the application correctly. To so this I need to use classes from both the JAI libra

[android-developers] Gesture detection using touchscreen and accelerometer

2009-02-25 Thread Gavin Aiken
Hi Guys, I want to use gestures for navigation in my application. The classic would be to draw clockwise / counter clockwise on the screen for zooming. Does this functionality exist as is? Any third party libraries? Any reason why I shouldn't attempt to write one if it doesn't exist? I had a decen

[android-developers] Populating a database efficiently

2009-02-20 Thread Gavin Aiken
d"); t.printStackTrace(); } Log.i("FilterDBHelper","Database created in " + (System.currentTimeMillis() - start) + " Milliseconds"); } } Checking the log I can see that the creation and inserts took a whopping 147seconds I must be doing somethi

[android-developers] Content Providers and Database initialisation

2009-02-18 Thread Gavin Aiken
Hey, I have a plethora of data which is currently stored in 1000 different very small text files, I want to store this data in an SQLite database as I feel that this will be more space efficient and hopefully time efficient as I presume a database query is faster than opening and parsing a text fil

[android-developers] Re: Loading DEX files at runtime from SDCARD - Possible?

2009-02-09 Thread Gavin Aiken
/thread/7ee9248deeacd556/b116df9cffe4e045?lnk=gst&r#b116df9cffe4e045 In case anyone else is on this trail. I will also reply to your message there as I need a little further clarification on the options available for a plugin style architecture. Kind regards, Gavin On Mon, Feb 9, 2009 at 8:0

[android-developers] Re: Make a photo with Android Emulator

2009-01-22 Thread Gavin Aiken
There is a command line tool for making an SD card, you then need to pass it in as a command line argument to the emulator. Presuming tools is in your PATH; Command line: mksdcard 1024M sd.iso Argument to emulator: -sdcard C:\PATH_TO_SD\sd.iso Add files manually: adb push local_file sdcard/remote_

[android-developers] Re: Emit a signal

2009-01-21 Thread Gavin Aiken
to simulate a click on this button from another object. > > On 21 jan, 09:35, Gavin Aiken wrote: > > Hey Nico, > > Can you clarify the question, you want an action to be performed after a > > button is clicked? As in with a button listener? Or is your request more > > co

[android-developers] Re: Emit a signal

2009-01-21 Thread Gavin Aiken
Hey Nico, Can you clarify the question, you want an action to be performed after a button is clicked? As in with a button listener? Or is your request more complex than this? Cheers, Gav On Wed, Jan 21, 2009 at 8:31 AM, Nico wrote: > > Hi, > I need to emit a signal "clicked" to a button. How c

[android-developers] GUI Design - Are there standards for user interface design in Android?

2009-01-12 Thread Gavin
Hi all, I am doing some background research for an Android project and was wondering if there are any good journals or books which look at user interface design. I remember taking a more general UI class which taught us about the Gestalt principles etc but I'm looking for any research done on sma

[android-developers] Looking for a TextView with hyperlinks

2008-07-21 Thread Gavin Bong
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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

  1   2   >