Re: [android-developers] Re: Killi Process with files on SD card

2010-09-06 Thread Frank Weiss
Can this data be written sooner rather than later? Can you put it or part of it in SQLite, where it's quicker to update just a part of a large data model? -- 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: android design pattern

2010-09-06 Thread Frank Weiss
Three lines of boiler plate. Not sure if I'd bother refactoring that! But anyways... You might have issues using the Activity subclass pattern becasue you can't do that with existing patterns. Here's another approach. In your home activity, or in a Global class, add a static method: public static

Re: [android-developers] Re: android design pattern

2010-09-06 Thread Frank Weiss
Correction: ...with exisiting *activities* such as MapActivity, TabActivity, ListActivity. -- 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 gro

Re: [android-developers] Multiple Activites That Share 75% of a Layout...Layouts Within Layouts?

2010-09-06 Thread Frank Weiss
That sounds a lot like a TaqbHost/TabView. I suppose each tab, Amour, Weapons, etc, would be associated with a different activity, but sometimes that's debateble. Tricky part may be how to layout the common player image. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Two buttons side by side to fill width of screen?

2010-09-06 Thread Frank Weiss
On Mon, Sep 6, 2010 at 1:52 PM, Droid wrote: > With LinearLayout I believe I cannot two get buttons side by side? > > That's what the documentation and samples indicate (wondering why you had to ask that - again). Maybe you're overlooking that Button is a subclass of View, so can be laid out just

Re: [android-developers] Re: Recommendation for an Application with tons of media files

2010-09-06 Thread Frank Weiss
> > >> 2010/9/6 Frank Weiss > >> > How might a user accidently remove them? Why is this a concern? > > There are a few file explorer down there, and for X reason people can > remove data using them. The problem is that if that data is removed, > it has to be d

Re: [android-developers] Multi-touch for a Piano

2010-09-06 Thread Frank Weiss
I suppose what you need to do is NOT have the key views handle touch events directly. Instead have the parent view and/or activity handle the multitouch events. I think you would need to understand how touch events propagate through the view hierarchy. -- You received this message because you are

Re: [android-developers] location NOT working correctly in droid after the upgrade to 2.2

2010-09-06 Thread Frank Weiss
Need some more details. Was this about someone else's thread? What is the test case? Have you tried a diagnostic app, such as GPS Essentials? I have a Droid running 2.2 and see no problems with location. I did notice there was a recent system update after the Froyo update. My phone shows 2.2 build

Re: [android-developers] location NOT working correctly in droid after the upgrade to 2.2

2010-09-06 Thread Frank Weiss
> > However, when I use the google search or use the browser and check for the > location . It shows a different a zipcode ( city). > > Sorry, I don't understand those two use cases (google search and browser) how they relate to location? -- You received this message because you are subscribed to

Re: [android-developers] How to repeatedly draw on a canvas

2010-09-06 Thread Frank Weiss
I suppose you need to use a display list. -- 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] How to repeatedly draw on a canvas

2010-09-06 Thread Frank Weiss
The list of objects the view draws when the OS asks the view to redraw itself. -- 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 ema

Re: [android-developers] Wait for activity to finish?

2010-09-07 Thread Frank Weiss
You are probably supposing that the startActivityForResult method is synchronous, that is, when it returns the camera activity has finished. Not! There is an intent result callback you should focus on, no pun intended. -- You received this message because you are subscribed to the Google Groups "

Re: [android-developers] Re: Wait for activity to finish?

2010-09-07 Thread Frank Weiss
The documentation for Activity.startActivityForResult explains it, no? -- 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 an

Re: [android-developers] Wait for activity to finish?

2010-09-07 Thread Frank Weiss
I just read the OP more closely, and the error is encountered in the onActivityResult() callback. My bad. -- 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 unsubscrib

Re: [android-developers] Launch two Activities extended from another one.

2010-09-08 Thread Frank Weiss
Please show the part of the manifest that is used to launch A and B. Looks like the problem may be there. -- 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 unsubscrib

Re: [android-developers] Re: Killing all the activities that was started by my application.

2010-09-08 Thread Frank Weiss
On Wed, Sep 8, 2010 at 8:03 AM, Ajmer singh wrote: > Thanks for your reply > > I have another question regarding that, How can i put the already running > activity in the background to the foreground, > For example : if i have started Activity A then i started other Activity B > Then Activity A sh

Re: [android-developers] Re: CPU usage stats

2010-09-08 Thread Frank Weiss
On Wed, Sep 8, 2010 at 3:01 AM, Andy wrote: > Hi all, > > Thanks for the input and I think these comments answer my question. > Maybe it would be an idea to allow an SDK api to access these stats as > they, in my view for applications, can be very useful due to the heavy > multitasking nature of

Re: [android-developers] Re: How to send a string to server

2010-09-08 Thread Frank Weiss
Looks bad, very bad. First, I have no idea why you're allocating 1.8 MB (remember that Java, and I suppsoe Dalvik as well, takes 16 bits per char). How come so much? Second, of course writing a byte (or is it a char, there's a mismatch there) is going to be slower than writing at least a few thous

Re: [android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread Frank Weiss
Tez, why don't you repost your question and abandon this toxic thread. Oftentime, stating a question a better way gets better answers I would agree that dropping the all caps from the title would help you and keep the forum civil. -- You received this message because you are subscribed to the Go

Re: [android-developers] problem with AsyncTask

2010-09-10 Thread Frank Weiss
Maybe you meant something like: cancel.setOnClickListener(new OnClickListener() { public void onClick() { cancel(true); }); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

Re: [android-developers] java issues in mac and window

2010-09-12 Thread Frank Weiss
Which JDK version do you have installed on the Mac? Which JDK version is the tool that had "issues" using? -- 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 unsubscri

Re: [android-developers] Re: Documentation & tutorials

2010-09-14 Thread Frank Weiss
Well, since you like open source, perhaps if you compared Android documention with another open source project instead of iPhone, I'd have more sympathy with your complaint. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

Re: [android-developers] Setting layout attributes based on android OS version?

2010-09-14 Thread Frank Weiss
You understand that the XML only creates and initializes a view graph? The view graph itself is accessible at run time. -- 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] Storing Permanent Data

2010-09-14 Thread Frank Weiss
Fail. The openness of the platform does not allow an app to store secure permanent data. The suggested solution is to use your own server to store trial registration data. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

Re: [android-developers] Re: Setting layout attributes based on android OS version?

2010-09-14 Thread Frank Weiss
I suppose you could add OS-specific info to the layout XML files and write your own layout inflater. -- 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 fro

[android-developers] How to get image from received share intent from Gallery

2010-09-14 Thread Frank Weiss
I'm creating an app for posting pictures to a particular proprietary social site. I have it working with the camera and the IMAGE_CAPTURE intent. I want to add the ability to do this from pictures in the Gallery. I seem to have everything wired up, but I'm scratching my head how to get the image fr

Re: [android-developers] Loading XML data to array “gives up” if XML is too big

2010-09-14 Thread Frank Weiss
It's running out of time in onCreate() or running out of memory. If the XML data is known at compile time, why bother parsing it at run time? -- 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] How to get image from received share intent from Gallery

2010-09-14 Thread Frank Weiss
Thanks, Kostya. It looks like I need a bit more secret sauce. The Uri I'm getting is "content://media/external/images/media/30", but it looks like I need to translate that into an actual file path for BitmapFactory.decodeFile(). Even hardwiring "/media/external/images/media/30". I suspect I need to

Re: [android-developers] How to get image from received share intent from Gallery

2010-09-14 Thread Frank Weiss
OK, the secret sauce was to use the ContentResolver. In this case the code is: Uri streamUri = theIntent.getParcelableExtra(Intent.*EXTRA_STREAM*); *if* (streamUri != *null*) { ContentResolver cr = getContentResolver(); InputStream is; *try* { is = cr.openInputStream(streamUri); bitmap = Bi

Re: [android-developers] Re: Loading XML data to arr ay “gives up” if XML is too big

2010-09-14 Thread Frank Weiss
Are you sure you want this data bundled in your app? Doesn't the data change every so often? Otherwise, I suggest you look into Resources.getXml(). I don't recall offhand in what folder you need to place trhe XML file. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Playing with List

2010-09-15 Thread Frank Weiss
I suppose another solution would be to use separate ItemizedOverlays. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to and

Re: [android-developers] Find the location in Android Map

2010-09-15 Thread Frank Weiss
I see a couple of issues with your code. 1) The location variable set in the following line does not appear to be used anywher: Location location = locationManager.getLastKnownLocation(provider); 2) Are you trying to send an intent to the Maps or Browser app, of handle the location display yours

Re: [android-developers] Want to develop develop droid application

2010-09-15 Thread Frank Weiss
I don't think there's a "perfect" setting. Please look through the documentation regarding this topic, follow the many thread on this very topic, and post a most specific question. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

Re: [android-developers] HttpURLConnection or HttpClient

2010-09-15 Thread Frank Weiss
For simple requests, URLConnection works fine. Use HttpClient if you need to manage basic auth, cookies, headers, etc. -- 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] ACTION_IMAGE_CAPTURE intent

2010-09-15 Thread Frank Weiss
I'll compare this with similar code I have running, but meanwhile, could you run in debug and give the stack trace or at least identify the exception. That should also give you the line number in your code. -- You received this message because you are subscribed to the Google Groups "Android Deve

Re: [android-developers] Find the location in Android Map

2010-09-15 Thread Frank Weiss
I want to help you, but I don't clearly understand what you want to do. I thought you want to to display a mark on a map from the latitude and longitude a user entered in two text fields. But I don't understand if you want to display that on a MapActivity in your app or in another app. One thing

Re: [android-developers] Ampersand in String Array

2010-09-16 Thread Frank Weiss
I suppose you mean in XML. The answer is &. On Sep 16, 2010 1:59 AM, "KG" wrote: > Hi Everyone, > > I've looked around for how to use an ampersand ( '&' ) in an item for > a string-array but can't seem to find it. I feel silly for having to > ask for something this simple, but does anyone know ho

Re: [android-developers] Database of android device configurations

2010-09-16 Thread Frank Weiss
Deviceatlas.com On Sep 16, 2010 7:13 AM, "EmilDiego" wrote: > Is there a database anywhere that has all of the different devices > that use the android operating system and what their technical specs > are. Mainly screen size, screen density, internal storage, external > storage, memory, etc. > >

Re: [android-developers] Find the location in Android Map

2010-09-16 Thread Frank Weiss
On Wed, Sep 15, 2010 at 9:56 PM, Dhrumil Shah wrote: > I thought you want to to display a mark on a map from the latitude and > longitude a user entered in two text fields. But I don't understand if you > want to display that on a MapActivity in your app or in another app. > - I want to display t

Re: [android-developers] How to add option to "share via" menu

2010-09-16 Thread Frank Weiss
Add something like this in your AndroidManifest.xml file: -- 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 uns

Re: [android-developers] Re: How to install the .apk file into blackberry

2010-09-17 Thread Frank Weiss
Daring to go OT, I'm wondering if Android is the JME killer. As mentioned by the previous poster, JME is not all that WORA (write once run anaywhere). Aside from layout and some other issues, Android looks like it is the closest yet. Thoughts? -- You received this message because you are subscrib

Re: [android-developers] Converting Bitmap to ASCII

2010-09-18 Thread Frank Weiss
I suggest looking into multipart mime type libraries. The API will likely have an encoding parameter. I suppose a commone one is base64. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers

Re: [android-developers] Re: Is it possible to rotate screen by program code but not accelerometer sensor?

2010-09-19 Thread Frank Weiss
There is an Auto rotate system setting, but apparently turning it off forces everything into portrait, at least on my Droid. Seems a little bit weird. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

Re: [android-developers] Re: Navigate up activity stack

2010-09-20 Thread Frank Weiss
I have to ask, why do you want to "quit the app". Why do you think that is something you need 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.com To unsubscribe fro

Re: [android-developers] Re: Navigate up activity stack

2010-09-20 Thread Frank Weiss
It does matter why. The process only holds a Dalvik VM to run activities and services of an app. Why do you need to kill the VM? -- 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@googleg

Re: [android-developers] Re: Navigate up activity stack

2010-09-20 Thread Frank Weiss
Let's try it a different way. What happens if you don't? -- 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-develope

Re: [android-developers] Re: map can't load at specific places

2010-09-20 Thread Frank Weiss
Is that just one map tile or all the map tiles? Would the overlay be drawn if there was no network connectivity? -- 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 uns

Re: [android-developers] Re: Navigate up activity stack

2010-09-20 Thread Frank Weiss
OK. There's no way to quit the app because such an event doesn't exist in Android. The best answer, given by the Android gurus is: let the Android OS exit the process when it decides to do so. -- You received this message because you are subscribed to the Google Groups "Android Developers" group

Re: [android-developers] Re: map can't load at specific places

2010-09-21 Thread Frank Weiss
Strange. Maybe try a few more locations besides home and office and see if there's any pattern. -- 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 thi

Re: [android-developers] New to Developing, Need Insight

2010-09-21 Thread Frank Weiss
To answer your general question: it takes experience. I've been programming for decades and it still sometimes takes me hours of Googling and trial and error to see if I can get it to work the way I want it to. I guess you'll find out soon enough if you really really like programming. -- You rece

Re: [android-developers] A Problem about developing with GPS module

2010-09-21 Thread Frank Weiss
Yup. I think the phone's GPS is optimized for battery life, not high sampling rate. But I haven't actually tried a real GPS unit side by side with my Droid. -- 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: New to Developing, Need Insight

2010-09-22 Thread Frank Weiss
On Wed, Sep 22, 2010 at 1:36 PM, Greg Donald wrote: > God I hate sales people. > > > Agreed. I don't think Tim has posted anything but spam. It's usually off-topic (less than 10% of the questions are in regards to form/database issues, AFAICT). It's far, far less effective than testimonials from

Re: [android-developers] Re: New to Developing, Need Insight

2010-09-23 Thread Frank Weiss
I'll vet TreKing, too. He knows what he's talking about - even if you can't pose the Q reasonably clearly :-) I do want to add that if you have a specific issue with someone's netiquette, it's better to write them a polite personal note instead of lambasting them in front of everyone. That said,

Re: [android-developers] Re: Please help me with calculating direction from point A to B

2010-09-23 Thread Frank Weiss
Sounds like writing some unit test cases would help. Of course, you may need to refactor the code to make it testable. The advantage would be that you will see more clearly the input parameters and the constraints. It would divide and conquer the problem. The test cases would be the theory of what

Re: [android-developers] Re: android.app.Application NullPointerException

2010-09-23 Thread Frank Weiss
I think the lesson is that an Android application and android.app.Application are frequently mistakenly assumed to behave the same as an "application" on other operating systems. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

Re: [android-developers] Please Help

2010-09-27 Thread Frank Weiss
I think you'll get more help with a specific question. I suggest you start with the developer.android.com web site and then ask for clarifications of particular problems that you can't solve by studying the documentation there. If you are looking for additional resources, such as PDFs, have you tri

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

[android-developers] CopyOnWriteArrayList Problem

2010-07-19 Thread Joshua Frank
d the eclipse debugger to step through the issue and found that the CopyOnWriteArrayList "lock" instance variable is what is set to null. Has anyone else seen this and is there any fix? -- Joshua Frank -- You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Re: Receiving UDP Broadcasts

2010-07-20 Thread Frank Neuhaus
y it worked with Nexus One 2.1 and works > with 2.2. > > We also found this > issue:http://code.google.com/p/android/issues/detail?id=8407 Hm well I guess thats both bad and good news. I guess I'll have to wait for Android 2.2 then :-\ Best regards, Frank -- You received thi

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

<    1   2   3   4   5   6   7   8   >