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] 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] 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: 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] 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: 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: CPU usage stats

2010-09-06 Thread Frank Weiss
Not in the SDK. I suppose because most uses of this is by developers who can simply use adb or ddms. -- 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] Recommendation for an Application with tons of media files

2010-09-06 Thread Frank Weiss
> I was thinking in using the sd card storage. That's a good idea. > But, I don't want the > user to accidentally remove the media files. I want it to be private, > not accesible to possible deletions. How might a user accidently remove them? Why is this a concern? -- You received this message

Re: [android-developers] Activities I Don't Want the User to be able to go Back to

2010-09-05 Thread Frank Weiss
The simplest thing to do when activity A starts activity B but activity A doesn't want to stay on the stack is for activity A to call finish() right after it calls startActivity() with the intent to start activity B. -- You received this message because you are subscribed to the Google Groups "An

Re: [android-developers] Re: Split Path to get filename and extension

2010-09-05 Thread Frank Weiss
> Might want to also check for last forward slash, in case the path portion of > the filename contains a dot. > > E.g.: > > /sdcard/.myapp/cachefile I suppose that should be taken care of by File.getName(). I might add that a test case for this new code would be a good idea. -- You received thi

Re: [android-developers] Re: Place two buttons side by side

2010-09-05 Thread Frank Weiss
Try the hello views page: http://developer.android.com/intl/de/resources/tutorials/views/index.html And please do use the resources before asking questions :-) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

Re: [android-developers] Re: Arithmetic error (BUG)

2010-09-04 Thread Frank Weiss
Admittedly, my example of precision calculation is overly simplified. In a real case, one would use % precision instead of absolute precision. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

Re: [android-developers] Re: Arithmetic error (BUG)

2010-09-04 Thread Frank Weiss
Arithmetic error? Bug? Well, sort of, but no. Sort of, because at first sight it looks wrong. At least from a purely mathematical perspective and because we kind of think computers are purely methematical. But no, because this is not even a computer issue. Take for example the problem of dividin

Re: [android-developers] Error Installing ADT on Galileo with JRE 1.6.0_19+

2010-09-03 Thread Frank Weiss
I think I found the fix. I located a copy of the jdk-1.6.0_17 installer on my home system (aren't you glad when keep around these old downloads?). Uninstalled jdk-1.6.0_21 on my company machine, installed _17. Then I was able to finish the install of the ADT on Eclipse. On Thu, Sep 2, 2010 at 3:55

Re: [android-developers] Re: Calling Tomcat server API's from Android app

2010-09-03 Thread Frank Weiss
That makes more sense. What is the class of the service object? I'd like to look at what Spring packages you are using. There are a few solutions that come to mind. 1) Find a Dalvik JAR of the client library for that Spring service package. 2) Add the necessary Spring client source code to your A

Re: [android-developers] Re: Calling Tomcat server API's from Android app

2010-09-03 Thread Frank Weiss
I wonder if we are on the same page with client-server. Anyway, maybe an example of an API you want to use would help clear things up. -- 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@g

Re: [android-developers] Calling Tomcat server API's from Android app

2010-09-03 Thread Frank Weiss
Is this a client-server architecture? What Tomcat/JEE Servlet APIs do you want to call in the Android app? -- 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: "IllegalArgumentException: parameter must be a descendant of this view" related issue

2010-09-01 Thread Frank Weiss
I'd hazard a guess that it has something to do with android.view.ViewRoot.scrollToRectOrFocus(). Can you narrow it down to some user action that might invoke that method? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

Re: [android-developers] XML RPC login failed

2010-09-01 Thread Frank Weiss
OK. So why is the server returning that HTTP status? My first guess is the URL is incorrect. What's your guess? -- 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 unsu

Re: [android-developers] XML RPC login failed

2010-09-01 Thread Frank Weiss
Are saying that you don't know what HTTP status 404 means? You're putting me into a crabby mood! -- 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] Re: "IllegalArgumentException: parameter must be a descendant of this view" related issue

2010-09-01 Thread Frank Weiss
I suppose the exception is being thrown by some API method (or posisbly an internal SDK method) that takes a parameter of type View. Have you identified the API method? Another thing to do is get the SDK source and search for that error message. -- You received this message because you are subscr

Re: [android-developers] stuck right at the beginning

2010-09-01 Thread Frank Weiss
I suppose it's complaining about the @string:hello. Did you forget to copy the strings.xml file 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

Re: [android-developers] Re: Getting started with Android

2010-09-01 Thread Frank Weiss
I forgot to add, books, such as Mark Murphy's http://commonsware.com/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-developers@googlegroups.com To unsubscribe from this group, send emai

Re: [android-developers] New Developer

2010-09-01 Thread Frank Weiss
It really helps if you already have working knowledge of Java and Java debugging. Depending on the kinds of apps you want to build, also helps to have working knowledge of one or more of the following: networking, graphics, OpenGL, client-server, XML and XML parsing. Although you don't need to use

Re: [android-developers] Web browser

2010-09-01 Thread Frank Weiss
Do you mean a web browser or a web server? In either case, it's not clear why for a class project you would want to implement that on Android instead of on desktop, unless, of course that would be to boring for an advanced Java developer. -- You received this message because you are subscribed to

Re: [android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread Frank Weiss
Have you studied the Activity lifecycle? http://developer.android.com/reference/android/app/Activity.html It's better if you ask question relative to something like that. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

Re: [android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread Frank Weiss
When the user "launches the app" from the home screen, the activity given in the manifest is started. I suppose the licensing check should be done in that activity's lifecycle methods. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

Re: [android-developers] Use of Service component?

2010-08-31 Thread Frank Weiss
Doing a background task with AsyncTask can be done in either Activity or Service. Depends on what you're trying to do. For example, something similar to downlaoding a web page, do in Activity as user is likely to wait and nothing really lost if user swtiches to another task. Something like checking

Re: [android-developers] Re: using javascripts v3 api in android - help required urgently

2010-08-31 Thread Frank Weiss
I assume you want to develop a web-based Googlew Maps V3 app that would display in the Android browser. Maybe I'm missing something, but this has nothing to do with Android. I verified by trying a V3 maps app developed for desktop browsers. Works in the Android browser as well. -- You received th

Re: [android-developers] What is the proper way to close an activity/application?

2010-08-30 Thread Frank Weiss
> That tab does not mean what you think it means. The fact that your > application appears there probably merely means there is a process > still in memory that most recently was running your code. It does not > mean that any of your components (activities, etc.) are still > considered to be "live"

Re: [android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread Frank Weiss
John, I don't think we disagree. I've observed similarly accurate fixes, under ideal conditions and given enough time. To add to the OP's question, if the device receives the SMS while indoors, that's one of the worst conditions to get an accurate GPS fix. -- You received this message because yo

Re: [android-developers] How Write a background service to get latitude and longitude

2010-08-30 Thread Frank Weiss
Use getLastKnownLocation(). Be forewarned that there's no way to get a fix on demand on most mobile phones. This is to conserve battery. Even actual GPS devices can only give you periodic fixes, but at a finer period than Android devices. Best you can get on Android is what's in the Location object

Re: [android-developers] How to pause SAXParser

2010-08-30 Thread Frank Weiss
I don't think you can pause the SAX push parser, since it pushes all the parse events to the callback methods. Look into the XMPP push parser instead. It's usually the last package shown in the developer reference. -- You received this message because you are subscribed to the Google Groups "Andr

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Frank Weiss
I've been following this discussion with some interest. I have no opinion at this point, but here's a data point that might be interesting. I'm developing an app with a particular set of POIs (points of interest). Originally the manifest had and the POI detail activity had a button that would inv

Re: [android-developers] MapView + Image Overlay question

2010-08-29 Thread Frank Weiss
A simple solution: prevent zoom. Crummy solution: scale the images. Best solution: prescaled images on server, if possible. -- 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@googlegrou

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Frank Weiss
I'm not a total expert on this... Threads are really just a way of running multiple stacks/program counters in the same address space. It's fair to assume they are time-sliced. Services and Activities are run in a single UI thread (AFAIK) and the precessing model is typical UI thread which calls e

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Frank Weiss
I suppose you'd be better off with a service per service instead of one god service. The reason is that it make the code cleaner - you don't need to manage multiple alarms and network connections in one class. An exception would be a service that just does one kind of thing, but handles a queue of

Re: [android-developers] User photo + latitude-like marker in Custom View

2010-08-28 Thread Frank Weiss
Here's a good starting point: http://github.com/jgilfelt/android-mapviewballoons -- 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 e

Re: [android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread Frank Weiss
I think it's something Google should fix, but I'm have a hard time justifying it based solely on ATM and excessive bank charge issues. Those would appear to be a choice of which bank accounts a developer uses. -- You received this message because you are subscribed to the Google Groups "Android D

Re: [android-developers] Using Bouncy Castle with an Android app

2010-08-27 Thread Frank Weiss
I suppose you might try asking the folks at BouncyCastle to provide an Andorid/Dalvik/Harmony version or become a committer on that project. (Damnit! I'm starting to see some merit to the Oracle vs Google/Android lawsuit) -- You received this message because you are subscribed to the Google Group

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-27 Thread Frank Weiss
On the otherhand, I'd probably want to know if an app was ever going to ask for a particular permission. Then again, it might be reasonable if an app, at some point after it's installed, said "if you grant me this permission, I can do this additional function" or "to fulfill your request, I will ne

Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-27 Thread Frank Weiss
Zsolt, I work at a digital advertising agency and have been sharing your experience with my colleagues. They found it very intereresting and of course, obvious. When I remarked that many Android developers are, well, developers, they joked that maybe our agency should start helping mobile app devel

Re: [android-developers] Re: String being truncated when its long

2010-08-27 Thread Frank Weiss
Might I suggest you try debugging in Eclipse instead of with logcat. You can breakpoint and step through the code and inspect variables. It gives you much better insight into what's happening in your code than logcat or toast. -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Flickering.

2010-08-27 Thread Frank Weiss
First a question: Is the flickering on the emulator or a device? Emulator is much slower than a 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

Re: [android-developers] Re: App Appears Multiple times in "Recent Apps" list.

2010-08-26 Thread Frank Weiss
John, I think the OP is talking about long-press Home recent apps, not the Market just-in. -- 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] Re: create Hierarchical menu

2010-08-26 Thread Frank Weiss
That's similar to the JTree question someone else asked. I think the reason Android doesn't have something like JTree is because it's debatable how well such a detailed view works on a small screeen and on different screen sizes. Have you considered a sequence of list dialogs to drill down instead

Re: [android-developers] Can anybody tell me how read the source code of Android sdk. not class files

2010-08-26 Thread Frank Weiss
code.android.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Re: how to select tag

2010-08-25 Thread Frank Weiss
What is it you want the activity to do when the user taps a marker in the overlay? -- 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] hi

2010-08-25 Thread Frank Weiss
It's not like no one has explained Android before, 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 em

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-08-25 Thread Frank Weiss
Maybe this is a dumb question, but what are some ROI benchmarks for piracy prevention (for Android apps)? For example, if a publisher spends X dollars on piracy prevention (however effective it may be) the revenue goes up (or down) by Y dollars. Just curious if piracy prevention is more objective

Re: [android-developers] Re: Best way to store restaurant data

2010-08-25 Thread Frank Weiss
An app I'm developing uses URLConnection, others like to use HttpClient. I suggest you find some sample code that does something similar and study how it's done. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

Re: [android-developers] Android Emulator vs iPhone emulator (Why does it take so long)

2010-08-25 Thread Frank Weiss
Just to be a bit cheeky, why use the Android emulator at all? You know it doesn't cost $99/year to to run your Android apps on a device. But yes, I'm using both Android and iPhone/iPad SDKs and Android SDK is a bit klutzy and slow. -- You received this message because you are subscribed to the G

Re: [android-developers] Re: How to check the Foreground Process from a Service

2010-08-24 Thread Frank Weiss
I'll think you need to more precise what that trigger is. Previously, you've been asking how to know what activty is on top of the stack. It seems that the activity on top of the stack is the one your activity started. So I would say the trigger is the moment when your activity starts the other act

Re: [android-developers] Further Info

2010-08-24 Thread Frank Weiss
Your terminology is quite bit confusing. You seem to use the term "app" to mean "activity". I assume the scenario you are trying to describe is based on: your app has an activity A and a service B, and another app has an activity C. When activiity A is CREATED [emphasis mine] it starts service B

Re: [android-developers] Re: Best way to store restaurant data

2010-08-24 Thread Frank Weiss
how do you think your changes will get to your app on a user's phone? On Aug 24, 2010 5:57 PM, "Dominic" wrote: > It's not a lot of data. Just restaurants from one city. But I want to > be able to add or remove restaurants and update daily specials so that > all the users can see everything. The

Re: [android-developers] Re: How to check the Foreground Process from a Service

2010-08-24 Thread Frank Weiss
What does "turning off my app" mean? -- 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] Re: How to check the Foreground Process from a Service

2010-08-24 Thread Frank Weiss
I suppose you could simply have the activity, when it comes to foreground (onResume), go ahead and stop the service? -- 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] Best way to store restaurant data

2010-08-24 Thread Frank Weiss
I assume that if you want to edit the information after the app is published you mean that the information would be on a server. The app would periodically download that data from the server. I suggest you use RSS or GeoRSS to format the web server data. You can use either a file or SQLite on the

Re: [android-developers] how to select tag

2010-08-24 Thread Frank Weiss
Try using MapActivity.onFocusChanged(ItemizedOverlay overlay, OverlayItem item) -- 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 em

Re: [android-developers] how to write data to the existing xml file using code in android

2010-08-24 Thread Frank Weiss
I assume you mean XML files in the Android res source code folder? -- 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 androi

Re: [android-developers] hyphenated Android directory names and SVN

2010-08-24 Thread Frank Weiss
I see many folder names with dashes in Subversion repos I use. I've never had a problem. I use subclipse and SVN command line. Is it possibly a server issue or a server filesystem issue? A similar, but unrelated issue is changing file or folder name casing on Windows. -- You received this messag

Re: [android-developers] Re: How to get the screen all dark but still touch sensitive

2010-08-23 Thread Frank Weiss
I won't be able to google that or check the API docs for about 24 hrs... -- 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] How to get the screen all dark but still touch sensitive

2010-08-23 Thread Frank Weiss
Turn off the backlight. It's doubtful the hardware or firmware allow turning off the bl and ts separately. On Aug 23, 2010 11:13 AM, "mot12" wrote: > I want to get the display as dark as possible but I also want the > display to remain touch sensitive. > > So I can't turn the display off, otherwi

Re: [android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread Frank Weiss
I'm curious what the OP was trying to accomplish. It seems to me that even if the informastion were available, it could be out of date in a very short matter of time. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

Re: [android-developers] sending and receiving LinkedHashMap through Bundle

2010-08-22 Thread Frank Weiss
I hope you realize I'm not psychic and can't see your display, so you'll have to provide more info. In fact, if you can describe the problem in more detail, chances are you'd be able to diagnose it yourself :-) What runtime error and the source code at which the error is apparently being thrown?

Re: [android-developers] sending and receiving LinkedHashMap through Bundle

2010-08-22 Thread Frank Weiss
You haven't been specific about what the problem is. Can you provide compiler warnings or runtime errors? -- 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: How to get absolute time ?

2010-08-22 Thread Frank Weiss
I assume you are trying to get current UTC time for purposes of DRM, such as expring a trial license. From what I can tell on my Droid, there are two ways the system time is set, automatically and manually. I'm pretty sure manually can be used to defeat time-based DRM, as it has been on desktops fo

Re: [android-developers] Re: Any Interview Question

2010-08-22 Thread Frank Weiss
I don't know why you think there's something Android-specific on the server side. Excepting, of course the market, LVL and perhaps C2DM. However most client-server communication between Android and a server, respectively, generally follow these three patterns: 1) document-centric, such as XML, RSS

Re: [android-developers] Using make file of a cpp project in Android.mk

2010-08-21 Thread Frank Weiss
The first thing that comes to mind is add an Ant exec task to run the CPP make. -- 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 em

Re: [android-developers] Re: enable/dissable fullscreen for lifetime of the app?

2010-08-21 Thread Frank Weiss
I'm intrigued by ContextWrapper and ContextThemeWrapper to solve the OP, but I'm not clear on how to use it in that case. It looks like one way to use it is: class MyContextWrapper extends ContextWrapper { ...} and then use the constructor to use it as a proxy for a given context: SomeActivity a

Re: [android-developers] connecting mysql database

2010-08-21 Thread Frank Weiss
Out of the many ways to interpret your question, I'm going to assume your Android app needs to query certain data you have in a MySQL database running on a server on the internet. The typical way that's done is add a web service on that server that performs the SQL queries locally and returns XML

Re: [android-developers] Re: How to compile/run JUnit 4 tests in Android?

2010-08-20 Thread Frank Weiss
I wish I could help you, but I'll have to be a "taker" on this thread. However, I was wondering whether your problems might be due to Eclipse? Have you tried building your .apk with Ant using aapt? -- You received this message because you are subscribed to the Google Groups "Android Developers"

Re: [android-developers] Re: Incoming Call GPS

2010-08-20 Thread Frank Weiss
I wouldn't be all that sour about it. Just like Caller ID, there may be a reasonable use to a caller for disclosing their location, at their option, of course. But AFAIK, it's not currently possible. -- You received this message because you are subscribed to the Google Groups "Android Developers"

Re: [android-developers] Re: Incoming Call GPS

2010-08-20 Thread Frank Weiss
On Fri, Aug 20, 2010 at 4:42 PM, David Toledo wrote: > I need the option 2  , Phone B, The call receiver, want to know La. Is > Possible? It's theoretically possible. The 911 system can do it, sort of. Question is, does the Android SDK support it and do the cell phone carriers support it for non-

Re: [android-developers] Re: Incoming Call GPS

2010-08-20 Thread Frank Weiss
OK, let's try again. Phone A makes a call, from location La, which is picked up by phone B, which is at location Lb. On which phone do you need to get the location? Which location does it want to know? Clearly, phone A can determine its own location, La, and phone B can determine its own location,

Re: [android-developers] Re: Incoming Call GPS

2010-08-20 Thread Frank Weiss
I suppose the getCellLocation() would give the local, that is the call receiver's, location. I think you are looking for the call originator's location? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Frank Weiss
>> I looked at the TreKing (Chicago) market blurb. It's probably just me, but >> a list of features is not good marketing prose. > > My app is a tool for people to get around on public transit. IMO, it's value > comes from all the things it does for people that other similar apps don't. > With such

Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Frank Weiss
I tend to favor "less is more". It's like resumes - you need to grab your audience in the first 200 words. There's really nothing you can say after that that will change their mind. I looked at the TreKing (Chicago) market blurb. It's probably just me, but a list of features is not good marketing

Re: [android-developers] Re: How to capture the contents of webview and parse it

2010-08-20 Thread Frank Weiss
Well, gosh, if you're trying to access an RSS feed, that's in XML. So brush up on the URLConnection or HttpClient and the SAXParser or xml pull parser. You ought to be able to Google how to do that in Java. -- You received this message because you are subscribed to the Google Groups "Android Deve

Re: [android-developers] Getting critical feedback on your application

2010-08-19 Thread Frank Weiss
I wanted to add that if you really want to keep your customers satisfied, a complaint is a gift. The problem in this case is finding the sincere complaints. -- 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] Reverse C2DM

2010-08-19 Thread Frank Weiss
Sorry, but that question is a bit confusing. The title suggests you're asking about Android-to-cloud, but then you throw in Windows. -- 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] parsing xml

2010-08-19 Thread Frank Weiss
What's the parsing error? What and how is that document being parsed? I eyeballed ther XML and it looks OK (albeit a bit hokey with all those text nodes). -- 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: Exiting Application

2010-08-17 Thread Frank Weiss
Would you please study the fundamentals: http://developer.android.com/intl/de/guide/topics/fundamentals.html I think you'll get more help if you explain what needs to be "running" at all times in the background. What is happening when it's "running"? -- You received this message because you are

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

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

<    1   2   3   4   5   6   7   >