[android-developers] High resolution icon require to make my app not "Mature" - What the heck?

2010-12-11 Thread joshv
So I get a message from google saying that I need to update the content rating on my apps because otherwise they will default to mature. So fine, pull up the developer console, check "All", hit save. "High resolution icon required". Really now? Is it? Haven't touched my icons in like a year -

[android-developers] Re: Got my free DROID, who's paying for service?

2010-04-01 Thread joshv
t; there)...free for 1 month... > > On Apr 1, 1:30 pm, joshv wrote: > > > > > So as part of the Google device seeding program I recently recieved my > > free Droid.  Great phone, and it appears to have wireless and data > > service.  I've done nothing to activat

[android-developers] Got my free DROID, who's paying for service?

2010-04-01 Thread joshv
So as part of the Google device seeding program I recently recieved my free Droid. Great phone, and it appears to have wireless and data service. I've done nothing to activate it and I can make calls and surf the web over 3G. My question is, who's paying for it? I tried to activate the phone in

[android-developers] Re: concurrency of AsyncTasks

2009-06-27 Thread joshv
Interesting issue. I can see the need to make this configurable though. In some cases it would be nice to make sure that these background tasks do not run concurrently as concurrency issues can result. For example, I might have a URL fetch tied to a user interface button. When the URL returns,

[android-developers] Re: Android Dev Phone Battery life

2008-12-29 Thread joshv
Yeah, I am lucky to go a full day on one charge. 90 minutes of web surfing (on the bus to and from work) will easily kill an entire charge. If I just leave the thing in standby, with wi-fi off, it might last 2 days. On Dec 19, 10:57 am, Vladimir Kelman wrote: > Hi! For how long do your Android

[android-developers] Re: % character not displayed correctly by WebView?

2008-12-19 Thread joshv
Use loadDateWithBaseURL - pass it a dummy base URL. On Dec 19, 7:43 am, "Inderjeet Singh" wrote: > The following code snippet produces a weird browser error (Web page not > available) on WebView: > >     String message = "Show Percent: 38% "; >     WebView mWebView = (WebView) activity.findViewB

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread joshv
ew. You may or may not use it. > > I don't know what google dudes were smoking but I would like to know > where they get the good stuff. > > On Dec 18, 10:37 am, joshv wrote: > > > In my adapter code I take the convertView supplied, if not null, and > > then a

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread joshv
In my adapter code I only ever return a single type of view from getView(). This view always has a field with an id of R.id.name. A non-zero percentage of the time I am given a convertView in the parameters passed to getView() and the code: convertView.findViewById(R.id.name) will return null.

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread joshv
In my adapter code I take the convertView supplied, if not null, and then attempt to do a findViewById for a field I know should be in the view. If it's there, I use the view, if it's not, I recreate the view from scratch. On Dec 18, 8:45 am, loty wrote: > I have a question about getView method

[android-developers] What determines Android Market popularity ranking

2008-12-18 Thread joshv
I've posted this question to the Market technical support forum and received no answer, so I will try here. Does anyone know what metrics are used to determine an application's popularity in the Android Market? It does not appear to involve just the number of ratings, the download count, or the

[android-developers] Re: Creating reusable components for use across multiple packages

2008-12-17 Thread joshv
I do not believe there is any way to share code via an apk deployment. Each application is an island, and can use only the system libraries, and the code shipped in its own apk. On Dec 16, 12:28 pm, Mark wrote: > If I am interested in creating custom views, services, and utilities > that would

[android-developers] Re: When is (or isn't) instance state restored ?

2008-12-16 Thread joshv
Basically if you are interested in long term persistent state, ignore the Bundle passed in onCreate - I don't pretend to understand the reasons for why it is or is not null - perhaps they make sense to the framework designers, but whatever the rationale, it doesn't make much sense to store any sta

[android-developers] Re: Installation unsuccessful - Package file was not signed correctly

2008-12-15 Thread joshv
f generated certificate valid until 2033? If you use the > default, it will only have a validity of 180 days, use -validity 1 > when generating your cert. Just something to check. Maybe try > generating a new cert. > > M > > On Dec 14, 10:46 pm, joshv w

[android-developers] Re: Whose supporting VGA/QVGA at the moment?

2008-12-15 Thread joshv
I'd like a way of just being able to say "my app doesn't work at anything less than X resolution". I've tested with QVGA and honestly it's just not worth the effort to recode my apps to work well with half of the screen resolution. It's possible, but the end result wouldn't be something I'd cons

[android-developers] Re: Keeping a Service Alive

2008-12-15 Thread joshv
I am currently researching the way to do this "right" and find the response below a bit interesting. It would seem that any and all long lived background services are being heavily discouraged. What I want to do is periodically check url that returns data. If the change in data between one requ

[android-developers] Re: Installation unsuccessful - Package file was not signed correctly

2008-12-14 Thread joshv
perfectly. jarsigner -verify reported this file as signed, but something about it killed the PackageParser. Could this be related to this bug? http://code.google.com/p/android/issues/detail?id=830 -josh On Dec 15, 12:46 am, joshv wrote: > I am becoming somewhat terrified of uploading upgrades to

[android-developers] Installation unsuccessful - Package file was not signed correctly

2008-12-14 Thread joshv
I am becoming somewhat terrified of uploading upgrades to my market apps, because it always seems to break something. This time around, I followed the exact same process as I always do, export the unsigned jar, sign it, verify that its signed with jarsigner -verify and then upload it as an upgrad

[android-developers] Re: market problem

2008-12-03 Thread joshv
It appears to be back up. I republished and all my ratings and comments are back in the store. The developer console though shows no ratings/downloads... Hopefully it catches up. On Dec 3, 2:51 am, sam <[EMAIL PROTECTED]> wrote: > It just fixed. --~--~-~--~~~---~--~

[android-developers] Re: market problem

2008-12-02 Thread joshv
g your app. Right? > > On 12/02/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > This is starting to annnoy me. I didnt spend all day coding bug fixes > > etc to lose my app and not be able to upload a new version. > > > On Dec 2, 11:59

[android-developers] Re: market problem

2008-12-02 Thread joshv
Same thing happened to me. I still have the original app id entry in the developer console, but all of the ratings are gone, I can't publish it, and it's not in the store any longer. All I tried to do was upload a newer version with a new icon. Let's hope somebody will restore my app. On Dec 2

[android-developers] Re: G1 detected as 'offline' by Eclipse plugin

2008-12-01 Thread joshv
Make sure "stay awake" in the Application | Development menu settings is enabled - if I don't have that enabled, adb will regularly crash when the phone goes to sleep. Sometimes unplugging the phone's USB cord and plugging it back in will help, but sometimes I've found that periodically the windo

[android-developers] Re: SharedPreferences problem

2008-12-01 Thread joshv
I did not mean to imply that the termination process called onPause() - merely that I can safely assume that onPause will be called previous to process termination - except as you note, in exceptional circumstances (note that a phone shutdown appears to be one of these exceptional circumstances).

[android-developers] Re: SharedPreferences problem

2008-12-01 Thread joshv
Ok, then SharePreferences should be ok in multi-threaded applications. Regarding process death and preferences, I thought the same thing so I scaled back my persistence code to only save preferences in an onPause (). It was my understanding that even when a task is killed, the onPause is called

[android-developers] Re: SharedPreferences problem

2008-11-30 Thread joshv
What exactly do the docs mean when they say 'multiple processes'. Do they mean different threads in the same application? Or do they mean for example a background service accessing a shared preference file at the same time a foreground process is accessing the same shared preference file? I am

[android-developers] Re: call to determine current context?

2008-11-30 Thread joshv
Can't the calling Activity pass a reference to itself? On Nov 30, 2:10 pm, Peter Jeffe <[EMAIL PROTECTED]> wrote: > I can't find any way to determine my current context, I'm hoping I'm > just missing it, but maybe I'm missing something about contexts.  I > have a singleton object that maintains a

[android-developers] Re: How about making an internet-less GPS system?

2008-11-30 Thread joshv
Xavier, I think the point is to have something that works even when data networks are not available. Google Maps won't work without a data network. -josh On Nov 30, 3:55 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: > But there is also Google Maps on the phones! > > Xavier A. Mathews > Studen

[android-developers] Re: Flaky network connections

2008-11-25 Thread joshv
StringWriter writer = new StringWriter(); >         for (int c = reader.read(); c >= 0; c = reader.read()) > writer.write(c); >         view.setText(writer.toString()); >     } catch (IOException e) { >      Log.e("test", "connection test failed", e); >     } finall

[android-developers] Re: Flaky network connections

2008-11-25 Thread joshv
of the underlying > communications stack (emulator vs. the real thing). > > On Nov 25, 5:43 am, joshv <[EMAIL PROTECTED]> wrote: > > > I can disclose the URL, it's publicly available and always up - yahoo > > finance csv stock price download.  For > > exampl

[android-developers] Re: Flaky network connections

2008-11-25 Thread joshv
I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example: http://finance.yahoo.com/d/quotes.csv?s=GOOG+T&f=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact

[android-developers] Re: Flaky network connections

2008-11-25 Thread joshv
eout > (int). I've been experimenting with 4s to 8s. > > These strategies helped stabilize the action. I am under the > impression that the data network/TCP stack connectivity gets confused > if you try to connect at inopportune times (no data network > connectivity) or while a connec

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
Proxied via t-mobile even when I am using my own wi-fi network? On Nov 24, 3:29 pm, "Tom Gibara" <[EMAIL PROTECTED]> wrote: > From the phone, connections will almost certainly be proxied by T-mobile. > Perhaps it's the interaction between your server and the proxies that is at > the root of your

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
to be expected, but other than that it never errors out in the emulator. If it worked this well on the actually phone I'd be perfectly happy. -josh On Nov 24, 2:53 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > joshv wrote: > > I am assuming that HTTPComponents just wraps the

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
ve written works marvelously in the emulator, and I have other non-Android projects that use URLConnection, so I am not exactly sure what's wrong. On Nov 24, 2:10 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > joshv wrote: > > That's why I am asking if I am doing something

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
pm, "Dorn Hetzel" <[EMAIL PROTECTED]> wrote: > If you sniff the wire just past the wifi access point, how many > requests/responses do you see during this time? > > On Mon, Nov 24, 2008 at 2:59 PM, joshv <[EMAIL PROTECTED]> wrote: > > > My issues is t

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
ns (like constantly striving to maintain a wifi connection) aren't an > option. > > Perhaps a better perspective is to see the various data connections (wifi, > GPRS, EDGE, 3G etc.) as fallible primitives which you can combine to form a > more reliable transport suited to your appli

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
you're seeing on a device > indeed. Such is the cost of making Android compatible with APIs that > developers are likely to be familiar with. > > JBQ > > On Mon, Nov 24, 2008 at 8:51 AM, joshv <[EMAIL PROTECTED]> wrote: > > > The polling happens only while the

[android-developers] Re: Flaky network connections

2008-11-24 Thread joshv
If your code is going to access a site every 10 seconds, the radio is > going to, essentially, stay "on" continuously.  This is going to have > a significant impact on your users' battery life.  Is this definitely > what you want to do? > > On Mon, Nov 24, 2008 at 5

[android-developers] Flaky network connections

2008-11-24 Thread joshv
I am attempting to write an application that regularly polls data from a publicly available website using a URLConnection. The code is pretty basic (urlStr contains the URL...) URL url = new URL(urlStr); URLConnection urlConn = url.openConnection();

[android-developers] Re: ArrayAdapter

2008-11-22 Thread joshv
notifyDataSetChanged() will only work on the UI thread. In order to do this, create a simple Runnable: // adapter is a reference to your BaseAdapter or ListAdapter private Runnable updateAdapter = new Runnable() { @Override public void run() {

[android-developers] Re: JavaMail and Android - Little excursus

2008-11-18 Thread joshv
I am not sure why they would need to contact you. They'd need to merely obey the CDDL - which also requires you to provide the source code to your modifications. Where can I find the modified source? On Nov 14, 5:26 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Licence was update. Moved

[android-developers] Re: working WebView example?

2008-11-18 Thread joshv
Try putting the WebView in your layout, assigning it an appropriate ID, and then in onCreate get a reference to it using: setContentView(R.layout.webtest); //Or whatever the name of your layout containing the webview is. WebView wv = (WebView)findViewById(R.id.webViewID); This works for me. -j

[android-developers] Re: Inaccurate comment view in Market?

2008-11-18 Thread joshv
I see this as well with my application (Touch Tip). The Android Market is extremely buggy at the moment. It seems that not much attention is being paid to it as it appears to be getting worse, not better. One would think that this would be a little bit more important to Google. Android is is a

[android-developers] Re: '%' problem in WebView

2008-11-18 Thread joshv
Use WebView.loadDataWithBaseURL. On Nov 15, 11:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > My HTML file contains '%'. I was trying to use WebView to open it, but > failed. I then replaced "%" with "\\%", it failed again. Any comments > on this problem. > > Thanks --~--~-~--~--

[android-developers] Re: unable to see # in webview

2008-11-18 Thread joshv
Use WebView.loadDataWithBaseURL, use "dummy" for the base URL if your HTML is locally generated. WebView.loadData, for some bizarre reason, munges the entire HTML document into a URL using the data: scheme. The url encoded clobbers %'s and #'s. On Nov 15, 1:29 pm, "[EMAIL PROTECTED]" <[EMAIL PRO

[android-developers] Re: Mouse Gesture for Navigation?

2008-11-06 Thread joshv
Actually I've found the following works well: @Override public boolean dispatchTouchEvent(MotionEvent ev){ gd.onTouchEvent(ev); return super.dispatchTouchEvent(ev); } calling super.dispatchTouchEvent allows all of the other views to receive their events. For some reason,