[android-developers] sending Monkey commands in a test application

2009-01-19 Thread Frank
I was trying to send Monkey commands in one of my test applications. But When I install it on the emulator, the packageManager refuses to grant permission SET_ACTIVITY_WATCHER which is required to run Monkey. Is it possible to call Monkey in a test application?

[android-developers] Re: Notepad Exercise 1 solution gives weird errors

2009-03-26 Thread frank
For anyone still having problems these files are hidden files that start with '.' On Mar 1, 9:52 pm, plankeye back_in...@yahoo.com wrote: Just in case you haven't gotten an answer yet, there are three unwanted files in the Notepadv1\src\com\android\demo\notepad1 directory.  Delete these files

[android-developers] Android Touch Inputs via adb

2009-04-02 Thread frank
Hello, Is there any way to issue touch events via adb. For example issue a touch event at coordinate (0,0). I know you can issues keyevents and string inputs via adb shell input. Please let me know. Thanks, Frank --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Android Touch Inputs via adb

2009-04-02 Thread frank
Ok so I have figured out that MotionEvents are used for what I need. MotionEvent: Object used to report movement (mouse, pen, finger, trackball) events Sooo, is there anyway to issue these events through ADB??? Please let me knows!!! On Apr 2, 4:30 pm, frank frank.yens...@gmail.com

[android-developers] Re: Android Touch Inputs via adb

2009-04-03 Thread frank
Any input? On Apr 2, 4:52 pm, frank frank.yens...@gmail.com wrote: Ok so I have figured out that MotionEvents are used for what I need. MotionEvent:  Object used to report movement (mouse, pen, finger, trackball) events Sooo, is there anyway to issue these events through ADB

[android-developers] Bug in dalvik? Application will not load on package change

2009-10-15 Thread Frank
Recently I changed the package path of the launcher activity (so the activity is one step lower down the package). The root package is still the same. I made the corresponding changes to the AndroidManifest.xml and while testing, it works fine on my phone. However a number of users are

[android-developers] Bug in dalvik? Application will not load on package change

2009-10-15 Thread Frank
Recently I changed the package path of the launcher activity (so the activity is one step lower down the package). The root package is still the same. I made the corresponding changes to the AndroidManifest.xml and while testing, it works fine on my phone. However a number of users are

[android-developers] Re: Bug in dalvik? Application will not load on package change

2009-10-16 Thread Frank
anyone? this bug is damn annoying. On Oct 15, 9:24 am, Frank arro...@gmail.com wrote: Recently I changed the package path of the launcher activity (so the activity is one step lower down the package).  The root package is still the same.  I made the corresponding changes

[android-developers] Android 2.0

2009-10-26 Thread Frank
Why is the SDK for all android releases always so late on arrival? Developers usually have barely 1-2 weeks to prepare before the release is dropped into consumer's hands. With Android 2.0 coming out soon on the Droid, set to be announced in October 28th and then possibly releasing in November,

[android-developers] debugging for Android PC

2010-08-24 Thread Frank
in the emulator from eclipse. But I have no idea how to get the logs if I am making a PC becoming an Android Emulator... Any help is appreciated. Thanks, Frank -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] debugging tool for Android PC

2010-08-24 Thread Frank
in the emulator from eclipse of my PC. But I have no idea how to get the logs if I am making a PC becoming an Android Emulator... Any help is appreciated. Thanks, Frank -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] The larger resolution android emulator doesn't show up

2010-07-16 Thread Frank
has limitation to the value of resolution by width multiply height. Does the emulator not supports 1366*800 or larger resolution? Please give me some advice? Thanks very much advanced. Best Regards Frank -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Hide Phone Number in Dialer

2010-07-27 Thread Frank
Hi, I'm using a VIEW intent to invoke the default dialer with a phone number provided by my activity. Is there a way to have the number display in the dialer as hidden, at least until the user decides to call the number? Thanks much, Frank -- You received this message because you

[android-developers] Re: opening Android Email application from another application

2010-10-17 Thread Frank
with granted permission can access the passwords of the email accounts. So how can i access the emails, now? Regards, Frank On Oct 6, 8:39 pm, Priyank priyankvma...@gmail.com wrote: Hi, I have my application which creates an audio file. I need to forward this file via Android Email app

[android-developers] Failed import from 1.0, issue with R.java

2009-07-20 Thread Frank
Hi all, Attempting to import my code from 1.0 to 1.5 sdk. just a bit of background info, i originally wrote the code for 1.0 on a windows machine, now i have a mac, eclipse and the latest sdk and would like to import and continue coding. The import went bumpy and some problems were solved from

[android-developers] Re: problems importing existing project into eclipse

2009-07-20 Thread Frank
Another problem... After importing and receiving same issue as above, I set the target to 1.1, rebuilt, and Android fix project properties but now im getting an error in my R.java file. Eclipse is saying that The type R is already defined Any ideas? is there a way for force refresh the R.java

[android-developers] Re: Failed import from 1.0, issue with R.java

2009-07-27 Thread Frank
are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 20, 1:39 pm, Kent Loobey k...@uoregon.edu wrote: On Sunday 19 July 2009 22:29:01 Frank wrote: Hi all, Attempting to import my code from 1.0 to 1.5 sdk.  just

[android-developers] Re: problems importing existing project into eclipse

2009-07-27 Thread Frank
yeah that was exactly it. I figured that would be the problem but I only deleted it from the editor and not the actual file. Thank you all for your help. On Jul 20, 4:23 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I'll bet you have an R.java file in your source directory,

[android-developers] Getting a resource id from an xml file

2010-03-09 Thread Frank
I have 3 sound files in my raw folder and then this in /values/ sounds.xml resources array name=sounds item name=sound1 type=rawR.raw.sound1/item item name=sound2 type=rawR.raw.sound2/item item name=sound3c type=rawR.raw.sound3/item /array /resources I'm trying to load all

[android-developers] Why ImageView doesn't show up inside ScrollView

2011-05-19 Thread Frank
, height) ); iv.setImageBitmap(bmp); iv.setScaleType(ImageView.ScaleType.CENTER); addView(iv); } } However, if I derive MyCtrl from ImageView directly, the white image shows up. Your help is highly appreciated. Cheers, Frank -- You received this message because you

[android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Frank
there is AbsoluteLayout, but it is deprecated. So do you know of any option to achieve this? Thank you very much. Frank On May 20, 3:03 am, Mark Murphy mmur...@commonsware.com wrote: Why are you using LinearLayout.LayoutParams for a child of aScrollViewsubclass? On Thu, May 19, 2011 at 9:21 PM, Frank

[android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Frank
it cannot benefit from the possible hardware acceleration? This is just my concern. Your expertise is highly appreciated! Thanks, Frank Bear in mind that there is a massive range of screen resolutions (based on size/density), which is why AbsoluteLayout is deprecated, as it does not lend itself

[android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Frank
Anyways, thank you, Mark. On May 20, 11:14 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, May 20, 2011 at 2:12 PM, Frank frank.android@gmail.com wrote: If I can tile a ViewGroup as I planned originally, I can tile beyond the visible region. Then when it is scrolled, Android can

[android-developers] SurfaceView vs View (Canvas Size?)

2011-05-27 Thread Frank
(because of out of memory). Does any of you know any solution to this problem? Thank you very much. Thanks, Frank -- 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

[android-developers] Re: SurfaceView vs View (Canvas Size?)

2011-05-28 Thread Frank
position. I am currently using dramBitmap, but the scrolling is not very smooth. Frank On May 27, 3:50 pm, Dianne Hackborn hack...@android.com wrote: You shouldn't put a SurfaceView inside of a ScrollView or other such container.  Since a surface view is actually creating a separate window

[android-developers] Re: SurfaceView vs View (Canvas Size?)

2011-05-30 Thread Frank
that others could benefit. Frank On May 27, 11:40 pm, Frank frank.android@gmail.com wrote: Thank you very much,  Dianne. So if I do useViewand I have to redraw it in onDraw while scrolling, how can I make the drawing process as fast as possible?  Basically,  I have a whole bunch of tile

[android-developers] View's scrollbars disappear

2011-06-06 Thread Frank
and the horizontal scrollbar still doesn't show up. I have been looking around for answers for a while, but didn't find any solutions. Does anybody see any possible problems? BTW, I am using Android 3.0 (API 11). Regards, Frank -- You received this message because you are subscribed to the Google

[android-developers] problems with fopen in native code

2011-06-14 Thread Frank
for others. Why is that? Any insights? Thanks. Cheers, Frank -- 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

[android-developers] Re: problems with fopen in native code

2011-06-14 Thread Frank
Thanks, Chris. I will definitely do that. On Jun 14, 9:49 am, Chris crehb...@gmail.com wrote: Frank, There's a android-ndk group that you may want to try. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: problems with fopen in native code

2011-06-14 Thread Frank
Thanks, Chris. I've done that. On Jun 14, 9:49 am, Chris crehb...@gmail.com wrote: Frank, There's a android-ndk group that you may want to try. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: problems with fopen in native code

2011-06-14 Thread Frank
there). Frank On Jun 14, 9:52 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Jun 15, 2011 at 1:42 AM, Frank frank.android@gmail.com wrote: Hi All, I am experiencing a strange problem of using fopen in native code. I have a few files in /mnt/sdcard/Download and all of them have

[android-developers] Re: problems with fopen in native code

2011-06-14 Thread Frank
BTW, if I don't use fopen in my native function but instead use File file = new File(my file path); InputStream fis = new FileInputStream(file); and read from fis, it is always fine. On Jun 14, 2:38 pm, Frank frank.android@gmail.com wrote: Hi Nikolay, I don't see any crucial differences

[android-developers] Re: problems with fopen in native code

2011-06-14 Thread Frank
/android-ndk/browse_thread/thread/e0ab7aefb3982c45 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4616318 On Jun 14, 2:43 pm, Frank frank.android@gmail.com wrote: BTW, if I don't use fopen in my native function but instead use File file = new File(my file path); InputStream fis = new

[android-developers] how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-11 Thread frank
to perform touch and press on screen. Also to get and verify screen contents like text. regards, Frank -- 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

[android-developers] how to press on a particular menu item using touch in monkeyrunner script?

2011-07-11 Thread frank
how to press on a particular menu item using touch in monkeyrunner script? -- 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] Re: how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-12 Thread frank
the script runs on emulator or other device. Can you please help me with solution or any alternative for the same. Thanks in advance. frank On Jul 12, 3:31 am, Bill Napier nap...@android.com wrote: Oh, and there currently is no way to get text from the screen

[android-developers] monkeyrunner script for scroll and touch

2011-07-14 Thread frank
or other device. Can you please help me with solution or any alternative for the same. Thanks in advance. frank -- 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

[android-developers] onScroll not triggered after onLongPress

2011-07-25 Thread Frank
to be the case? If so, what if I do need scroll event after a long press? Thanks a lot. Regards, Frank -- 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

[android-developers] NumberPicker doesn't get the input value from keyboard

2011-07-27 Thread Frank
Hi all, I have a very weird problem from NumberPicker. The values input through the keyboard is not recognized but the values input by the +/- buttons are. The following is the source code. public class NumberPickerDlg extends AlertDialog { private NumberPicker mInteger; private

[android-developers] Re: onScroll not triggered after onLongPress

2011-07-29 Thread Frank
, Frank On Jul 25, 5:53 pm, Frank frank.android@gmail.com wrote: Hi All, I am using GestureDetector to fire some events. Everything works fine except for the following: If I do a long press and then move my finger (without lifting it and scrolling again), long press is fired but not scroll

[android-developers] EditText box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread Frank
tool bar at the top. Does anyone know the cause of this? Thank you very much. Regards, Frank -- 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

[android-developers] Re: EditText box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread Frank
Hi Dan, Actually, the PopupWindow was made focusable. I can tap on EditText and use the keyboard to input text. But just the long press/double tap won't select any text. Frank On Aug 26, 12:19 pm, IcedNet d...@icednet.info wrote: http://developer.android.com/reference/android/widget

[android-developers] android drag and drop gridview ordering using OnDragListener

2012-12-19 Thread Frank
I created a drag and drop gridview (using an 'OnDragListener'). Grid items can be dropped upon one another. However, I also want to be able to re-order them. I implemented this, but there is a major issue left standing: When I drag around my shadow object I want the items to make space for my

[android-developers] OnDragListener ACTION_DRAG_LOCATION called only a few times

2012-12-19 Thread Frank
I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item. The other 'DragEvents' (enter, drop,

[android-developers] Re: OnDragListener ACTION_DRAG_LOCATION called only a few times

2012-12-19 Thread Frank
użytkownik Frank napisał: I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item. The other

[android-developers] Re: OnDragListener ACTION_DRAG_LOCATION called only a few times

2012-12-19 Thread Frank
:21 UTC+1 użytkownik Frank napisał: I implemented an 'OnDragListener' and notice that 'DragEvent.ACTION_DRAG_LOCATION' is called only a few times (2-4) when I drag my shadow around on top of a view (a view with this listener). After that, it keeps silent until I release my dragged item

[android-developers] How to disable the broadcasting of the SSID of the mobile hotspot (tethering)

2013-04-08 Thread Frank
Hi all, Is it possible to disable the broadcasting of the SSID of the mobile hotspot (tethering)? I didn't see any device support this features. And i want to add this feature to hide the hotspot ssid. So other don't know a hotspot is being used. Thanks advanced. -- -- You received

[android-developers] Accelerometer power tied to display backlight power

2009-03-14 Thread Jordan Frank
data even when the display is of. Supposing that I wanted to fix this, can anyone suggest where should I start looking? Would this be in the SDK, the kernel, or in some proprietary firmware that I can't touch? Thanks, Jordan Frank --~--~-~--~~~---~--~~ You received

[android-developers] Re: Accelerometer power tied to display backlight power

2009-03-15 Thread Jordan Frank
, then the last thing I want is to keep the display to be on the whole time. Cheers, Jordan On Mar 14, 3:20 pm, Stoyan Damov stoyan.da...@gmail.com wrote: http://developer.android.com/reference/android/os/PowerManager.WakeLo... On Sat, Mar 14, 2009 at 8:23 PM, Jordan Frank jordan.w.fr...@gmail.com

[android-developers] Re: Accelerometer power tied to display backlight power

2009-03-16 Thread Jordan Frank
this is why I think that the solution lies in one of the lower layers, I'm just not sure where to start digging. Cheers, Jordan On Mar 15, 12:35 pm, Marco Nelissen marc...@android.com wrote: That's why you'd use a *partial* wakelock. On Sun, Mar 15, 2009 at 6:57 AM, Jordan Frank jordan.w.fr

[android-developers] Re: Sensors don't work on partial wake lock

2009-03-28 Thread Jordan Frank
I'm having the same problem, and have asked a few times on the mailing lists for more information, but have never seen any response from anyone in the know. That issue that romario13 posted concludes by saying that the sensor code has changed significantly in the cupcake branch. That's pretty

[android-developers] Re: Books on Android development?

2009-04-06 Thread Frank Ableson
Unlocking Android from Manning will be out in a few days. Disclosure - I am one of the authors. http://manning.com/ableson Frank On Mon, Apr 6, 2009 at 1:40 PM, jkk251 jkk...@gmail.com wrote: The documentation on Google's websites is great, but it would also be great to have a text

[android-developers] Re: Developing absolute layout - no drag drop click drag in eclipse ??

2009-04-15 Thread Frank Ramirez
Check out http://droiddraw.org/ On Apr 15, 3:24 am, Boba S sbob...@googlemail.com wrote: It would be of great help to me 2009/4/15 quakeboy prasna...@gmail.com I have asked the Flex team in our company to make some app which can import images and you can drag and drop them with

[android-developers] Re: Accelerometer power tied to display backlight power

2009-04-20 Thread Jordan Frank
used, the service stops sending callbacks as soon as the screen turns off or the power button is pressed. :David On Mar 16, 3:01 pm, Jordan Frank jordan.w.fr...@gmail.com wrote: A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off

[android-developers] Re: Screen lock turns of the accelerometer.

2009-04-20 Thread Jordan Frank
Best I can do is say that quite a few people have been trying to do this, and haven't found a way to. Beyond that, don't hold your breath waiting for a response from someone at google. Jordan On Apr 16, 8:11 pm, Mark maxi...@gmail.com wrote: What I'm looking for:  ** A way to read the

[android-developers] Re: Accelerometer power tied to display backlight power

2009-04-20 Thread Jordan Frank
in the device settings?). Anyway, things look good for those of us who wanted sensor data without having to leave the screen on. Jordan On Apr 20, 10:55 am, Jordan Frank jordan.w.fr...@gmail.com wrote: Known but not resolved. Even in the bug report that is mentioned in the thread that you quoted

[android-developers] Re: Screen lock turns of the accelerometer.

2009-04-20 Thread Jordan Frank
Fixed in cupcake! Described further: http://groups.google.com/group/android-developers/msg/a616773b12c2d9e5 Jordan On Apr 20, 12:01 pm, dilit dmit.lit...@gmail.com wrote: Have you implemented the accel. listener as a Service (vs Activity)? Service should run in the background without the

[android-developers] Re: WebView.loadData does not always work quite right

2009-02-06 Thread Frank Galligan
to get click messages. This might be a bug. I'm using 1.0_r2. Hopefully that will fix your issue too. Frank On Jan 29, 1:32 pm, Mark Nuetzmann mark.nuetzm...@gmail.com wrote: I have a simplewebviewclient that gets the content from a url and loads it into theWebView.  When the activity starts

[android-developers] Technical Editor for Android Book

2009-02-16 Thread Frank Ableson
There is an aggressive schedule for completing this project so please respond only if you are an experienced Android developer and can devote time to this project over the next 2 to 3 weeks. Thank you Frank Ableson --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Accelerometer frequency

2009-02-19 Thread Jordan Frank
. I hope that someone finds this useful. Cheers, Jordan Frank On Feb 18, 2:08 am, gjs garyjamessi...@gmail.com wrote: Hi, Try logging the data received with timestamps ( in memory ) for android.hardware.SensorListener.onSensorChanged(int sensor, float[] values) and you'll soon work out

[android-developers] Re: develop application without a data plan?

2009-02-20 Thread Jordan Frank
My advice, is to do a search on Google for the phrase activate android adp1 without a sim card. You will find lots of information on how to do this. The first three results all give step by step instructions. Note that this advice also applies to other questions that you might have. Cheers,

[android-developers] Re: MapActivity / MapView causes application to crash at startup

2008-11-10 Thread Frank Trollmann
Hi You might want to look here: http://zackola.com/blog/2008/10/26/android-mapview-permissions-and-prerequisites/#comment-227 this site subsumes (hopefully) all permissions and prerequisites needed for the MapView. - Frank --~--~-~--~~~---~--~~ You received

[android-developers] Re: map view problem

2008-11-23 Thread Frank Trollmann
Do you have a valid google maps api key? maybe you also should take a look at this: http://zackola.com/blog/2008/10/26/android-mapview-permissions-and-prerequisites/#comment-227 (hopefully) All prequisites needed for using a map are listed there

[android-developers] Detecting which drawable folder was used.

2009-11-26 Thread Joshua Frank
. I am trying to just create hdpi bitmaps for the ones that don't look good when re-sized. -- Joshua Frank -- 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

Re: [android-developers] Bussiness Model

2010-01-17 Thread Frank Weiss
I think hybrid business models are worth looking into. Look at the business models of some of the free applications. For example, the Bank of America application is free. Although the development investment was probably modest (for a bank), the expense can be justified by the brand-building the

Re: [android-developers] Request is not from browser- need help

2010-01-17 Thread Frank Weiss
Probably a cookie. Look into understanding how cookies work and how the servlet container uses them, then understand how to manage cookies with HttpClient. On Sat, Jan 16, 2010 at 12:57 AM, Testingjsp testfi...@gmail.com wrote: Hi, I am making a request from an android application to jsp

Re: [android-developers] Is there a way to refer to a group of attributes

2010-01-17 Thread Frank Weiss
Have you looked into Themes and Styles: http://developer.android.com/guide/topics/ui/themes.html If the attributes are not related to that, other approaches would be: inflater hook, attribute injection at runtime, generate the layout xml files with XSLT. On Sun, Jan 17, 2010 at 11:19 AM, Ray

Re: [android-developers] Re: Find out if the user rated my application in the Market

2010-01-17 Thread Frank Weiss
I read a fascinating book A Complaint is a Gift. The gist is that few people will give you feedback, and most of it will be negative. Furthermore, the few negatives are the tip of the iceberg, so treat every complaint as a gift. I also suggest you don't relay solely on the Android Market for

Re: [android-developers] How to navigate from one page to another?

2010-01-17 Thread Frank Weiss
Sounds like you haven't tried any of the tutorials: http://developer.android.com/resources/index.html On Sun, Jan 17, 2010 at 1:39 AM, Rahul rahulsak2...@gmail.com wrote: Hello, I m the new user in Android. m trying to do one apll in which when we click on Button then control goes to next

Re: [android-developers] Modal dialog

2010-01-17 Thread Frank Weiss
Have you looked at the Dev Guide at all? http://developer.android.com/guide/topics/ui/dialogs.html If you want to literally not have the function that brings up the dialog return until the dialog is closed, you're in for some trouble. That's not the way the Android UI works. There was lengthy

Re: [android-developers] Re: Modal dialog

2010-01-18 Thread Frank Weiss
I think I understand the issue, but I'm puzzled why you can't simply refactor your code to the Android API. Here's an example. Activity.myMethod() { { block A } ret = showModalDialog(); // they way you expect it to work if (ret == 1) { { block B } } This can be refactored to:

Re: [android-developers] Re: Scaling icons on MapActivity with zoom

2010-01-18 Thread Frank Weiss
I'm assuming you mean the overlay markers. I'll agree with TreKing. Scaling map icons with the scale of the map (the icon remain the same size relative to the size of a city, map feature, etc.) is not such a great idea. I wouldn't have done it if I'd designed google maps. Indeed I just tried the

Re: [android-developers] Re: Scaling icons on MapActivity with zoom

2010-01-18 Thread Frank Weiss
Sounds good. I would start by overriding this method in your subclass of Overlay: public void *draw*(android.graphics.Canvas canvas, MapViewhttp://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapView.html mapView, boolean shadow) and then

Re: [android-developers] Need current location long and lat

2010-01-19 Thread Frank Weiss
Also, note that getting a fix is intermittent, hence the timestamp. On Jan 19, 2010 1:23 PM, TreKing treking...@gmail.com wrote: Have you looked up LocationManager in the documentation? On Tue, Jan 19, 2010 at 11:05 AM, Nebbie nebbiea...@googlemail.com wrote: Hi, I need the current long

Re: [android-developers] Where can I download Android SDK source code ?

2010-01-20 Thread Frank Weiss
Source.android.com On Jan 20, 2010 7:33 AM, Frederic Hornain fhorn...@gmail.com wrote: Dear * Where can I download Android SDK source code ? BR Frederic -- - Fedora-ambassadors-list mailing list fedora-ambassadors-l...@redhat.com Olpc

Re: [android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-20 Thread Frank Weiss
I wouldn't expect a emulated code to run faster than on the target hardware. Perhaps you are assuming that the emulated code is using the graphics directly. Question is, does it? On Jan 20, 2010 9:42 AM, Dan Sherman impact...@gmail.com wrote: I'm not running any sort of beastly machine,

[android-developers] Deleting all files

2010-01-20 Thread Joshua Frank
if the game name has changed is a previous version. In short this is a major update and I would love to force the user to make a fresh install, deleting all files, preferences and database info. Is there an easy way to do this? -- Joshua Frank -- You received this message because you are subscribed

Re: [android-developers] Saving ListView Scroll Location?

2010-01-20 Thread Joshua Frank
...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Joshua Frank -- 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] AsyncTask discrepancy

2010-01-21 Thread Frank Weiss
Please reread the doc carefully. You can run stuff on the UI thread in three of the methods. There's really no need to send a message if you make the subclass of AsyncTask an inner class. In that case those three methods can do anything on the enclosing Activity's behalf, like setting the contents

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Frank Weiss
Your main thrust is about battery drain. Is your assumption that an application that is not shut down will drain the battery really valid? On Thu, Jan 21, 2010 at 2:27 PM, Kevin Duffey andjar...@gmail.com wrote: I don't know if I like this model. :D I'll give you one reason that I don't know

Re: [android-developers] Re: Problem while sending unicode character via SMS

2010-01-22 Thread Frank Weiss
change the encoding for my code, JVM, ...? How can I change the encoding of my program? I am developing my application by Eclipse and Android ADT. Thank you for response. and also I waiting your response Andu On Jan 1, 1:49 am, Frank Weiss fewe...@gmail.com wrote: The code looks good

Re: [android-developers] Max APK SIZE

2010-01-22 Thread Frank Weiss
You probably should say who the users of this application are to get more reasonable replies. The most common advice would be to have the application download the video to the SD card or stream the video. Many users are not going to see the benefit of downloading a 200MB+ application just to see a

Re: [android-developers] Re: AsyncTask discrepancy

2010-01-22 Thread Frank Weiss
That's right. If you start an AsyncTask from a Service, you can't use the UI thread methods of the AsyncTask to access the UI thread. Many of the usages of AsyncTask are from an Activity, not a Service. They are used to respond to user events that would take too long to process in the UI thread,

Re: [android-developers] Floods

2010-01-26 Thread Frank Weiss
I hate to start off negatively, but I think your users need only one app, not like 120! Your ADC submission excuse about packageing all agencies in one app is lame. Stay with me for a moment... Scenario: In the San Francisco Bay area, there are about four or more transit agencies of interest.

Re: [android-developers] Re: Using webservice through Android

2010-01-27 Thread Frank Weiss
If I'm not mistaken, there are many resources you can search for on the web via google (as Sudeep suggested) that provide examples of SOAP clients written in Java. Please learn some basics before asking such a broad question on a forum that is specifically for Android development. -- You

[android-developers] Google vs Flurry

2010-01-27 Thread Joshua Frank
I want to start tracking usage of my apps. I need to decide on who to use Google Mobile Analytics or Flurry. Does anyone have an opinion? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Multi-threaded http requests cause exception

2010-01-27 Thread Frank Weiss
When you say thread, I hope you mean AsyncTask. That's the recommended way to run background tasks, such as network downloads, and reliably handle the resuslts in the UI thread. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Comparing dates in a sqlite database

2010-01-27 Thread Frank Weiss
Another option for not-too-large databases is ISO-8601, like 20100127T134900Z, or just 20100127, etc. It's designed to sort and compare as simple strings. Downside is it takes more space in the database. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers]

2010-01-28 Thread Frank Weiss
That's a good question. First, I don't think J2ME is going to give you much insight, you might as well just start with Android. If you have done OOP in PHP, that would help. Unfortunately, the Android SDK relies on some advanced Java techniques such as template classes, generics, and inner

Re: [android-developers] Re: AsyncTask and simultaneous network downloads

2010-01-28 Thread Frank Weiss
Perhaps the requests are being serialized by HttpClient? I wonder if there's a way to determine the actual thread a particular AsyncTask's doInBacground process runs on, like maybe a thread id? -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Parsing HTML

2010-01-28 Thread Frank Weiss
I've recommended nekohtml and several people have reported using it successfully on Android. On Jan 28, 2010 3:04 PM, Marc Petit-Huguenin petit...@gmail.com wrote: On 01/28/2010 02:31 PM, Allison Inouye wrote: I am trying to parse an HTML document that is missin... I was able to parse badly

Re: [android-developers] java.lang.IllegalArgumentException while parsing xml file

2010-01-28 Thread Frank Weiss
Just to eliminate a couple of possibilities, what threading technique are you using: AsyncTask, Service, your own? I suspect the latter, dur to the java.lang.Thread.run at the bottom of the stacktrace. The focus of the problems appears to be where

Re: [android-developers] How to avoid android service from being uninstalled

2010-01-28 Thread Frank Weiss
I think I understand what you're saying, but then how would the user uninstall the service if he or she really wanted to? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: show more photos

2010-01-28 Thread Frank Weiss
It may also help you to look at Romain Guy's PhotoStream demo application. The source is available at code.android.com. -- 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

Re: [android-developers] Re: controling the user language

2010-01-28 Thread Frank Weiss
Check this thread: http://www.mail-archive.com/android-developers@googlegroups.com/msg21286.html -- 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

Re: [android-developers] How much time it will take to parse

2010-01-28 Thread Frank Weiss
Is this and Android question? Anyway, on the Droid, using SAX, a 14 KB xml takes much less than one second off the net. On a 2GHz laptop, I've seen 8 MB files parse in about one second. SAX is great. The pull XML parser is said to be slightly faster in many cases. -- You received this message

Re: [android-developers] Re: Use of final for locals on Dalvik

2010-01-30 Thread Frank Weiss
I had to do some research on that pesky final keyword. Here's what I now understand: Use final for classes that should not be extended and methods that should not be overridden (all methods of a final class are implicitly final). If you use final in an attempt to increase performance, you lose

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread Frank Weiss
I've been able to copy UTF-8 text from Microsoft Office documents to source code in Eclipse without a hitch. Are you sure the encoding in the source document is also UTF-8? I've often debugged character encoding issues using a hex editor, such as XVII, but it does take some study of UTF-8. Here's

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread Frank Weiss
I assume that you can see the characters correctly in the source document, so it's strange you can't in Eclipse. What OS are you using and what kind of document did you copy the text from? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Re: character chinese or korea

2010-01-30 Thread Frank Weiss
Please check the Android project's text file encoding. Right click the Android project, select the Resouce section. It should be Inherited from container (UTF-8) or other UTF-8. Also check the string.xml XML declaration has encoding=utf-8. I don't know how to check if the Excel encoding is

  1   2   3   4   5   6   7   8   >