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] 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

[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] 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

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] 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] 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] 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] 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] 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: 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] 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
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] 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] 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] 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] Re: Confused about Timezones and Sqlite3

2010-08-09 Thread Frank Weiss
Chances are you can google for ways to convert text to date data types. -- 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 a

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
The user can either enter an address and your app can geocode it or the user can tap on the map and your app can get the lat long coordinates of where the user tapped. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
Well, it's not clear what you mean by "all locations". Most of us map builders already have a database of the points of interest that are to be displayed on the map. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
Thanks for getting down to the brass tacks. First, that field (aka member) declaration and initialization should go inside the class declaration, not before it. Next is Java Generics, a powerful Java language feature that takes some time getting used to. Here's the official story: http://www.orac

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
What part of the Hello, MapView tutorial are you having trouble with? http://developer.android.com/intl/de/guide/tutorials/views/hello-mapview.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
Anthon, if you had gone through and studied the MapView tutorial, I think you wouldn't be asking those kind of basic questions. -- 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@googlegr

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
I'm assuming that the data you want to save includes a geocode (lat/long) and some additional data, such as title. The answer to your question can get quite elaborate, depending on the details. However, I suggest you start with the simplest thing that work. That would probably be see the marker and

Re: [android-developers] Re: is there any API available to receive the broadcast receiver for app started.

2010-08-09 Thread Frank Weiss
Indicator, I don't understand why you repeat the erroneous "launching another app". Correct me if I'm wrong, when you tap an icon on the home screen what's happening is that an intent is being sent which starts an activity in a particular package. That package's application context may already be "

Re: [android-developers] is there any API available to receive the broadcast receiver for app started.

2010-08-08 Thread Frank Weiss
Correct me if I'm wrong, but "app" is a bogus term with regard to an Android broadcast receiver. Don't you mean to ask what intent and category do the Phone and Contacts apps use, such as: android.intent.action.MAIN, android.intent.category.LAUNCHER -- You received this message because you are s

Re: [android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-08 Thread Frank Weiss
Can you try to use the correct terminology. The onstop method is for an activity. If you can get that, maybe you can try to answer treking's question. On Aug 8, 2010 8:59 PM, "optimusgeek" wrote: I mean I want to do something when my app going to be stopped.(not destroyed) and the situations are

Re: [android-developers] Re: How to quit the app?

2010-08-04 Thread Frank Weiss
On Wed, Aug 4, 2010 at 9:54 AM, ls02 wrote: > I want to terminate the Linux process, the same way Pandora app does. I'm not being cheeky, but just want to understand your thinking. If the Android app's host linux process is NOT terminated, what is the consequence, if any? -- You received this m

Re: [android-developers] How to quit the app?

2010-08-04 Thread Frank Weiss
What does "quit the app" mean in the context of the Android SDK? -- 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-

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-03 Thread Frank Weiss
@Leigh LOL. I think your amusement is warranted. What I meant to say is that a lot of the really great programming techniques, such as refactoring to patterns, tend to be explained in Java. I would suppose that really good programmers can write flexible Java code without the use of a preprocessor

Re: [android-developers] Programming a target in an Android Application

2010-08-02 Thread Frank Weiss
Should we assume you know how to hit test for a circle and you want to know if the SDK can do it for you instead? On Aug 2, 2010 6:33 PM, "kingh32" wrote: Hello I'm currently trying to program a target as part of an Android Application. I want the user to be able to touch a particular band with

Re: [android-developers] Is it possible to get sensor data at regular intervals?

2010-08-02 Thread Frank Weiss
Closest I got for a digital filter was to ask for a notification rate somewhat higher than the desired sample rate an downsample the value sequence. On Aug 2, 2010 6:33 PM, "Tope" wrote: Hello everyone, Just joined the Android group. I'm having problems with the acceleration and orientation sens

Re: [android-developers] How to store questions for quiz type application

2010-08-02 Thread Frank Weiss
I don't see how your problem is any different on Android than it would be for any program in any language on any device. Pick a data structure. Don't optimize it (yet). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] RSS feed by HttpURLConnection - html issue

2010-08-02 Thread Frank Weiss
Please understand what the DOM is. There you have two text nodes sandwiching a BR element. Either the feed should use CDATA to wrap the marked up text or you need to decide how you are going to reconstruct PCDATA, that is, turn the sandwiched BR element into text. -- You received this message bec

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Frank Weiss
This thread is a little like schadenfreude to me. A lot of it is about taste - of which arguing about is of little use. I just saw some Java code where every closing brace is commented with "// end of if", "// end of for", "// end of method", etc. Yech!. That, to me, is worth arguing about! If the

Re: [android-developers] connections problem ...

2010-08-02 Thread Frank Weiss
Have you enabled Allow USB Debugging on the device? -- 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+un

Re: [android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread Frank Weiss
I think Bob Kearns may have it right. I was also wondering why you'd be seeing any XML if you're using SOAP, which is basically an RPC framework. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread Frank Weiss
Here is a long thread on the subject: http://groups.google.com/group/android-developers/browse_thread/thread/1c9078176b172e1a/235bae6530ee7e74?show_docid=235bae6530ee7e74 There are Java projects that use various preprocessors. The lack of a standard one is a problem. AFAIK Sun's WORA ideology ran

Re: [android-developers] Re: AlertDialog changes sequence of events

2010-07-30 Thread Frank Weiss
I strongly recommend you try to find some sample code at developer.android.com that does something similar and follow that example. In other UI frameworks, there's a convenience function, such as MsgBox() that accomplishes "blocking" the UI thread. I don't know exactly how it's done, but I suspect

Re: [android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread Frank Weiss
I don't recognize what data format that is, but I would guess that your code has an error or is not sending the right HTTP headers. What client side code are you using? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread Frank Weiss
On Fri, Jul 30, 2010 at 5:14 AM, sblantipodi wrote: > Ok, since I founded no way to automatically do it with netbeans now > I'm trying the ant way posted here: > http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/ > previously in this thread. > > I followed all the instructions b

Re: [android-developers] Confirmation routine

2010-07-29 Thread Frank Weiss
I assume you want a blocking alert dialog like the MsgBox() function. This has been brought up before and basically "no can do" the way the Android UI thread works, AFAIK. The two "natural" android approaches: 1) An other activity that you start with startActivityForResult(), which can be themed a

Re: [android-developers] Re: Any cheap solutions of GPS signal simulation?

2010-07-28 Thread Frank Weiss
Maybe you can visualize my suggested solution better with some code: if (demo) { demoLocationManager.requestLocationUpdates(provider, min, distance, this); } else { locationManager.requestLocationUpdates(provider, min

Re: [android-developers] Re: detecting home screen, idle of device

2010-07-27 Thread Frank Weiss
> The message could be urgent thing or request response to user. > In this case, I want to show it to users right away without the > notification. > I think this is not kind of right and wrong. > It just matter of scenario. That's just not the way Activities are supposed to work in Android. What i

Re: [android-developers] Link for Android beginners

2010-07-27 Thread Frank Weiss
> No offense, but it seriously blows my mind how people can find this group, > sign up, and post to it, but can't (or won't) take the time to search for > and (quickly and easily) find the official documentation. > Just ... don't ... get it > I'm sure there are many others - including myself

Re: [android-developers] newbie

2010-07-27 Thread Frank Weiss
How noob are you? Assuming that you've been seriously programming for at lease a year: developer.android.com buy a book, if that helps get a device if you want to use the sensors and GPS run some of the sample code, modify it share your problems and learnings here on the list -- You received th

Re: [android-developers] location.getTime() returns strange result

2010-07-26 Thread Frank Weiss
I wish I could be of more help. It works OK on my Droid. Perhaps you can do some more debugging, looking for some kind of pattern or look at the Android source code for how that value is returned. -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

Re: [android-developers] AsyncTask's cancel method - possible bug

2010-07-26 Thread Frank Weiss
It doesn't make sense to me why you're trying to cancel the AsyncTask in the Activity's onDestroy method. That seems too late in the lifecycle. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

Re: [android-developers] Re: Query Google Maps

2010-07-26 Thread Frank Weiss
I've used nekohtml to scrape pages. Have you looked for an API for getting the data instead? You should carefully consider the ramifications of screen scraping. The web site may not be thrilled by your syphoning off information they may have to pay for. When the web site is redesigned, the screen

Re: [android-developers] Embeddable lightweight/simple webserver?

2010-07-26 Thread Frank Weiss
I suppose that iJetty, like Jetty, is a servlet container. It's open source, have you considered stripping it down to bare HTTP? Search for embedded Java HTTP servers that would be used in devices such as routers. If your needs are very simple and highly constrained, building you own HTTP server

Re: [android-developers] javaw.exe is taking up 50% of my CPU Usage!!

2010-07-26 Thread Frank Weiss
Some more specifics in the OP would have saved me the trouble of asking: eclipse version? system memory size? at startup of eclipse? using the graphical layout editor? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] Get current location

2010-07-26 Thread Frank Weiss
What does "current location" mean? AFAIK, on Android you can only get timestamped locations, either via notification or last known. -- 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@goo

Re: [android-developers] location.getTime() returns strange result

2010-07-26 Thread Frank Weiss
In your code, the String variables tim and tim2 are both from location.getTime(), with differing formatting. However, in your value comparison, tim2 is supposed to come from "System Time". In my app, I use "new Date(location.getTime()).toString()", and am not seeing a discrepency for locationManag

Re: [android-developers] How do you handle a pound sign (#) in a string?

2010-07-23 Thread Frank Weiss
Is it a URL? Then you need to escape the "#". -- 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

Re: [android-developers] Showing Google MyMaps

2010-07-22 Thread Frank Weiss
You can find that information here: http://code.google.com/android/add-ons/google-apis/ com.google.android.maps.MapController.setCenter() -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

Re: [android-developers] How could I avoid others to get my used pictures in my application?

2010-07-22 Thread Frank Weiss
The way I look at it is that if you are going to use some pictures in your application, then the people using your application are going to have to get those pictures -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

Re: [android-developers] hi

2010-07-22 Thread Frank Weiss
Then go to the documentation http://developer.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-develop

Re: [android-developers] Re: Is there anyone know why Google allow only 4 connections on Android?

2010-07-21 Thread Frank Weiss
You said that more than 4 connections would give better performance. How much faster would it be with a 5th connection? -- 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] Google Maps & apps with mapview have different current positions Options

2010-07-20 Thread Frank Weiss
The problem doesn't seem to have anything to do with GPS, correct? I tried your coordinates, 22.9638357,113.3156041, on desktop google maps and from within a MapView. I get the same unequal results that you did. I also tried msn.com (in satellite view - theirs are older!) and that agrees with the

Re: [android-developers] To get help in read XML file excluding extra characters.

2010-07-19 Thread Frank Weiss
Show your characters() method. It's probably buggy. Set breakpoints and step through your code. -- 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 th

Re: [android-developers] XML parsing differs on android and on desktop

2010-07-19 Thread Frank Weiss
I've had no problems using the SAX parser on Android. I really think you should fix your characters() override method. Read to API docs. It doesn't have to return the full contents of a text node (I see newbies frequently make this mistake). I always use a StringBuffer or StringBuilder. What help

Re: [android-developers] Center MapView on new added GeoPoint in ItemizedOverlay

2010-07-19 Thread Frank Weiss
I suppose you just need this in the right place in your code: mapView.getController().setCenter(centerPoint); mapView.getController().setZoom(defaultZoom); // optional where centerPoint is the GeoPoint of the item. I don't see any other way to do it. -- You received this message because you ar

Re: [android-developers] Which Android service path to choose for implementing a large upload?

2010-07-17 Thread Frank Weiss
My suggestion is to look at some sample code, like Romain Guy's PhotoStream. Although PhotoStream does a Flickr download instead of an upload, the application structure covers services, AsyncTask (albeit an early version thereof), notifications, etc. -- You received this message because you are s

Re: [android-developers] "When" are the overlays drawn on the map?

2010-07-17 Thread Frank Weiss
If the updates don't happen until the onCreate or onClickEventHandler methods return, first guess is you're misusing the UI thread. That is, the UI thread is busy in your while loop and can't get anything else done, like drawing the overlays. Welcome to UI programming! I strongly suggest you put y

Re: [android-developers] Transferring control from Non UI thread to Ui Thread

2010-07-17 Thread Frank Weiss
I think you should know that an Android service is not meant to interact with the user directly, as with a dialog. Aside from questioning why the user input is needed in the midst of the service and whether the entire background process needs to be performed in a service, here's what I'd recommend

Re: [android-developers] Re: Best way to logout each time the application/task goes to background

2010-07-16 Thread Frank Weiss
Why do you need to force the user to login again just because their personal workflow involved starting an activity in a different application? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

Re: [android-developers] Re: Udp +Tcp connection in Android

2010-07-16 Thread Frank Weiss
AFAIK, there's not such thing as a UDP connection. However, if you've done this before in Java, what is the problem you are having doing it on Android? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

Re: [android-developers] Any cheap solutions of GPS signal simulation?

2010-07-16 Thread Frank Weiss
I suppose it would be fairly easy to have a mock GPS object makes callbacks to your activities. Assuming that's possible, what kind of scenario do you want? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

Re: [android-developers] Re: close activity A that invoked activity B

2010-07-15 Thread Frank Weiss
Perhaps it should be the other way around. Activity A, started by an external intent, checks to see if the T&C needs to be displayed. Activity A then starts for result activity B. If the result is affirmative, Activity A records the status and proceeds, otherwise simple finishes, or goes into a fa

Re: [android-developers] Re: Easy and fast XML Parser?

2010-07-14 Thread Frank Weiss
On Wed, Jul 14, 2010 at 1:45 PM, DanH wrote: > It should be noted that XML is really a pretty lousy language all > around -- hard to code, slow/difficult to parse, bulky.  For many > purposes, if you have a choice, JSON is a better option if you need a > human-readable notation, and there are any

Re: [android-developers] xcode equivalent for android development

2010-07-13 Thread Frank Weiss
www.eclipse.org + Android SDK -- 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

Re: [android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread Frank Weiss
I suppose you might also try just catching the IllegalStateException which would occur if not a UI thread AFAIK.. -- 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 un

Re: [android-developers] Re: Easy and fast XML Parser?

2010-07-13 Thread Frank Weiss
I did some research on the difference between SAX push/pull parsers. The consensus was that generally they are within an order of magnitude, the speed varies somewhat depending on the data, and that there is a factor of the preference for programming push vs pull. You noted that there is a marked

Re: [android-developers] Re: Newbie befuddlement -- wrong text in "HelloWorld" type app

2010-07-12 Thread Frank Weiss
Congratulations! I think most veteran programmers have had similar experiences with their first Android application. -- 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] main screen and dialog box on that screen

2010-07-12 Thread Frank Weiss
Don't use a dialog if you don't want modal behavior. On Jul 12, 2010 3:59 AM, "Narendra Bagade" wrote: Hi all, I have created one alert dialog box .I am displaying that dialog box on the click of submit button. once i press submit button ,it opens dialog box on the screen but at that time back

Re: [android-developers] Altitude location data

2010-07-11 Thread Frank Weiss
I suppose you're looking for an answer from someone who's run into the exact same or similar problem. However, I gently suggest you try to be more resourceful in your debugging. Try this: 1) Post the URL of the request that you using. 2) Look at the response. If the same numerical error is in the

Re: [android-developers] Shake Detector

2010-07-11 Thread Frank Weiss
I've had success using a digital band pass filter. Instead of fiddling with velocities, a band pass filter just looks at the power spectrum within a limited frequency range. I posted my code in the following thread: http://groups.google.com/group/android-developers/browse_thread/thread/d61f7790afb

Re: [android-developers] Get binary data from external device to Droid

2010-07-09 Thread Frank Weiss
I thiink you are asking too many questions at once. It usually helps to solve one problem at a time. AFAICT, you are dealing with three problems: how to establish communication between the phone and the device (although that's somewhat confusing, since a smart phone is frequently referred to as a d

Re: [android-developers] Mapping Application

2010-07-09 Thread Frank Weiss
Let's assume there's no Android application that will do that already or you don't want to license it. Start with some of the essential problems. Solve them one at a time. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

Re: [android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-07-09 Thread Frank Weiss
Although I agree with you, I think you've misposted. It is not an SDK issue. -- 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

Re: [android-developers] Keep the same value when converting from String to Float

2010-07-08 Thread Frank Weiss
I assume the error you are talking about is that you expect float longInt = -16.907325 instead of -16.907326. I thinka that can be explained by the decimal precision of IEEE 32-bit float: http://en.wikipedia.org/wiki/Single_precision_floating-point_format -- You received this message because you

Re: [android-developers] Beginner question about creating new class Eclipse

2010-07-07 Thread Frank Weiss
For the superclass, click the Browse button. Click the question mark in the lower left for an explanation of the Superclass Selection dialog. Similarly for the interfaces. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

Re: [android-developers] Re: Whether to use a Service or Thread for Http Connection?

2010-07-07 Thread Frank Weiss
It's not usually necessary to use a service for a quick network fetch. For example, when the user clicks a button that requires a network request that takes typically less than a few seconds and expects result displayed in same activity, just run the AsynTask in the activity. Services are for runni

Re: [android-developers] Screen Block

2010-07-07 Thread Frank Weiss
Possible in firmware or just as a state a single app can have. If it were possible for a app to block the screen so that the home button wouldn't work, then think of the very bad consequences this would have for other applications and the user. -- You received this message because you are subscri

Re: [android-developers] Screen Block

2010-07-07 Thread Frank Weiss
Yes indeed if it were possible with the SDK, any Android app could really screw up things! On Jul 7, 2010 1:09 PM, "ranjan ar" wrote: Hello, I would like to bring up a screen lock window. that constantly keeps popping up and doesn't allow users to get rid of it until he enters the right password

Re: [android-developers] Posting events to View

2010-07-07 Thread Frank Weiss
AsyncTask makes it easy. On Jul 7, 2010 1:17 PM, "Viktor Linder" wrote: Hi! I have the following problem: My app has a thread that updates the game state. The app needs to make a change to the state of the View object, triggered by this thread. The documentation for View states that it should on

Re: [android-developers] Re: Maintaining Aspect Ratio of Background Image

2010-07-06 Thread Frank Weiss
No worries. 16x9 (a la Droid) is probably the most extreme screen aspect ratio you'll ever encounter in an Android device. Have you considered creating a scaled and cropped image on the fly the first time the app is run and caching that on the SD card? -- You received this message because you ar

Re: [android-developers] Maintaining Aspect Ratio of Background Image

2010-07-06 Thread Frank Weiss
Sounds like you are making unrealistic assumptions that every device's display aspect ratio will be similar. What would happen with a device with a completely square display? What would you lose if you had a fallback, such as letterboxing? What would you lose if your application didn't have a back

Re: [android-developers] Re: How to wait for Asynctask to return with data

2010-07-06 Thread Frank Weiss
The second button should be disabled while the first asynctask runs. When it finishes, the second button is enabled. You don't need "global variables". You can save the results in instance fields of the activity. -- You received this message because you are subscribed to the Google Groups "Andro

Re: [android-developers] Re: Whether to use a Service or Thread for Http Connection?

2010-07-05 Thread Frank Weiss
Only people who want to punish themselves use Java threads on Android:-) But you also asked about Service. You can use an AsyncTask in an Activity if the task has to happen while the activity is active. If the task needs to happen also when the acitivity is not active, (like when the user goes to

Re: [android-developers] Re: discoverability

2010-07-05 Thread Frank Weiss
I think that, at a higher cognitive level, a user remembers what actions can be performed at a particular activity, not whether or not a menu exists. Frequently there is also a visual/motor memory asociated with the menu layout (example: third item = discard message). The way a user discovers what

Re: [android-developers] Re: Moving map method

2010-07-04 Thread Frank Weiss
I suppose via the mapview parameter. -- 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...@googl

Re: [android-developers] Moving map method

2010-07-03 Thread Frank Weiss
Try this and let us know if it works for you: http://osdir.com/ml/Android-Developers/2010-06/msg01242.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 unsubscr

Re: [android-developers] newbie android help

2010-07-02 Thread Frank Weiss
Try some of the sample Android applications. Look for one or two that do some of the things your application needs 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@googlegroups.c

Re: [android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Frank Weiss
Something's not right. Although I have no experience with DocumentBuilder, (ask me a SAXParser question, please!) the API reference, http://developer.android.com/intl/de/reference/org/w3c/dom/EntityReference.html, appears to say that character references should be expanded. What HTML or XML proces

Re: [android-developers] is there an easier way?

2010-07-02 Thread Frank Weiss
You weren't specific enough about your problem with Eclipse. If you want to program in Java, you could use the commnad-line SDK tools and just about any text editor. If you want to avoid Java, take a look at Roboform. -- You received this message because you are subscribed to the Google Groups "A

Re: [android-developers] Re: Accuracy of location.getAccuracy() GSM and GPS - exact Meaning?

2010-07-02 Thread Frank Weiss
I understand your question is really about diameter vs radius. I would suggest that what it means can only really be determined by field experiments with a particular set of devices. It's doubtful that a consumer device will adhere to the kind of accuracy specifications required of a professional G

Re: [android-developers] Re: Changing screen

2010-07-02 Thread Frank Weiss
Have you considered the following: 1) Use a web application instead of and Andorid application 2) Create a custom activity that creates a view (buttons, etc) on the fly from dynamic meta-data received from the server. 3) Like 2), but just a view, although an activity per screen (a chunk of user in

Re: [android-developers] which Java libraries are not included in Android?

2010-07-01 Thread Frank Weiss
It's very difficult to answer your question the way you've posed it. I'd suggest you can assume that what's in the api docs, http://developer.android.com/intl/de/reference/packages.html, is available. I know the Android Google Maps API is also available, documented at code.android.com, so there may

Re: [android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Frank Weiss
Are you using Eclipse? Have you tried stepping through your code with the debugger? I highly recommend you do that. -- 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] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Frank Weiss
In the endElement() method, also check for the other elements and save the contents of the StringBuffer: > if (qName.equalsIgnoreCase("business-name")) > { > businessName = sb.toString(); > } -

<    1   2   3   4   5   6   7   >