Manifest android:versionCode question

by Rob » Sat, 10 Jul 2010 02:02:19 GMT


Sponsored Links
 In the versioning documentation ( http://developer.android.com/guide/ 
publishing/versioning.html) it says that android:versionCode is an
integer. Is the integer a 4-byte integer with a range of
-2,147,483,648 to +2,147,483,647 or is it only a 2 byte integer with a
range of -32,768 to +32,767 ?

--



Manifest android:versionCode question

by RichardC » Sat, 10 Jul 2010 02:41:01 GMT


 Ten seconds of searching would have found you:
 http://developer.android.com/guide/topics/manifest/manifest-element.html 

/Richard




--


Sponsored Links


Manifest android:versionCode question

by TreKing » Sat, 10 Jul 2010 05:34:43 GMT


 



Does it really matter? I highly doubt you'll be updating you app over 32,767
times. Unless of course you did something ludicrous like start your
appVersion at 32,765 ...

...

Wait ... you did, didn't you?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--



Other Threads

1. 100% CPU stuck socket from URLConnection

We have been running into a very hard to track down problem in our
app.  Periodically (once every couple of days) the CPU will spike to
100% and stay there.  After some investigation, we tracked it down to
this stack trace from a URLConnection.  This is on an HTC on 2.2.  It
just never seems to get out of the read.

We have set the readTimeout and the connectTimeout.  We are going to
try switching to HTTPClient also, but it would be great to know what
is going on.

Also, does anyone know what the schedstat numbers mean?

Thanks!

"pool-2-thread-1" prio=5 tid=15 RUNNABLE
  | group="main" sCount=1 dsCount=0 s=Y obj=0x45d25f78 self=0x14abf8
  | sysTid=19919 nice=19 sched=0/0 cgrp=default handle=2883864
  | schedstat=( 254195831204 89118408161 114553 )
  at
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:~570)
  at
org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:
88)
  at java.io.InputStream.skip(InputStream.java:258)
  at
org.apache.harmony.luni.net.SocketInputStream.skip(SocketInputStream.java:
93)
  at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl
$ChunkedInputStream.skipOutstandingChunks(HttpURLConnectionImpl.java:
374)
  at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl
$ChunkedInputStream.close(HttpURLConnectionImpl.java:349)

-- 

2. Alternative to GLWallpaperService, OpenGL Live Wallpaper

I've been using the GLWallpaperService as posted by Robert Green
(http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-
wallpapers), which has worked so far for the live wallpapers but I'm
hitting a wall when it comes to performance. The GL code is executing
at the expected speed when swapping (about 14ms after the swap
occurs), but there seems to be an extreme overhead with the wallpaper
code of 33ms.

For example, if I was to implement a basic live wallpaper that only
called gl.glClearColor and nothing else, the maximum framerate I can
achieve is 30fps (33ms), which is far lower than it should be. Now the
phone refresh rate is 16ms, from what I have read, so I could
understand hitting a wall at 60 fps.

The question is if there is an alternative way out there? I tried
naively using the GLSurfaceView with no luck and am looking for
suggestions from those who may have encountered this issue or know of
a solution. I have been googling but all posts send me back to the
above site from Robert Green as the "only" way to do this, and I have
had no luck finding a live wallpaper "sample" from the SDK that uses
OpenGL while they state that you have access to OpenGL from here:

http://developer.android.com/resources/articles/live-wallpapers.html

I tried searching for the code for the bundled live wallpapers with no
luck, if anyone could throw me a link to one of the wallpapers that
uses OpenGL that would more than enough for me to figure it out (if a
different method is used ;)).

-- 

3. use custom keyboard in my custom webview. (not default ime)

4. opening Android Email application from another application

5. parse plist

6. Best method to do this

7. How to emulate onUpgrade call in SQLiteOpenHelper?