[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-25 Thread RS
This request might sound like one to extend deadline but it is actually only to extend the window which is shorter than the estimate announced. Though our apps are ready, some developers are not immediately available (not because they are holidaying) and this weekend happens to be a long weekend i

[android-developers] Re: What is the approx time taken to register as a developer and to be able to publish apps on the Android Market?

2009-08-25 Thread soniya
True. Here is the answer that i got on the Android Market forums: Free apps: Typically less than 10mins. (Setup Checkout account to pay, fill android developer profile data). Paid apps: May take a couple of days. At times more. (Needs you to verify merchant account by receiving a few cents into

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-25 Thread Dan Bornstein
On Tue, Aug 25, 2009 at 5:02 PM, Casper Bang wrote: > People who have digged into Dalvik aren't > overly impressed when compared to similar technologies: > http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html Please read the comments on that article, which contained some good discussion, and

[android-developers] Re: Communication between Android devices over 3G

2009-08-25 Thread Roman ( T-Mobile USA)
You can use 3G for communication to another device on 3G. You have only to know that the IP address on 3G is NAT'd. You have to make sure that you tell the other device how to deal with the NAT traversal. One way to solve this is having an external server which is able to translate the IP addresse

[android-developers] Re: how to porting jarkata commons lib to android?

2009-08-25 Thread efan
http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary On Aug 22, 8:56 am, Terry wrote: > hi, everyone. > > jarkata commons lib is very useful for our everyday development. > > is there any porting to android? > > or is there a good way to porting the jarkart commons

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

2009-08-25 Thread Jiang
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. But you know, on G1 with official OS image, /system/lib is readonly. I tried to call System.setProperty to set ja

[android-developers] Re: java question

2009-08-25 Thread efan
use java.lang.Process Maybe it's better to ask pure Java questions in sun Java forum? Good luck! On Aug 23, 10:03 am, srinivasarao wrote: > hi Sir, >           Take Class name as input (command line) and loads that class > Dynamically and calls the main method in that class..how will we do > t

[android-developers] Error : Package R does not exist + ant build

2009-08-25 Thread Sagar
Hello everyone, I am trying to build my project using ant. I first generate build.xml file using "android update project" command. Now i want to run it using ant. When i type "ant debug" commnad it generates error saying that package R does not exist while it has already been generated in gen fol

[android-developers] Re: Enable 24bit color depth in the emulator

2009-08-25 Thread sunbingch...@gmail.com
Now,I face the same problem,how to make Android rendering onto 32bit/ pixelto compile the source code or some way else? On Jul 7, 1:21 am, Weyert de Boer wrote: > Thanks, to bad to hear that. I will try to fight with dithering for now > then. Maybe if I can grasp the code I could try to give

[android-developers] Locale - Conversion

2009-08-25 Thread Sukitha Udugamasooriya
Hi, How can I make the app in Chinese? I could do it for French, German etc. But how to set the language to Chinese? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] TextView auto size

2009-08-25 Thread nwmotog...@gmail.com
I would like to be able to force a TextView to a certain size and if it's contents would be larger then this then the textsize would shrink to accommodate the content. Any thoughts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[android-developers] Re: How do I show chinese type in english android system?

2009-08-25 Thread efan
Android is unicode based and support Chinese char display by default. And in 1.5 (Cupcake) it even include an system app Google Pinyin IME to input Chinese. On Aug 25, 4:42 am, atul wrote: > How do I show chinese type in  english android system? Thanks --~--~-~--~~~--

[android-developers] Re: make adt failed with android source coe in unbuntu

2009-08-25 Thread 何斌斌
thanks ! Maybe i have not downloaded eclipse with pde and jdt . 2009/8/23 Tejas > > Have you downloaded/updated eclipse with pde and jdt ? > btw: what source code are using master / cupcake ? > > On Aug 21, 12:07 am, 何斌斌 wrote: > > hi : > >I can make the whole android source code and sdk ,

[android-developers] Re: What is the approx time taken to register as a developer and to be able to publish apps on the Android Market?

2009-08-25 Thread Michael Leung
That is the reason I think Android is more developer friendly. On Wed, Aug 26, 2009 at 1:55 PM, Marc Lester Tan wrote: > Yup it goes live immediately. > > -Marc > > > On Wed, Aug 26, 2009 at 11:51 AM, soniya wrote: > >> >> :) >> >> 1 more questionWhen the App is submitted,Is there no cert

[android-developers] Re: Do the applications keep/manage their own SQLite databases (files)?

2009-08-25 Thread efan
You can create, update and delete your application database in your application. Follow http://developer.android.com/guide/topics/data/data-storage.html#db to start. On Aug 25, 2:08 am, "mstu...@googlemail.com" wrote: > Hi All, > > Android includes a database engine (SQLite). In general, do the

[android-developers] Re: Problem with Dialog theme when launching from another activity

2009-08-25 Thread ANKIT SOMANI
Any Suggestions ...?? Regards ~Ankit Somani 2009/8/24 ANKIT SOMANI > This Problem is with the Cupcake 1.5 release, I tried it with 1.1 it was > working there. > > Regards > ~Ankit Somani > > > > 2009/8/24 suchita bhardwaj > > >> >> Hi, >> I am also facing the same problem. Can anyone suggest

[android-developers] Multiple colors for a textview

2009-08-25 Thread Sasi Kumar
Can any one help me.. How to give multiple colors for a textview . 1. Don't use HTML. 2. ex:- sample in this i need sa as red color mp as blue le as green color Thanks in advance.. suggess me ... --~--~-~--~~~---~--~~ You received this m

[android-developers] can you tell if you're in the debugger?

2009-08-25 Thread sdphil
programmatically? i.e. I'd like to do something like -- if (debuggerIsAttached()) { // do something } else { // do something else } tia. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" g

[android-developers] Re: How to make device to sleep?

2009-08-25 Thread GodsMoon
I would like to know how to put the device to sleep and how to wake it up as well. Anybody? On Jul 20, 9:45 pm, Sansiro wrote: > Now  I use the code follow: > > IPowerManager.Stub.asInterface(ServiceManager.getService > (Context.POWER_SERVICE)).goToSleep(6) > > But it still does not work. >

[android-developers] Re: What is the approx time taken to register as a developer and to be able to publish apps on the Android Market?

2009-08-25 Thread Marc Lester Tan
Yup it goes live immediately. -Marc On Wed, Aug 26, 2009 at 11:51 AM, soniya wrote: > > :) > > 1 more questionWhen the App is submitted,Is there no certification > cycle like Apple? I submit the App and it goes live? > > On Aug 25, 8:39 pm, cadlg wrote: > > On Aug 25, 5:43 am, for android

[android-developers] Re: What is the approx time taken to register as a developer and to be able to publish apps on the Android Market?

2009-08-25 Thread soniya
:) 1 more questionWhen the App is submitted,Is there no certification cycle like Apple? I submit the App and it goes live? On Aug 25, 8:39 pm, cadlg wrote: > On Aug 25, 5:43 am, for android wrote: > > > > > > > < > able to publish apps on the Android Market?>> > >         its simple 15 min

[android-developers] Android REST XML implementation

2009-08-25 Thread smnirven
Hey folks, I're recently implemented REST XML communication using apache's http libraries in my android app. During the process I found examples on the web to be quite lacking, so I put together a post on blog with some example code - check it out if you want http://www.smnirven.com/?p=15 --~-

[android-developers] Re: Need a way to simulate Button Click Event.

2009-08-25 Thread android.bu...@gmail.com
What's the difference between clickView() and tapView()? I have tried both, the tapView() doesn't work at all for a button. On Aug 19, 9:41 pm, markwhitney wrote: > Brilliant.  Thanks Mark! > > On Aug 19, 9:28 am, Mark Murphy wrote: > > > > > markwhitney wrote: > > > I agree with Rama, sending

[android-developers] Needed reference to source code for adb shell command "input" that is used to inject keypresses.

2009-08-25 Thread Royston
Hi All, The use case that I have to emulate is to inject random keypresses. I have observed it that it is possible using adb shell command "input". Can someone point me to the source code in the android build tree, so that I can accordingly implement the same in our test app. Regards, Royston QC

[android-developers] Re: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-08-25 Thread chicochen
UP On 8月13日, 下午4时44分, quill wrote: > Does that mean I can simulate multitouch events through emulator? > > On Aug 6, 12:14 pm, Anil Sasidharan wrote: > > > > > Hi, > > > Yes, this is possible. Android supports a bench tools for > > testing the device from host-pc. Please check out

[android-developers] Re: latitude buddies content provider

2009-08-25 Thread Arno den Hond
If its not possible to get any other information from that content provider, i would be interested to know about that too??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] "Enter" Key Virtual Keyboard

2009-08-25 Thread Dhanesh
Hi, I am trying to pop up and down virtual Keyboard programmatically for a custom control. I use a surface view and exercise virtual keyboard using Input Method Manager ( as show below) minputMethodManager = (InputMethodManager) this.getSystemService( Context.INPUT_METHOD_S

[android-developers] Re: EMMA Code coverage and JUnit

2009-08-25 Thread santosh kumar
Hi All, I have few questions about this.. plz clarify me.. i want to generate code coverage for apidemos only... first i changed init.rc then i followed every thing which is mentioned in gobor mail.. one thing i am not understanding... when i start the emulator, emulator is getting stucked wit

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-25 Thread Dianne Hackborn
Here the standard log events during a boot showing the time (in ms) to get to each point. This is on a myTouch class device, so should be similar on a G1 etc. In the log, pms == package manager service (which keeps track of all .apks), and ams == activity manager service. At the point where the

[android-developers] Re: Free Chart drawing package for Android

2009-08-25 Thread Michael Leung
Or using Google Chart API http://code.google.com/apis/chart/ But you have to load in a webview. On Wed, Aug 26, 2009 at 10:00 AM, Marc Lester Tan wrote: > Hi Nguyen, > > Try this http://www.achartengine.org. It's free and open-source. > > -Marc > > > On Wed, Aug 26, 2009 at 7:23 AM, Nguyen A.

[android-developers] Re: Icon with label + background

2009-08-25 Thread Klaus Kartou
I asume there must be a build in way to achieve this? I could really need some help on this. Cheers, Klaus On Tue, Aug 25, 2009 at 1:19 AM, Klaus Kartou wrote: > Hi! > I am trying to make an icon with a label, just like the ones used on the > home screen. > Currently I use a TextView with a top

[android-developers] Re: How to use the RotationMatrix, actually how to get it

2009-08-25 Thread Rud
System.arraycopy does not do a deep copy. I just tried it. But it is very fast. I setup the timing test. I did 5000 passes over the copy loops; 522 msfor (i=0; i<3; i++) a[i] = b[i].clone(); 453 msfor(i=3; i-->0;) a[i] = b[i].clone(); 447 msint pos = 0; for(type x; b) a[pos++]

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-25 Thread Casper Bang
Yeah it might not be terribly important, but it does leave a bad impression when showcasing the device. I mean, my Magic takes 1min 10sec to get to the SIM-unlock screen. A full fledged Ubuntu *nix takes about 40 sec, iPhone *nix about 42 sec and Samsung 10" wifi picture frame *nix takes about 20

[android-developers] Re: Free Chart drawing package for Android

2009-08-25 Thread Marc Lester Tan
Hi Nguyen, Try this http://www.achartengine.org. It's free and open-source. -Marc On Wed, Aug 26, 2009 at 7:23 AM, Nguyen A. Nguyen wrote: > Hi, > Could someone recommend a free or cheap Chart drawing package for Android? > I found this one, which is quite elegant but pricey ($300/license): > h

[android-developers] Free Chart drawing package for Android

2009-08-25 Thread Nguyen A. Nguyen
Hi, Could someone recommend a free or cheap Chart drawing package for Android? I found this one, which is quite elegant but pricey ($300/license): http://www.artfulbits.com/Android/aiCharts.aspx Thanks a lot. N.N. --~--~-~--~~~---~--~~ You received this message bec

[android-developers] Communication between Android devices over 3G

2009-08-25 Thread Sew
Hi everyone, I'm not *entirely* sure this one is supposed to go here, but anyway :) Assuming I have two Android-powered devices, connected both to the same 3G network; does the current API of Android allow to have a Service running on one of them being contacted by an Application running on the

[android-developers] Java N00b Test Question

2009-08-25 Thread budoka
Hi there, I am brand new to both Java and Android, but I'm really interested in Android development. Anyway, I'm trying to get going with TDD for the platform. I found this in the API samples: public class AllTests extends TestSuite { public static Test suite() { return new TestSuit

[android-developers] Re: Ressource Management / Priorization of applications?

2009-08-25 Thread 3crowntech
Hi Matthias, You can set thread priority by android.os.Process.setThreadPriority method. This is how android controls resource allocation. Thanks. On Aug 26, 5:45 am, "mstu...@googlemail.com" wrote: > hi all, > > the Android web site indicates that "all applications are created > equal". What i

[android-developers] Re: MyTouch Lag Problems

2009-08-25 Thread Sekhar
I have myTouch, and I just downloaded your game to check out what you're saying, and yes - it does miss letters if I move my finger quickly. Edges are also a problem, but not that much. On Aug 24, 10:04 pm, Mike wrote: > Hi, I am the creator of WordUp!  This game has done well, and I have > had

[android-developers] ADC2 Question re: Updates

2009-08-25 Thread bkbonner
Dan Morrill, etc. We are working on an app for ADC2. While we've spent a great deal of time of the past 2 months working on the application (front and backend), we're nearing completion as the date arrives. In the unlikely event that a bug slips through, will we have to release the application

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-25 Thread Yusuf Saib (T-Mobile USA)
The Android OS takes a long time to boot, particularly on a device which is much slower than a desktop. Apps don't take so long. Android was designed to do other things well; boot time doesn't appear to be a priority. There is plenty of info on how to boot Linux fast, both on devices (http://mobli

[android-developers] Re: ADC2 revising uploaded apps

2009-08-25 Thread bkbonner
Yes, but I've seen a lot of phones that have had a TON of updates, many bugfixes, etc. If this app is open to all users, then it seems like it would be in the developers best interest to fix them, otherwise the users think they're not being responsive. Can someone from the ADC2 respond? On Aug

[android-developers] ADC 2 submission category (?)

2009-08-25 Thread Ilya Shinkarenko
Hi all, I am going to commit my application, but I am a bit confused which category to choose. The software helps to keep score and statistic of a tennis match, and it is also possible to share the scores/stats (see www.tennis-math.com ). So, would it be "Entertainment" OR "Lifestyle" OR "Misc" OR

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
well i don't know then. that code works for me here. if you like, you can direct-message me the hostname and user/pw etc and i can try it here. >Yes I can. > >On Aug 26, 1:57 am, Jason Proctor >wrote: >> can you connect to that server using the command line? >> >> >> >> >> >> >I have still

[android-developers] Re: Download file from server

2009-08-25 Thread engin
Yes I can. On Aug 26, 1:57 am, Jason Proctor wrote: > can you connect to that server using the command line? > > > > > > >I have still get error even if I used method that you suggest. I have > >internet permission. My code piece that causes error is following: > >          String  url = "ftp://

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
can you connect to that server using the command line? >I have still get error even if I used method that you suggest. I have >internet permission. My code piece that causes error is following: > String url = "ftp://username:passw...@ftp.something.net/test/ >Button.apk"; > is =

[android-developers] Re: Handling phone ringing

2009-08-25 Thread Ronald Pompa
But how does WhitePages handle this? They are able to show a dialog on top of the incoming caller screen. See following image: http://gadgetophilia.com/wp-content/uploads/2008/10/callerid.png How can I show a notification like this and dismiss it when the caller state has changed? // Ronald On

[android-developers] Re: Download file from server

2009-08-25 Thread engin
I have still get error even if I used method that you suggest. I have internet permission. My code piece that causes error is following: String url = "ftp://username:passw...@ftp.something.net/test/ Button.apk"; is = new URL (url).openStream (); Log is as follows: 08-26 01:50:27

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
ok. looks like the dalvik vm found a piece of java bytecode it didn't like. this can happen with some java compilers. one solution is to compile the FTP library yourself, if the source is available. HOWEVER another is to use plain old URL.openStream(), like this - InputStream is = null; F

[android-developers] Re: ADC2 revising uploaded apps

2009-08-25 Thread RS
can be updated again and again till midnight 31st aug. On Aug 25, 11:11 pm, tansaku wrote: > Hi, > > Does anyone know if apps uploaded to the ADC can be modified before > the closing date, or if you upload once and that's it? > > Many thanks in advance > CHEERS> SAM --~--~-~--~~-

[android-developers] ADC2 revising uploaded apps

2009-08-25 Thread tansaku
Hi, Does anyone know if apps uploaded to the ADC can be modified before the closing date, or if you upload once and that's it? Many thanks in advance CHEERS> SAM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Re: Download file from server

2009-08-25 Thread engin
here is log file: 08-26 01:06:55.988: WARN/dalvikvm(1362): VFY: register1 v2 type 12, wanted 11 08-26 01:06:55.988: WARN/dalvikvm(1362): VFY: rejecting opcode 0x71 at 0x0204 08-26 01:06:55.998: WARN/dalvikvm(1362): Exception Ljava/lang/ VerifyError; thrown during Lcom/jscape/inet/ftp/Ftp;. 08-26

[android-developers] Re: Simple Java Question

2009-08-25 Thread Shawn Brown
HI, > My garbage collection went from once every 6 seconds to once every 27 > seconds. So you are happy with that! Less need for garbage collection is a good thing right! > I did not try using a String. There was another post on the group that > said a String would be more costly than a Forma

[android-developers] Re: Running Android in the virtualization layer (e.g. VMware) possible?

2009-08-25 Thread Roman ( T-Mobile USA)
Of course the latest ISO is not insync with the latest from the Android source page, but the ISO image is basedon android cupcake 1.5. http://code.google.com/p/live-android/wiki/readme -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-25 Thread Photics
I've been considering AdMob for mobile advertisements. I'm waiting to hear back from Google. I figure that I can wait a few more days. If my AdSense account is reactivated, I then plan to sign up for the AdSense Mobile Beta. It seems better to use that than regular AdSense, but I don't think it wa

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
unless you post the error you're seeing, everyone here is flying blind. thanks. >Anyone who used ftp client before can understand my problem or can >give some suggestion. My problem is this this code piece work in java >project succesfully but when I try it in android error gives. I think >thhe

[android-developers] Re: Download file from server

2009-08-25 Thread engin
Anyone who used ftp client before can understand my problem or can give some suggestion. My problem is this this code piece work in java project succesfully but when I try it in android error gives. I think thhere are some limitations and I want to learn what are possible problems. On Aug 26, 12

[android-developers] Ressource Management / Priorization of applications?

2009-08-25 Thread mstu...@googlemail.com
hi all, the Android web site indicates that "all applications are created equal". What is the strategy to ensure that critical applications/ services have priority? Are there any facilities Android does provide to ensure certain applications and/or threads to receive a minimum of CPU bandwith (a

[android-developers] Re: Preventing Screen uto Lock while my application is running

2009-08-25 Thread Dianne Hackborn
Yeah, it needs to be in the radar activity. Trying to keep the screen on while you are not in the foreground is... questionable at best. Best case, the system kills your process while it is in the background and you are no longer keeping the screen on. Worst case, the user presses home and goes

[android-developers] Re: Running Android in the virtualization layer (e.g. VMware) possible?

2009-08-25 Thread mstu...@googlemail.com
Thanks Roman! Ok, but LiveAndroid is not Android 1.5, it's rather some arbitrary distribution including the Android Runtime? On Aug 25, 8:59 pm, "Roman ( T-Mobile USA)" wrote: > You can download the ISO images fromhttp://code.google.com/p/live-android/. > Now you can download a complete ISO ima

[android-developers] Re: Download file from server

2009-08-25 Thread Jason Proctor
some people on this list are clever, but they're not mind-readers. polite request to posters: POST ALL THE ERROR INFORMATION YOU CAN. thanks. >Hi I am tryin to connect server and download file from server. Here is >my code > > >Ftp ftp = new Ftp("hostname","user","password"); > t

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-25 Thread Dan Sherman
No deadline extension + 1 On Tue, Aug 25, 2009 at 5:20 PM, CraigsRace wrote: > > No deadline extension + 1 > > On Aug 26, 2:06 am, "Maps.Huge.Info (Maps API Guru)" > wrote: > > I see no need to extend the deadline, it's been public since May 27th, > > if you're not ready by now, you'll probably

[android-developers] Re: How to launch VideoCamera Activity and then read tge file created?

2009-08-25 Thread Jason Proctor
i've never tried this approach, but an alternative could be doing a query on the video media content provider and sorting by descending insert time. (offhand i can't remember the name of the column, but it's there in MediaColumns somewhere.) hth >Hi, > >I am launching the VideoCamera activity

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-25 Thread mstu...@googlemail.com
Thanks Chris! Some questions regarding your response: Do you know the reason why Android is so slow on start-up? Do you think it's possible to speed up Android by preventing certain applications loading by default and applying some of the fast booting improvements in order to drastically decreas

[android-developers] Re: China to have there own Android Market?

2009-08-25 Thread CraigsRace
Thanks for the info. Going to stay well clear of them. Cheers. On Aug 26, 1:04 am, Hong wrote: > They also operate jailbreak iPhone apps and pirated iPhone apps, if you so > care. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: EMMA Code coverage and JUnit

2009-08-25 Thread hari uppalapati
hi i was not facing any issues with emulator.Only thing was my coverage.ec file was empty as my sdcard is not recognised.with the following steps the issues was resolved.If possible post the logcat o/p and also the steps followed. 1) edit system/core/rootdir/Android.mk so that the copy_from variabl

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-25 Thread Michael Leung
I think Adsense is for webpage, is not for Android App. So, I am not planning to put Andsense code in my apps. On Wed, Aug 26, 2009 at 4:08 AM, tobias429 wrote: > > Hi, > > I went through exactly the same process after doing exactly what you > described you did: displaying ads on a web-page that

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-25 Thread patrick
Hi, i'm asking wher can we ask google to extend the deadline? thks On 25 août, 17:05, Dan Sherman wrote: > There's no reason that they would change the deadline.  The deadline has > been set at the 31st since late May (as stated before).  With that deadline > posted, your app should be ready t

[android-developers] Re: Download file from server

2009-08-25 Thread canadiancow
I was briefly looking into this earlier today. I believe it can be done with java.net.URL ( http://d.android.com/reference/java/net/URL.html ), but I'll probably have more information on Thursday. On Aug 25, 4:54 pm, engin wrote: > Hi I am tryin to connect server and download file from server.

[android-developers] How to launch VideoCamera Activity and then read tge file created?

2009-08-25 Thread sreeram
Hi, I am launching the VideoCamera activity from my main activity but not able to get a callback to read the file created. Does anyone have an example on how to do this? This is what I have: public class Video extends Activity { private static final int VIDEO = 1; @Override

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-25 Thread CraigsRace
No deadline extension + 1 On Aug 26, 2:06 am, "Maps.Huge.Info (Maps API Guru)" wrote: > I see no need to extend the deadline, it's been public since May 27th, > if you're not ready by now, you'll probably never be ready. People > have to learn that a deadline means something, extending it would

[android-developers] Re: accessing Activity methods inside onClickListener().

2009-08-25 Thread sdphil
ah... because I need to say -- return (String) tv.getText().toString(); doh. On Aug 25, 12:07 pm, sdphil wrote: > I have a click listener: >     private OnClickListener onMyListener = new OnClickListener() { >         public void onClick(View v) { >             myMethod(); >         } >     }

[android-developers] Download file from server

2009-08-25 Thread engin
Hi I am tryin to connect server and download file from server. Here is my code Ftp ftp = new Ftp("hostname","user","password"); try { ftp.connect(); ftp.setLocalDir(new File("/sdcard")); ftp.setDir("test");

[android-developers] Re: What's the meaning of the $ (dollar sign) in the backtrace?

2009-08-25 Thread Brian
Thanks Dianne, it all makes sense now! So I guess the number after $ (i.e. 2500) is probably just some memory offset or something.. On 8월25일, 오후2시54분, Dianne Hackborn wrote: > It's a thunk to allow an inner class to call a private method (or access a > private variable) on its containing class.

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-25 Thread Yuri Dario
Hello, one thing it is still not clear to me. I see that applications submitted for ADC2 will not be visible into the market, so we can publish another application in the market under a different package name. But application updates are not clear: while apps on market can be updated as we need

[android-developers] adc2 signing

2009-08-25 Thread skink
when submitting .apk to adc2 how should i sign my .apk? should i use default google dbg key? if not, what requirements should i meet? thanks pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: Preventing Screen uto Lock while my application is running

2009-08-25 Thread Georgy
hold on I was thinking: I am calling the radar intent like this: Intent i = new Intent("com.google.android.radar.SHOW_RADAR"); could it be that the line of code you mentioned must be in the RADAR activity? meaning that I cannot control it unless I write the radar activity that I am referencing

[android-developers] Re: Preventing Screen uto Lock while my application is running

2009-08-25 Thread Georgy
I actually read your post Dianne but somehow it doesn't work. To be more specific I am using the RADAR intent and try to keep the screen on while navigating to a location. Thanks On Aug 25, 4:09 pm, Dianne Hackborn wrote: > In your activity's onCreate: > > getWindow().addFlags(WindowManager.La

[android-developers] Hwo to use getLineCount method in TextView? what is the internal Layout?

2009-08-25 Thread eric.D
Hi guys, In my app, there is a TextView ,more than 20 lines .I want to divide it into multi-screen display in a ScrollView. when I invoke the getLineCount method ,I get 0(Zero). the reference of android developer guide said "Return the number of lines of text, or 0 if the internal Layout has

[android-developers] Re: Preventing Screen uto Lock while my application is running

2009-08-25 Thread Dianne Hackborn
In your activity's onCreate: getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); No need for a permission, no need to do stuff as the user enters and leaves your activity, no chance of having bugs where you prevent the device from sleeping when the user isn't in your app. I wis

[android-developers] Re: Preventing Screen uto Lock while my application is running

2009-08-25 Thread Georgy
For example: public void onCreate() { PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock (PowerManager.FULL_WAKE_LOCK, "My Tag"); wl.acquire(); } public void onDes

[android-developers] Re: How to handle this kind of situation within my code

2009-08-25 Thread Dianne Hackborn
Also in the original scenario, your service was NOT running in the background -- its onDestroy() was called, and you ignored it and continued doing stuff. :) Your process will happen to stick around for some time after that in case it is needed again, but the system will fairly aggressively kill a

[android-developers] Re: Preventing Screen uto Lock while my application is running

2009-08-25 Thread Streets Of Boston
Which ways did not work or were complicated? On Aug 25, 4:01 pm, Georgy wrote: > Hello, > > I read a lot of posts concerning preventing the screen auto lock but > didn't find an efficient way. > > Isn't there any simple line I could put to do such a thing? everything > looked so complicated, or

[android-developers] Re: How to handle this kind of situation within my code

2009-08-25 Thread Streets Of Boston
Use the 'startService' method as well. Just bind your activity to your service as you did before, but in addition, call 'startService' to start your service. When your activity exits and unbinds from your service, your service remains alive because it was called by a 'startService'. When you call

[android-developers] Preventing Screen uto Lock while my application is running

2009-08-25 Thread Georgy
Hello, I read a lot of posts concerning preventing the screen auto lock but didn't find an efficient way. Isn't there any simple line I could put to do such a thing? everything looked so complicated, or didn't work. thanks --~--~-~--~~~---~--~~ You received this

[android-developers] Re: OpenGL ES confusion

2009-08-25 Thread tylik
Harish, how are you setting up your frustum ? (it is done with glFrustumf() function call). Also you should be able to just cut and paste the code into the message -- Best regards, Dmitry On Aug 24, 10:54 pm, harish android wrote: > Hi All, > I am new to Android and OpenGL world. > > I've crea

[android-developers] Take a Picture without an Activity

2009-08-25 Thread canadiancow
I'm writing an Android service, and I want the ability to take a picture. I've read that you need to startPreview before you can takePicture, but that requires a SurfaceHolder. Is there another way to do this, or at least a hack to get around this issue? Thanks --~--~-~--~~

[android-developers] Re: How come the accelrometers maximum sampling rate are so low?

2009-08-25 Thread QTB QTB
If you're interested, the "Programming for Battery Life" talk at Google I/O earlier this year talked about the sampling rate of the accelerometer (with an eye to battery life, but there were minimum/maximum rate figures also). The talk is on YouTube. It was somewhere in the middle of the talk -

[android-developers] Re: Emulator quick start

2009-08-25 Thread QTB QTB
It takes a bit of time to redeploy, because the new APK has to be installed. Definitely shouldn't take 30 seconds though - it only takes 10-15 seconds on my P-M 1.6 GHz Dothan (1.2 GB RAM). You can also check the Console or Logcat to see what the emulator is doing while it's loading. On 8/25/09

[android-developers] Additional fonts for use with Webkit

2009-08-25 Thread Yoav
Hi, I am interested in displaying web pages with more than the 3 installed fonts. I tried the demo of installing fonts as assets and changing the typeface, but I am not sure if it applies to a Webview. I was able to modify the sdk and install more fonts in frameworks/base/ data/fonts. I can se

[android-developers] Re: Color tolerance in a 9-patch border

2009-08-25 Thread Dianne Hackborn
The border has to be either black and white or black and transparent. On Tue, Aug 25, 2009 at 12:49 PM, Nmix wrote: > > While fooling around with some custom buttons I made, to save time I > manipulated the color of the entire 9-patch image, not just inside the > 1-pixel border. Every time this

[android-developers] Re: What's the meaning of the $ (dollar sign) in the backtrace?

2009-08-25 Thread Dianne Hackborn
It's a thunk to allow an inner class to call a private method (or access a private variable) on its containing class. I've started getting in the habit of going through code and getting rid of private methods and variables from these core system classes, to get rid of such thunks, but that does ha

[android-developers] Re: Emulator quick start

2009-08-25 Thread Donn Felker
I'd upgrade to at last 2GB, if not 3+. On Tue, Aug 25, 2009 at 1:38 PM, David Turner wrote: > Strange, that should be much much faster if all you do is > rebuild/reinstall/launch a trivial app. > > I would suspect your computer doesn't have enough RAM and is swapping like > mad between > Eclipse

[android-developers] Re: Upload Files in the background

2009-08-25 Thread Donn Felker
The best way to do this (IMO) is to submit the files via a background process. You dont want anything hogging up the UI thread or you'll get a FC/Wait dialog which then the user will most likely force-close. Look up services in the docs and check out some of the sample apps, such as apps for andro

[android-developers] Color tolerance in a 9-patch border

2009-08-25 Thread Nmix
While fooling around with some custom buttons I made, to save time I manipulated the color of the entire 9-patch image, not just inside the 1-pixel border. Every time this corrupts the 9-patch functionality of the button. What is the tolerance of the color and alpha pixels of that 9-patch border?

[android-developers] Re: Please, some layout help.

2009-08-25 Thread Nmix
It may be you're not re-populating the ListView over configuration changes. Try this: with the list showing properly, press the call button (which should pause your activity), then press the back button to resume your activity. Is the ListView populated? If not, you may have a logic problem, not a

[android-developers] Re: MyTouch Lag Problems

2009-08-25 Thread Dianne Hackborn
As far as I know, the myTouch/Sapphire screen is the same as the Dream/G1 screen, and they both are inaccurate along the edge. You can run the Pointer Location applet in DevTools to see what they do -- you'll notice when you get close to the edge the pointer snaps to the edge. What is happening i

[android-developers] Re: Checking whether DB Exists

2009-08-25 Thread Mark Murphy
> I would like to check whether there is any direct API available to check > whether a particular Database exists or not ? > > Currently, to initialize data for the first time (not repeatedly), we try > of > open the db and if it fails we know the database does not exists otherwise > it is already

[android-developers] Checking whether DB Exists

2009-08-25 Thread Kumaravel Kandasami
Hi, I would like to check whether there is any direct API available to check whether a particular Database exists or not ? Currently, to initialize data for the first time (not repeatedly), we try of open the db and if it fails we know the database does not exists otherwise it is already created

[android-developers] Re: the ISSUE of canvas.drawBitmap API

2009-08-25 Thread Dmaxi
Try 56.6f, 56.7f, etc... They are the floats, otherwise they are doubles. --~--~-~--~~~---~--~~ 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@googlegroup

  1   2   3   >