Re: [android-developers] Re: Get body movement (e.g. turn around)

2009-12-29 Thread Frank Weiss
It's doubtful you can literally tell if the person has turned around. I think you're trying to infer that, by assuming the person is holding the device a certain way in relation to his or her body.. Perhaps by that assumption, the device moves in a 360° arc through space, not on an axis intersecti

Re: [android-developers] Re: Get body movement (e.g. turn around)

2009-12-29 Thread Frank Weiss
could base it on the following accelerometer test code: http://stuffthathappens.com/blog/2009/03/15/android-accelerometer/ On Tue, Dec 29, 2009 at 7:11 AM, Matt wrote: > Isn't it possible to use the compass magnet to track direction? > > Matt > > On Dec 29, 7:07 am, Frank Weiss

Re: [android-developers] Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Frank Weiss
Do you really think that calculating the difference between two floats is faster than calculating the difference between two longs? On Dec 29, 2009 7:25 AM, "Mika" wrote: Like the topic of the thread says. In my game I would like to turn all the calculations into FP format. I can eliminate prett

Re: [android-developers] Portrait vs landscape using sensor

2009-12-29 Thread Frank Weiss
This may a related issue. When using the accelerometer sensor on Droid when I hold the device with the display plane vertical, like when taking a picture, the y axis is minus one g, regardless of lanscap or portrait orientation. On Dec 18, 2009 10:50 AM, "Mark Wyszomierski" wrote: Hi, I'm tryin

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread Frank Weiss
Chris, sounds OK to me. I suppose using the WebView is to bridge between Flash and Java as you indicated and to allow instant application updates (instead of requiring install of a rich interface application). However, the plumbing looks awful, I think you'd agree. I've wondered if Adobe hasn't mi

Re: [android-developers] Re: AppWidget Update on Orientation Change

2009-12-29 Thread Frank Weiss
Clearly, you need two images, one or both scaled and cropped from the original. I think your question may be when is the best time to do that. That would depend on how you are storing the images, in res, on the file system, DB, where? On Tue, Dec 29, 2009 at 7:54 PM, Ryan wrote: > Thanks, but I

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread Frank Weiss
Just like Treking, I'm puzzled by Swapnil's desire to block the UI thread. Perhaps if he explained what he does not want the UI thread doing while the dialog is displayed, would shed light on the issue for all. On Dec 29, 2009 9:59 PM, "TreKing" wrote: > I can put my code in listeners but still

Re: [android-developers] Re: AppWidget Update on Orientation Change

2009-12-30 Thread Frank Weiss
> if there are multiple instances of the widget running. This prevents > me from pointing the xml layout file to the photo as I don't know what > it will be named until I get the widgetID at runtime. Any ideas? > > - Ryan > > On Dec 29, 10:53 pm, Frank Weiss wrote: > > Clear

Re: [android-developers] Best HTTP Request Method

2009-12-31 Thread Frank Weiss
If you don't need all the features of the Apache HTTPClient component, you could use java.net. Chances are it's at leaset a bit faster. If your response is XML, you can parse the response as a stream instead of loading it into memory as a string. On Thu, Dec 31, 2009 at 12:52 PM, SizzlingSkizzorsP

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

2009-12-31 Thread Frank Weiss
The code looks good AFAICT. Please give the actual before/after characters that are coming out wrong. For example, try the Ethiopian syllable qu, U+1241. If it's coming across as a box followed by an "A", then the receiver has gotten two characters, U+0012 and U+0041. I really need to see the hexa

Re: [android-developers] Re: Best HTTP Request Method

2010-01-01 Thread Frank Weiss
Considering that the execute method's latency includes network and server times, on what basis do you think it's taking too long? What latency are you observing, less than one second, more than one minute? On Fri, Jan 1, 2010 at 1:19 PM, SizzlingSkizzorsProgrammer wrote: > Yes, I've tried loggin

Re: [android-developers] Re: Package of R.java

2010-01-01 Thread Frank Weiss
You've posed an important software engineering question. I think you might find some answers by googling for: android project dependency Here's another thread that goes into it: http://groups.google.com/group/android-developers/browse_thread/thread/5a3570fe3b87b62e On Fri, Jan 1, 2010 at 1:14 PM,

Re: [android-developers] Re: Best HTTP Request Method

2010-01-01 Thread Frank Weiss
rket...it seems to load everything pretty fast > (much faster than my app at least!) > > On Jan 1, 3:15 pm, Frank Weiss wrote: > > Considering that the execute method's latency includes network and server > > times, on what basis do you think it's taking too long? What la

Re: [android-developers] Re: How to parse html with saxparser (or other solution)

2010-01-02 Thread Frank Weiss
Check nekohtml. I haven't tried it on Android yet, but used it several times on desktop for screee On Jan 2, 2010 8:36 AM, "Kumar Bibek" wrote: I guess you need to use a special HTML parse. Since, HTML pages are not well-formed and are not XML compliant, using an XML parser will not serve your p

Re: [android-developers] SAXParser invalid token exception because of '&' inside attribute value

2010-01-02 Thread Frank Weiss
There have been a few similar questions. The basic issue is that SAX parsers requires valid XML or XHTML as input. If you have control (or can influence the authors of) the service, make the output valid, which as you well know, means that <, >, ", ', & need to be escaped. In PHP, this is easily do

Re: [android-developers] Re: Best HTTP Request Method

2010-01-02 Thread Frank Weiss
t; > wrote: > > > > > > > > > Thanks a lot! Just wondering: how do you set the keep-alive > > > setting? I just can't seem to get it! > > > > > Thanks for all your help! > > > > > On Jan 1, 5:08 pm, Frank Weiss wrote: > &

Re: [android-developers] Re: Java Question about reflection

2010-01-02 Thread Frank Weiss
For your first issue, can you refactor to use singleton Factory instead and make the "factory methods" non-static? Example: MyFactory factory = MySubclassedFactory.getInstance(); MyWidget = factory.createMyWidget(); Then the createMyWidget method (possibly abstract in MyFactory) can be overridde

Re: [android-developers] Re: Best HTTP Request Method

2010-01-02 Thread Frank Weiss
Here's roughly how I do it, for a GET request: class RSS exends DefaultHandler { StringBuffer sb; ... other variables for collecting the data public void parse(URL url) throws Exception{ SAXParserFactory spf = SAXParserFactory.*newInstance*(); SAXParser parser = spf.new

Re: [android-developers] Contacts: annot find symbol for getContentResolver().query ???

2010-01-04 Thread Frank Weiss
Which class are you expecting to have implemented the getContentResolver method? On Mon, Jan 4, 2010 at 4:01 PM, James wrote: > OK, I know this must be really simple but I must be continually > overlooking the obvious. I'm trying to compile the code below and > javac keeps saying: > > [javac]

Re: [android-developers] Mixed Language Apps

2010-01-05 Thread Frank Weiss
It's not clear what you're asking. Java strings are UCS-16. Are asking about mixed localization of button labels? Please more details. On Jan 5, 2010 10:53 AM, "48-New" wrote: Would appreciate if anybody can give me some pointers on how to mixed different language in an android app? For example

Re: [android-developers] Re: Mixed Language Apps

2010-01-05 Thread Frank Weiss
text field. > > Hope this is clearer. > > On Jan 5, 2:50 pm, Frank Weiss wrote: > > It's not clear what you're asking. Java strings are UCS-16. Are asking > about > > mixed localization of button labels? Please more details. > > > > -- > You rec

Re: [android-developers] Re: Mixed Language Apps

2010-01-05 Thread Frank Weiss
P.S. I don't think you really meant "mix localizations". Unicode allows you to mix characters from any language in a document. However, bidi (direction of the text) can be tricky. On Tue, Jan 5, 2010 at 12:36 PM, Frank Weiss wrote: > I'm assuming that you don't n

Re: [android-developers] Re: Menu always Displayable

2010-01-05 Thread Frank Weiss
It might be better to not make it look exactly like the Android context menu, with the drop-shadow on the top. If a user touches the back button, they'd expect it to go away. Perhaps take a look at the Gmail persistent bottom menu as a UI guide, which is styled differently than the context menu. O

Re: [android-developers] Re: OpenGL fixed point vs. floating point

2010-01-08 Thread Frank Weiss
If there's no API, writing your own code is reasonable. On Jan 8, 2010 9:09 AM, "Peter Eastman" wrote: > Just render a small object using identical code except one is float and one is int, then time them... Unless a garbage collection happens to kick in during one of those tests, or the OS decid

Re: [android-developers] How to best maintain two different versions of the same app?

2010-01-08 Thread Frank Weiss
I've suggested using Eclipse project dependency, but haven't whether or not it works for Android projects. On Jan 8, 2010 10:15 AM, "Mariano Kamp" wrote: Hi, this seems to be a very basic need, but googling it I got the impression that is not easily or elegantly solvable. The requirement is to

Re: [android-developers] Client / Server, JBoss or Apache Tomcat

2010-01-10 Thread Frank Weiss
> the Android SDK is that it uses a subset > of libraries based on the Java language on a similar JVM virtual > machine. True. > Applications can be created on the phone through Eclipse > with the plug-ins. > True. > This however means that if we were to see client/server applications > suc

Re: [android-developers] Re: Client / Server, JBoss or Apache Tomcat

2010-01-11 Thread Frank Weiss
On Jan 11, 2010 7:23 AM, "JFrog" wrote: We cannot just put Apache Tomcat on the Android in its current form and expect it to work can we? The software design hints to me that the program would have to be converted. The same goes for any other java application that someone might have developed o

Re: [android-developers] Re: Client / Server, JBoss or Apache Tomcat

2010-01-11 Thread Frank Weiss
Sorry for the blank message. Tomcat is used for server applications. If you ran a server application on a handset likke Android phone, where wold the client run? On Jan 11, 2010 9:05 AM, "Frank Weiss" wrote: > On Jan 11, 2010 7:23 AM, "JFrog" wrote: > > We

Re: [android-developers] Re: Client / Server, JBoss or Apache Tomcat

2010-01-11 Thread Frank Weiss
I suppose the answer you are looking for is this: you will have to run Tomcat as a service on the Android. On Mon, Jan 11, 2010 at 10:30 AM, JFrog wrote: > > Tomcat is used for server applications. If you ran a server application > on a > > handset likke Android phone, where wold the client run?

Re: [android-developers] Re: Missing HashSet find

2010-01-11 Thread Frank Weiss
I'm a bit confused by the OP. I thought it was in reference to Andorid's java.util.HashSet. However it seems to be in reference to the Apache Harmony project. I suppose the OP's problem is in porting code that was using Harmony to Android? On Mon, Jan 11, 2010 at 3:32 PM, Philip wrote: > Thanks

Re: [android-developers] Load a local KML/KMZ file to a MapView

2010-01-13 Thread Frank Weiss
Where's the documentation for using a URI intent with Google Maps? I assume you're trying to use the Android Maps application instead of including a MapActivity within your Android application. In the latter case, you can write your own KML parser and ItemizedMapOverlay to get the sample KML from

Re: [android-developers] Using ListView without ListActivity

2010-01-13 Thread Frank Weiss
Have you considered using AlertDialog? On Jan 13, 2010 10:34 AM, "Warren" wrote: I want to create a custom list view in my application. I want it to lay over the top of the application screen, with portions of the screen not filled by the listview showing the underlying application. I've been r

Re: [android-developers] Re: Accessing wcf service from android

2010-01-13 Thread Frank Weiss
Generally, the same as you would from any Java program. I would recommend you try it from a Java desktop application before diving into Android, or search for an existing Android library to do it. On Tue, Jan 12, 2010 at 8:39 PM, Sudeep wrote: > How to access the web service from android? > > On

Re: [android-developers] prominent android developers

2010-01-13 Thread Frank Weiss
Everyone please note that emailing these people directly is a bad idea. Some of them have indicated that in their signatures. However, the OP did not intend that, just to filter messages based on the sender's email address. Even then, doing so tends towards leeching. AFAIK a mail list system is int

Re: [android-developers] Kernel Messages

2010-01-13 Thread Frank Weiss
I suppose JNI would be the way to go. On Wed, Jan 13, 2010 at 12:35 AM, perumal316 wrote: > Hi, > > Any idea how do I show the kernel messages to user? One way is to > install terminal emulator and then 'dmesg'. But I want to write an app > which shows the kernel messages to the user. Is it poss

Re: [android-developers] Re: Using ListView without ListActivity

2010-01-14 Thread Frank Weiss
l have to use either a plain listview > (without on item selected handlers) or start a new activity? Perhaps > I'm not understanding what you mean. > > Warren > > > On Jan 13, 12:43 pm, Frank Weiss wrote: > > Have you considered using AlertDialog? > > > > O

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 app

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 wrote: > Hi, > > I am making a request from an android application to jsp server, when > runnin

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 Benj

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 feed

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 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 page and on Back butt

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 disc

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: Activity.onCreateDi

Re: [android-developers] Re: Modal dialog

2010-01-18 Thread Frank Weiss
Thanks for the explanation. That makes sense. Here's a way to address it: class MyComplexProcess { // process state variables doBlockA() { ...// saving state in the object's fields instead of local method variables } doBlockB() { .. } } Instantiate a MyComplexProcess object with scope inside the

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 M

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, MapView mapView, boolean shadow) and then fig

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" wrote: Have you looked up LocationManager in the documentation? On Tue, Jan 19, 2010 at 11:05 AM, Nebbie wrote: > > > Hi, > > I need the current long and lat. > > getLastKnownLocation will >

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" wrote: Dear * Where can I download "Android SDK source code" ? BR Frederic -- - Fedora-ambassadors-list mailing list fedora-ambassadors-l...@redhat.com Olpc mailing list olpc-o.

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" wrote: I'm not running any sort of beastly machine, quad-core 2.8ghz, with an

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 wrote: > I don't know if I like this model. :D I'll give you one reason that I don't > know if it comes up or e

Re: [android-developers] Re: sending lists from a server to client (android)

2010-04-08 Thread Frank Weiss
you once again guys... > > On Apr 8, 3:19 am, patbenatar wrote: > > Good tutorial on setting up a RESTful client to receive JSON data from > > the Web: > http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu... > > > > On Apr 7, 11:47 pm, Frank

Re: [android-developers] Re: Trying to start a thread dedicated to sending and receiving data

2010-04-08 Thread Frank Weiss
I simply followed the SDK reference for AsyncTask at developer.android.com. I did run into some gothchas. You really really need to pay attention to which methods can and cannot call the methods in your Activity. But once you get it right it's solid. I use it to make a request to a server and displ

Re: [android-developers] Accelerometer - direction of shake?

2010-04-08 Thread Frank Weiss
The accelerometer axis on the Droid are X, Y, Z and relative to the physical device. As for detecting shake, I was successful using a digital band pass filter. Here's another thread about shaking with my code (however I found that the 2 Hz center band is a bit too fast.) http://groups.google.com/g

Re: [android-developers] how to get device's movement speed?

2010-04-08 Thread Frank Weiss
In theory, you can calculate velocity by integrating the accelerometer values. So for example, along the X axis, the output is dv/dt. Thus new v = old v + current dv/dt * time since last dv/dt. However, the accuracy of the accelerometer is questionable. With some more math you could get rotations,

Re: [android-developers] Re: Multiple Listviews in single Activity?

2010-04-08 Thread Frank Weiss
I kind of hate to butt into this laborious thread, but I want to add my 2 cents. @DonFrench: IMO you have confused the behavior and the appearance of radio buttons a bit. By behavior, I mean the underlying state of the control group. The behavior is clearly 1-of N (although none selected is anothe

Re: [android-developers] Re: how to get device's movement speed?

2010-04-09 Thread Frank Weiss
I also thought getting angular movement from the accelerometer would be a problem. However, note that it provides *proper acceleration*. You can track the ambient gravitational field as a 3D vector. On Apr 9, 2010 4:55 AM, "Jason LeBlanc" wrote: Well, if your just spinning the device on end, I w

Re: [android-developers] how to read database of one application in another application using contentproviders

2010-04-09 Thread Frank Weiss
Android security does not allow reading another apps DB directly. You need to create a ContentProvider for that AFIAK. On Thu, Apr 8, 2010 at 11:26 PM, saikiran n wrote: > Hi, > I implemented sqlitedatabase using content provider in one application. > And created some tables and some data in tha

Re: [android-developers] Re: Timing out an AsyncTask?

2010-04-09 Thread Frank Weiss
Of the top of my head, set an alarm in the UI Activity to call cancel on the AsyncTask. -- 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,

Re: [android-developers] Developing a C++ static library for use with Java on the Android

2010-04-27 Thread Frank Weiss
Lookup JNI. I strongly recommend learning how to use it from a simple Java application outside of Android first. Learn to walk before you try to run. On Apr 27, 2010 5:21 PM, "Josh" wrote: I have an existing C++ library that I want to compile into a static library, and call commands from it with

Re: [android-developers] unable to resolve MapActivity to a type?

2010-04-27 Thread Frank Weiss
Read the fine print. You need to enable google map support in the SDK. On Apr 27, 2010 5:20 PM, "random_kid" wrote: hey i'm trying to use google maps on my android app but when i extend MapActivity instead of Activity in my activity file, there is an error that MapActivity cannot be resolved to

Re: [android-developers] Android custom hardware

2010-05-03 Thread Frank Weiss
Have you checked out beagle board? On May 3, 2010 2:07 PM, "Sri2" wrote: Hi all, I need to create a custom phone hardware using android platform that will use minimal functions..I don't need accelerometer, camera even mic and loud speaker. all i need is a SIM card slot and minimal hardware feat

Re: [android-developers] Wifi drop Issues on Motorola Droid

2010-05-09 Thread Frank Weiss
On May 6, 2010 4:52 AM, "KK" wrote: I am trying to develop a streaming application and I am testing it on multiple devices. But I am seeing some problems on Motorola Droid with regards to wifi connection. The wifi connection drops occasionally and comes back in 30 seconds to 1 minute on the Droid

Re: [android-developers] Google Map View limited to region?

2010-05-15 Thread Frank Weiss
It's not clear if your question is really about regions or about the differences between Google Maps in a web browser and the Android Google maps MapActivity/MapView. AFAIK, Android MapActivity does not do everything the Google Maps web apps does, but it allows you to run the MapAcitivity inside yo

Re: [android-developers] How to handle accents in XML encoded as utf-8??

2010-05-18 Thread Frank Weiss
I always look at bits in the stream to debug UTF-8 encoding problems. Although you said the encoding is UTF-8, you ought to specifically verify: 1) The encoding given in the HTTP response 2) The encoding given in the XML prologue 3) The encoding setting of the Reader underlying the XPP. On Tue, M

Re: [android-developers] Display progress of xml parsing?

2010-05-18 Thread Frank Weiss
Insert a byte-counting filter between the underlying byte stream and the parser. On Tue, May 18, 2010 at 9:24 AM, Nathan wrote: > Hopefully I am giving everyone an easy question. > > I'd like to be able to show progress of parsing an xml file in > progress. > > I know it is more or less customar

Re: [android-developers] Re: How to handle accents in XML encoded as utf-8??

2010-05-19 Thread Frank Weiss
Well, we got the easy things out of the way. The error message you get is "Invalid token(unicode 0x12) exception". It would be very helpful if you post or send me the URL. As I mentioned, I've found debugging encoding issues more productive at the binary level. Just as a wild guess, I'm expecting

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Frank Weiss
It may also be good practice to give the user the option to turn GPS off for your application. That is, when the option is off, your application removes location updates. The idea is that the user can still use your application, but can control the battery usage. Of course, in this case, the user

Re: [android-developers] connected Motorola Droid not recognized by adb

2010-08-11 Thread Frank Weiss
I run Windows XP, have a Droid, and use Eclipse. When I plug the USB cable into the Droid, there are two notification icons: the forked USB icond and the exclamation mark in a triangle. When I open the notifications list, there's "USB debugging connected" and "USB connected". Are you seeing these

Re: [android-developers] Service start intent problem

2010-08-11 Thread Frank Weiss
Does it FC when you use getIntent() instead of the parameter to onStart? -- 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

Re: [android-developers] Re: A simple question - I hope

2010-08-11 Thread Frank Weiss
The question isn't so simple, eh? The "total ram available to the device" appears to be a fairly objective hardware question. For the Motorola/Verizon Droid it's 256MB. But the OP seems to be looking for some other answer. Perhaps restate it a different way? -- You received this message because

Re: [android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-11 Thread Frank Weiss
On my machine, in Device Manager, there's Android Composite ADB Interface. -- 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 t

Re: [android-developers] Re: A simple question - I hope

2010-08-11 Thread Frank Weiss
- this is what I'd like to know how to do. Thanks, Jonathan On Aug 11, 6:34 pm, Frank Weiss wrote: > The question isn't so simple, eh? > > The "totalramavailable to the device" appears to be a fairly > objective hardware question. For the Motorola/Veri

Re: [android-developers] How to install package without asking user just like market app?

2010-08-12 Thread Frank Weiss
Where do you see Market app installing packages without asking user? -- 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 andr

Re: [android-developers] Re: Application state when Home pressed

2010-08-12 Thread Frank Weiss
There are two levels of foreground/background, onPause/onResume and onStart/onStop. Please read the Activity documentation. Then explain what you issue is. -- 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: Bind the pushpin on image

2010-08-12 Thread Frank Weiss
I suppose you need to scroll the pushpin as well. -- 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+unsu

Re: [android-developers] sample login app with database connectivity

2010-08-12 Thread Frank Weiss
I learned that stuff at developer.android.com and with Google. -- 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-de

Re: [android-developers] source code

2010-08-12 Thread Frank Weiss
http://source.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 To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.co

Re: [android-developers] Whats first onCreate or the constructor

2010-08-12 Thread Frank Weiss
I don't understand. What is the relationship between the Activity for which onCreate() is called and the object whose constructor is called? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

Re: [android-developers] Re: best way to debug ANR...

2010-08-12 Thread Frank Weiss
AFAIK there's no silver bullet, sorry. Just your skill at debugging: narowwing down the problem, correlating the problem, studying log files, studying stack traces, stepping through the code... -- You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] Chilling news: Oracle sues Google over Android

2010-08-12 Thread Frank Weiss
It hit the press today. Rumored that Google refused to settle. I have no idea where this is headed, but I'll continue to develop for Android. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

Re: [android-developers] source code

2010-08-13 Thread Frank Weiss
I wonder which source code the OP is getting and why. On Aug 13, 2010 8:34 AM, "Tony Gonzalez" wrote: Sounds like great advise, but their is a lot of information. As I just mention it to TreKing I'm doing that right now, trying to get the source code but have to figure out how to install and use

Re: [android-developers] Re: Bind the pushpin on image

2010-08-13 Thread Frank Weiss
> > I cant scroll the pushpin. > I must be missing something then. You did say that the underlying image is scrollable. -- 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.co

Re: [android-developers] Re: Application state when Home pressed

2010-08-13 Thread Frank Weiss
I like to think of onResume/onPause like focus events. When an Activity loses focus, either by being partially covered by a dialog or another Activity, onPause() is called. If the activity regains focus, onResume() is called. If the activity not only loses focus, but becomes non-visible (this is li

Re: [android-developers] Re: Bind the pushpin on image

2010-08-13 Thread Frank Weiss
Perhaps you can give a sample of the code used to draw the image and the pushpins? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Frank Weiss
I started this thread with some trepidation, especially the "chilling" part. But it looks like we got to share our thoughts, if maybe a little OT at times. Fabrizio Giudici wote: > My point is that we developers should not be much worried about that. > I don't think that Oracle has any real intent

Re: [android-developers] Re: Bind the pushpin on image

2010-08-14 Thread Frank Weiss
I think I see the problem in your code. The view hierarchy is: sv (abl (layout(iv), iv1)) where sv is a ScrollView and layout is a HorizontalScrollView. Which one actually does the scrolling? Have you tried this view hierarchy: sv (abl (layout(iv, iv1))) -- You received this message because yo

Re: [android-developers] Re: Application state when Home pressed

2010-08-14 Thread Frank Weiss
Well, I think you understand that onResume() is called by the Android OS when an activity comes to the foreground. It may help if you briefly described what this "update method" is supposed to do. I hope your problem is not due to the subclassing of your activities. It almost seems you are expecti

Re: [android-developers] Re: Application state when Home pressed

2010-08-14 Thread Frank Weiss
My current understanding of the problem is, there's an "update method" that needs to be called when any of the activities come to the foreground, that is, in the onResume() method of the particular activity that's coming to the foreground, but in some cases, when this "update method" is called, the

Re: [android-developers] Re: Application state when Home pressed

2010-08-14 Thread Frank Weiss
Assuming that the update method makes an HTTP request, but doing it for each time onResume() is called is excessive, wouldn't the most obvious strategy be to cache the data? That is, when onResume() is called, check how long ago the last HTTP request was made. If it was too long ago, perform the HT

Re: [android-developers] Re: about handle the home key

2010-08-15 Thread Frank Weiss
I assume you intend to have people download this app from the Android Market. If so, what's to keep ANY Android app on Market from disabling the Home key? -- 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: Bind the pushpin on image

2010-08-15 Thread Frank Weiss
It's gratifying to hear that I helped you. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+uns

Re: [android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-16 Thread Frank Weiss
Fabrizio, thanks for sharing that Forbes article (http://blogs.forbes.com/taylorbuley/2010/08/13/android-lawsuit-is-really-just-oracle-flirting-with-google/). It confirmed some of my thinking, but added the interesting "bear hug" angle. I wonder if that is really the case. -- You received this m

Re: [android-developers] Problem with Saxparser and malformed XML

2010-08-16 Thread Frank Weiss
It would help a lot more if you gave the URL of the data you are trying to parse. I can't really see what's going on in your code, which looks OK. I've also had more luck tracking down SAXParser errors by using the Eclipse debugger to step through the code. -- You received this message because yo

Re: [android-developers] Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-16 Thread Frank Weiss
It probably matters more what you are trying to do. If you are trying to subvert Andriod's activity model, you may run into problems. If the views are actually views of the same activity, you're OK. What would be views of the same activity? Projections, selections, sorts, text vs graph, etc. --

Re: [android-developers] Re: tea time

2010-08-17 Thread Frank Weiss
Typical newbie problems are trying to do everything in onCreate() and null pointer exception because some varibale isn't initialized. I think using the debugger is even better than logcat. Are you using Eclipse? The debugger is easy to use. -- You received this message because you are subscribed

Re: [android-developers] Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread Frank Weiss
I'd be surprised if you can't do per-app locale changes in Android. I know for a fact it can be done in Java Swing. -- 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

Re: [android-developers] make automatic login on application

2010-08-17 Thread Frank Weiss
I'd use SharedPreferences for that. You will also need to add a use case for the user uninstalling and then reinstalling the app. In that case, SharedPreferences would be empty, but your server DB would have a record of the prior registration. -- You received this message because you are subscrib

Re: [android-developers] Re: Can Java code be replaced with XML

2010-08-17 Thread Frank Weiss
My number one answer is: use the Command Pattern. Can't say much more without more specifics about what the buttons are supposed to do. -- 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] Exiting Application

2010-08-17 Thread Frank Weiss
As far as I can tell, your conception of an Android application is mistaken. The closest thing is that from time to time the Android OS allocates memory resources, in the form of an underlying Linux process, to an Android application so that the application's activities and services can perform the

<    1   2   3   4   5   6   7   >