[android-developers] Re: IllegalStateException in MediaPlayer (HTC Hero 1.5)

2010-09-17 Thread Jason
Anyone?.. Bueller... On Sep 18, 5:20 am, Jason wrote: > Hi all, > > I'm running into some state problems with MediaPlayer.  I have so far > only seen this on one device (HTC Hero) running Android 1.5.  Stack > trace is: > > java.lang.Illegal

[android-developers] Re: What's happening to my posts here? Is someone deleting them?

2010-09-17 Thread Jason
I'd agree with that.. often the web takes AGES to actually record the post. (he says.. typing into the web interface) On Sep 18, 4:43 am, TreKing wrote: > On Fri, Sep 17, 2010 at 12:42 PM, Saied wrote: > > Is it the policy of this group to remove the posts for which Android cannot > > give an an

[android-developers] IllegalStateException in MediaPlayer (HTC Hero 1.5)

2010-09-17 Thread Jason
Hi all, I'm running into some state problems with MediaPlayer. I have so far only seen this on one device (HTC Hero) running Android 1.5. Stack trace is: java.lang.IllegalStateException at android.media.MediaPlayer.prepareAsync(Native Method) at com.carboncrystal.ro.audio.SafeMedi

[android-developers] Re: Application-wide resources.. how to achieve?

2010-09-17 Thread Jason
t;offspring" Activity has completed? (I'm avoiding using Parent/Child so as not to confuse with "actual" Activity parents), or will it always wait until the onStart of the child (oops.. I mean offspring) If so this could mean my reference count is out of sync. Cheers, Jason. (w00

[android-developers] Re: Application-wide resources.. how to achieve?

2010-09-17 Thread Jason
ok great. Sounds like the ticket. Thanks for your help. On Sep 18, 1:39 am, Bret Foreman wrote: > By the way, the Android-centric name for the pattern you want is > "Content Provider". You can search the documentation for that phrase. > SQLite is an example of a content provider where you norma

[android-developers] Re: Application-wide resources.. how to achieve?

2010-09-17 Thread Jason
lol.. RTFM Jason. Thanks man. On Sep 18, 1:12 am, TreKing wrote: > On Fri, Sep 17, 2010 at 10:07 AM, Jason wrote: > > Is it possible to have data bound to the lifecycle of the entire > > application? > > http://developer.android.com/reference/android

[android-developers] Application-wide resources.. how to achieve?

2010-09-17 Thread Jason
Hi all, So I'm struggling a bit with what is probably a fairly basic concept.. Activity Lifecycle. I have read a bunch of thread on the topic, and I feel I understand well both the functionality, and rationale behind the lifecycle model implemented for Activities, but it raises a bit of a problem

[android-developers] Re: Any way to animate a 2D Game Smooth without OpenGL ?

2010-09-15 Thread Jason
ay (or setting them to null to remove). I then have the concept of an iterator which knows how to loop over the array (avoiding nulls etc), and can be created in a ThreadLocal to allow concurrent access from multiple threads. Skype chat is ok.. but what timezone are you in? I'm GMT+10 (Australian E

[android-developers] Re: Any way to animate a 2D Game Smooth without OpenGL ?

2010-09-15 Thread Jason
n x,y position). I assume you have already done so, but if not I strongly recommend you watch the YouTube video of Chris Pruett explaining his game architecture. Made a lot of sense to me. http://www.youtube.com/watch?v=U4Bk5rmIpic Not sure if I've really been any help here, but if you have an

[android-developers] Re: ProtocolException while HTTP POST

2010-09-08 Thread Jason
Usually this means the protocol portion of the URL is not valid. So for example in "http://www.google.com";, the protocol is HTTP. As Veritatis says, your URL is probably invalid. If it's indeed an HTTP url, make your you prefix it the http:// or https:// as it may barf if you try just www.googl

[android-developers] Re: TCP Client Issue

2010-09-08 Thread Jason
@Bobbie: According to the doco (http://developer.android.com/reference/android/ app/Service.html#ServiceLifecycle) on services: "Note this means that most of the time your service is running, it may be killed by the system if it is under heavy memory pressure. If this happens, the system will lat

[android-developers] Re: build different version of android

2010-09-08 Thread Jason
The above-mentioned link should give you all you need to produce a multi-version app. Basically what it's saying is that you refer to any version-specific API's using java reflection. So there is no compile-time dependency with the later API's, and the code will only load these classes at runtime

[android-developers] Allocations of "PlatformAddress" inside OpenGL causing GC calls

2010-09-07 Thread Jason
Hi all, I am trying to weed out any lingering GC calls from my game and have hit a bit of a snag. Via monitoring allocations I am seeing lots of allocations of something called a PlatformAddress (org.apache.harmony.luni.platform.PlatformAddress): org.apache.harmony.luni.platform.PlatformAddress

[android-developers] Re: Develop Games

2010-09-07 Thread Jason
Do you mean a map as in a level design (i.e. position of background/ foreground sprites etc).. or a map as in a fractal-like image representing a landscape? (like a world map) If it's the latter.. I did once find a really good random map generator, but I can't seem to locate it now. If this is in

[android-developers] Dynamic Ressource Loading

2010-09-07 Thread jason rogers
ge that to R.raw.nameOfTheFile Anybody has an idea? ps: I don't want to: - regroup everything in one huge XML file - hardcode main.xml in a huge switch case that links a number/string to the resource id Best Regards Jason Rogers -- You received this message because you are subscribed to the Google

[android-developers] Disable default button click sound

2010-09-07 Thread Jason
Hi all, Is there a way to disable the default "click" sound heard when hitting a standard Button or ImageButton? I am playing my own sound when the user clicks an ImageButton (via OnClickListener and using a MediaPlayer), which works.. but I still hear the default system "click" sound which I don

Re: [android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-09-07 Thread Jason Van Anden
I have seen the same issue - and I suspect a memory leak. What would be best way to track something like this down? j On Tue, Sep 7, 2010 at 3:08 PM, Romain Guy wrote: > It could also be a memory leak in your application. > > On Tue, Sep 7, 2010 at 12:06 PM, blahblah...@gmail.com > wrote: > >

[android-developers] Re: Phone storage running out after multiple installs

2010-09-04 Thread Jason
u kill of whatever is holding those > file handles so they get released and the old versions' "disk" space > becomes available for re-use. > > I would wait until it gets "filled up" then launch the adb shell and > look around with ps and df comma

[android-developers] Phone storage running out after multiple installs

2010-09-04 Thread Jason
Hi all, This is more an annoyance than a real problem.. nevertheless: When testing my app on a device I go through several "installs", although it's really the Eclipse plugin doing this for me. After a while (not very long) the device starts complaining about insufficient storage. It seems that

[android-developers] Re: Call PHP through URL

2010-09-04 Thread Jason
oops.. just read your previous post "Then how can I "grab" it and receive into my Android activity?" The line in the code I posted: client.execute(post); actually also returns a response: HttpResponse res = client.execute(post); So if your PHP script is printing out data to the http response

[android-developers] Re: Call PHP through URL

2010-09-04 Thread Jason
I was LITERALLY just coding this to submit a POST to google app engine. This code works for me (1.6 compatible.. and probably 1.5 actually): HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost("https://someurl.com";);

[android-developers] Re: how to set eglSwapInterval when using GLSurfaceView?

2010-09-04 Thread Jason
There is an option on the GLSurfaceView to set the render mode: http://developer.android.com/reference/android/opengl/GLSurfaceView.html#setRenderMode(int) You could try setting it to RENDERMODE_WHEN_DIRTY - The renderer only renders when the surface is created, or when requestRender() is called

[android-developers] Re: Game math/logic calulating movement

2010-08-29 Thread Jason
oh.. and be aware that if you decide to use opengl, the y axis is reversed. That is, in the standard Canvas system, 0,0 is TOP left, whereas in OpenGL 0,0 is BOTTOM left (which makes much more sense to me) On Aug 29, 5:27 pm, Jason wrote: > hmmm.. it seems to me that all the trig functions (

[android-developers] Re: Game math/logic calulating movement

2010-08-29 Thread Jason
hmmm.. it seems to me that all the trig functions (sin/cos etc) are unnecessary. The screen is just a 2D grid, so the difference in position between one point and another is always just a difference of x/y values. If I were you, I would just determine the difference in x and y between your start

[android-developers] Re: Cupcake(API3) friendly way to pause/stop sound loops in SoundPool? Any ideas?

2010-08-29 Thread Jason
I use the pause() method in SoundPool... implemented since API level 1 http://developer.android.com/reference/android/media/SoundPool.html#pause(int) The streamID(int) is obtained when you play the sound: http://developer.android.com/reference/android/media/SoundPool.html#play(int, float, float,

[android-developers] Re: ADT causing CDT to build all C projects on Android app launch??

2010-08-28 Thread Jason
Hi, I am one of the elusive few running this exact setup, and I too have been a bit annoyed by this "feature". I did just find this: Window->Preferences->C/C++ There is a checkbox option entitled: "Build configurations only when there are Eclipse resource changes within the project and its ref

[android-developers] Re: Native crash (SIGSEGV) in open gl texture load

2010-08-24 Thread Jason
Strike that last post.. still crashing On Aug 25, 11:12 am, Jason wrote: > For anyone else out there.. I "think" I've located the problem, but > can't be 100% certain. > > In the ViewFlipper case mentioned, the non-gl view has an overridden > onDraw method to

[android-developers] Re: Native crash (SIGSEGV) in open gl texture load

2010-08-24 Thread Jason
to avoid this case "seems" to have resolved the issue. I haven't seen a crash since. On Aug 25, 2:04 am, Jason wrote: > Hi all, > > I have posted previously on a related topic, but thought a new post > with clearer descriptions may trigger someone out there with some >

[android-developers] Re: Auto repeat button

2010-08-24 Thread Jason Braucht
http://developer.android.com/resources/articles/timed-ui-updates.html describes how to use android.os.Handler to create repeating events. I used that along with a an OnTouchListener to repeat the button's action every 100ms until the button is released. Below is a snippet of code that demonstrate

[android-developers] Native crash (SIGSEGV) in open gl texture load

2010-08-24 Thread Jason
Hi all, I have posted previously on a related topic, but thought a new post with clearer descriptions may trigger someone out there with some knowledge. I am getting regular crashes in native (android) code when I am loading textures in opengl. Trace is: Build fingerprint: 'generic/sdk/generic/

[android-developers] Re: glDeleteTextures produces strange error (5572216)

2010-08-24 Thread Jason
ing... took a while for me to realize > this. Anyways, if you try to delete something that does not exist > anymore, it gives some pretty unknown errors :| > > you can check what I was talking about > here:http://developer.android.com/reference/android/opengl/GLSurfaceView.R... &g

[android-developers] SIGSEGV generated.. somewhere...

2010-08-23 Thread Jason
Hi, I am seeing SIGSEGV faults which are crashing out my app. To date I have not had any problems, however I have recently been struggling with some opengl issues (ref: http://groups.google.com/group/android-developers/browse_thread/thread/fcb142c1f7c13240) but not sure if these are relevant. Th

[android-developers] Re: glDeleteTextures produces strange error (5572216)

2010-08-23 Thread Jason
removing the code to delete textures. On Aug 24, 12:36 pm, Jason wrote: > Hi folks, > > I'm trying to get my head around how the vram is used in opengl, > specifically when and how to clean it up. > > The Story So Far... > > I have a GLSurfaceView int

[android-developers] glDeleteTextures produces strange error (5572216)

2010-08-23 Thread Jason
Hi folks, I'm trying to get my head around how the vram is used in opengl, specifically when and how to clean it up. The Story So Far... I have a GLSurfaceView into which I set a Renderer implementation (called OpenGLRenderThread). This view is created (manually, by calling "new") in the main A

[android-developers] Re: vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread Jason
lol.. yep.. my coding skills strike again. Works as expected, when you're not an idiot. On Aug 22, 7:56 pm, Jason wrote: > Hmm.. ok.  I wonder if it's something crufty in my code.. sounds like > my call to vibrate may be looping somewhere. > > I'll assume I've

[android-developers] Re: vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread Jason
) and vibrate() works as > expected...(i.e. the parameter is milliseconds). > > > > > > On Sun, Aug 22, 2010 at 11:16 AM, Jason wrote: > > Hi folks, > > > I'm trying to get a simple vibration working and according to the api > > docs (http://develope

[android-developers] vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread Jason
Hi folks, I'm trying to get a simple vibration working and according to the api docs (http://developer.android.com/reference/android/os/Vibrator.html) all I need to use is this: public void vibrate (long milliseconds) Turn the vibrator on. Parameters millisecondsHow long to vibrate for. Ho

[android-developers] Re: Which Eclipse?

2010-08-19 Thread Jason
I've been using 3.6 pretty succesfully, with minimum adt issues. It is less stable, though. On Aug 17, 4:07 pm, Whatsacompiler wrote: > This pagehttp://developer.android.com/sdk/installing.html#Preparing > says > "f you need to install Eclipse, you can download it from this > location: > > http:

[android-developers] Re: Switching between normal view and glsurfaceview (game loading screen)

2010-08-18 Thread Jason
flipper.setDisplayedChild(0); 2. Load the level using AsyncTask 3. On load complete, callback to activity as set gl view to front with flipper.setDisplayedChild(1) On Aug 19, 8:04 am, Jason wrote: > Thanks guys.  You have all been very helpful! > > On Aug 19, 5:15 am, Robert Green wrote: &g

[android-developers] Re: Switching between normal view and glsurfaceview (game loading screen)

2010-08-18 Thread Jason
w(frame); > > > setContentView(base); > > > YourOverlayView can be derived from any view.  I personally extend > > ImageView and override the onDraw() method for full control. > > > On Tue, Aug 17, 2010 at 11:56 PM, Jason wrote: > > > Hi all, > > >

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

2010-08-18 Thread Jason
I'd be curious if anyone has a good way to do this, too. It actually relates to a problem I'm working on. I know it's possible to do something *like* this. I did it once; I'm not sure what library I used but I was able to pull down an rss feed, parse, format, and display it in a textview. It's

[android-developers] Switching between normal view and glsurfaceview (game loading screen)

2010-08-17 Thread Jason
Hi all, I'm trying to find the best way to implement a "loading screen" when using a GLSurfaceView. Basically the situation is this: The app (game) loads a bunch of textures into VRAM when the GL surface is created (onSurfaceCreated), however these textures are only for the current "level" of th

[android-developers] Occasional opengl texture corruption.. sometimes works, sometimes doesn't

2010-08-01 Thread Jason Polites
// Disable face culling. gl.glDisable(GL10.GL_CULL_FACE); // Tear down.. blah blah... = Sorry for pasting so much code.. but just not sure where the problem is... Am I winding up the triangles wrongly or something? Any help GREATLY appreciated

[android-developers] 1 Sync adapter, multiple quick contact entries

2010-07-21 Thread Jason
I currently have a sync adapter & service set up. I'm inserting one new MIME type into quick contacts and adding in a meta-data entry into the manifest in order to handle a quick contact entry for that MIME type. However, I'd like to be able to support multiple (new) quick contact entries without

[android-developers] Re: Problem Loading Images via Adapter on Zero Index

2010-07-19 Thread Jason Van Anden
ck to see if the image had already been instantiated a la: if ((convertView == null) && (imageViews[position] == null)) { Jason Van Anden http://www.bubblebeats.com On Mon, Jul 19, 2010 at 9:45 AM, Jason Van Anden wrote: > Hi All, > > I am attempting to load a series of imag

[android-developers] Problem Loading Images via Adapter on Zero Index

2010-07-19 Thread Jason Van Anden
Hi All, I am attempting to load a series of images into a 3x3 gridview. When the user refreshes the screen I want images to load into each imageview randomly. All of the images load properly - except index zero (topmost leftmost). In testing, this will work the first time I load if zero happens

Re: [android-developers] Re: Application Menu

2010-06-21 Thread Jason Van Anden
this may have been a red herring - wrong method may have been used. let's hold this thought for a moment. j On Mon, Jun 21, 2010 at 9:38 AM, Jason Van Anden wrote: > yes. tried. the weird thing is that the menu gets called and appears > fine. I get this response when an item is

Re: [android-developers] Re: Application Menu

2010-06-21 Thread Jason Van Anden
ass that is > super to your activities that need the menu? (I haven't done this for > menus, but I've done it for other Activity UI components that I wanted > to share among many activities.) > > - greg > > On Jun 21, 8:51 am, Jason Van Anden wrote: > > I have

Re: [android-developers] Application Menu

2010-06-21 Thread Jason Van Anden
I have the same question. If you were able to come up with a solution, please share! If not - does anyone else know the answer to this? j On Mon, Jul 27, 2009 at 1:19 PM, par wrote: > > Hi, > > Is it possible to attach Menu to an application rather than each > activity in the application? > >

[android-developers] Int to string

2010-06-10 Thread Jason Hensler
= (EditText) findViewById(R.id.*EditText01*); SharedPreferences myPrefs = *this*.getSharedPreferences("muter", * MODE_WORLD_READABLE*); SharedPreferences.Editor prefsEditor = myPrefs.edit(); *int* tmp = myPrefs.getInt("state", 0); text.setText(tmp); Thanks in advance! Jason -

Re: [android-developers] Force Close - Debug

2010-06-09 Thread Jason Hensler
> > Notice that the setting will not be delete even if you update your > application ,but when you uninstall the application the setting will be > lost. > > > -- > > *From:* android-developers@googlegroups.com [mailto: > android-de

[android-developers] Force Close - Debug

2010-06-09 Thread Jason Hensler
Hello Team, Is there a writeini / readini functions for andriod/ecplise developent? Or what is the best way to 'remember' a setting, and then at a later time restore it? Thanks! Jason -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Intro plus question :)

2010-06-07 Thread Jason
. Thank you much for your support! Jason -- 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-developer

[android-developers] Re: How to tell which permission are required?

2010-06-03 Thread Jason Tomlinson
You can also browse the Manifest permission list, http://developer.android.com/reference/android/Manifest.permission.html On Jun 2, 9:15 pm, Greg Donald wrote: > On Wed, Jun 2, 2010 at 8:58 PM, Shekhar wrote: > > see adb logcat you will know > > http://groups.google.com/group/android-developers/

[android-developers] Re: Google apps-for-android code samples

2010-06-01 Thread Jason Tomlinson
If you browse the source from with-in the project hosting page it will show you who committed the latest version of a file to a project. This is usually a good place to start. Chris Pruett wrote SpriteMethodTest (and Replica Island), he mentioned the projects at Google I/O. Last years session can

[android-developers] Problems installing SDK update in eclipse: Cannot rename folder (sdk r6, on Windows)

2010-05-26 Thread Jason
he guides for installing updates but I didn't check before I started the process. Just thought someone else may benefit from this... Cheers, Jason. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: What happened to ADC3

2010-05-25 Thread Jason Tomlinson
Google only announced rounds 1 and 2 of the ADC. They never mentioned anything about a 3rd round. On May 24, 8:26 am, Divakarla Srinivas wrote: > Hello, > > I have been waiting for the announcement of ADC3. with wide open > eyes.. > > Can any going to give me some updates when it is goi

[android-developers] Experience with GoAPK.com

2010-05-20 Thread Jason Van Anden
I received an email from goapk.com - offering to translate my apps for Chinese market. Has anyone here have an experience with this? I am curious about your experience. Thanks, Jason Van Anden http://www.BubbleBeats.com -- You received this message because you are subscribed to the Google

[android-developers] Re: MediaPlayer pause on loop

2010-05-14 Thread Jason
Awesome. Thanks for the tip! On May 12, 7:49 pm, mot12 wrote: > It's a problem with the mp3 decoding. > > The bad news: You can't do it with mp3. > The good news: Convert to ogg and it works like a charm. > > Martin > mobitobi (Gentle Alarm, Sleep Now!)www.mobitobi.com > > -- > You received this

Re: [android-developers] Re: Getting and Sending Data From the Web (URLConnection via http)

2010-05-13 Thread Jason LeBlanc
Are you inside your network or outside, using wi-fi or 3g? Do you have to authenticate the connection? Is there a protocol(provided by multimedia vendor) for establishing a connection with the server? Jason http://www.simplycontrolledsystems.com On Thu, May 13, 2010 at 12:54 AM, Vinay S wrote

[android-developers] Re: How to fix hit area after scaling

2010-05-12 Thread Jason Tomlinson
You need to scale your hit areas to match the canvas scaling. If you zoom in 2x on the canvas your hit area is now twice the size likewise if you zoomed out 2x then your hit area is half the size. On May 11, 2:52 pm, Jonathan wrote: > I am scaling the canvas of a linear layout on draw, but this

[android-developers] MediaPlayer pause on loop

2010-05-11 Thread Jason
file, and this is killing my framerate and making the game unplayable at these points. There doesn't seem to be a way to configure any memory buffers etc on the MediaPlayer, so I'm wondering if I am using the wrong approach? Any other ways to run continuous background music? Thanks,

[android-developers] Re: extending soft-keyboard with language switching support?

2010-04-26 Thread Jason Boileau
I am also very interested in quick language switching. At the very least, it would be possible to make holding the search button down switch languages as you suggest in 2). This would save a lot of time switching languages, especially from Handcent, which seems to be slow at loading the settings di

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-22 Thread Jason K [Appirio]
I got my Droid, but my instructions were for a Nexus One (sigh). Anyway, is there a way to expedite the free thirty day service? Jason On Mar 31, 5:28 am, Justin Giles wrote: > On Tue, Mar 30, 2010 at 11:48 PM, Jason wrote: > > I received a Droid and I did not see the "Read Me

Re: [android-developers] newline in toast text

2010-04-12 Thread Jason LeBlanc
"line1\nline2" On Mon, Apr 12, 2010 at 3:50 AM, arnoldl wrote: > i'm trying to display a toast...that works. > but i can't find how to start a newline..so that it looks better. > > Toast toast = Toast.makeText(this,"line1"+ '\n' + "line2" , > Toast.LENGTH_LONG); > > isn't working. > > any ideas'

Re: [android-developers] Re: Service vs Singleton

2010-04-10 Thread Jason LeBlanc
Since process != application.. just what are the distinctions? On Fri, Apr 9, 2010 at 5:06 PM, Bob Kerns wrote: > Just to point out a couple more things here. > > 1) a Service's lifetime is NOT, in general, the same as an > Application's lifetime. A service can be deleted when it's not in > act

Re: [android-developers] Re: Finally, I published my Android/GAE based MMO War Game

2010-04-10 Thread Jason LeBlanc
Can you private me the contact for your graphics artist.please! J On Apr 9, 2010 11:05 PM, "ZeroCool" wrote: Hi, Thanks for the advice. I hired a graphic designer, who is a genius artist. I did everything else :) On Apr 2, 10:59 pm, Yahel wrote: > Yo man !! > > Incredible the amount of

Re: [android-developers] Do Services *really* run in the Background?

2010-04-09 Thread Jason LeBlanc
ll claim that 90% of > developers are not) then it is a good idea to stay away from Thread and use > some higher-level facilities like IntentService, AsyncTask, etc. > > > On Fri, Apr 9, 2010 at 7:40 AM, Mark Murphy wrote: > >> Jason LeBlanc wrote: >> > Yes, the Con

Re: [android-developers] Do Services *really* run in the Background?

2010-04-09 Thread Jason LeBlanc
ad. If I start a Thread in an Activity, does that Thread need to complete execution before I can transition to the next Activity? Thanks, J On Fri, Apr 9, 2010 at 8:30 AM, Mark Murphy wrote: > Jason LeBlanc wrote: > > I have tried moving the start Service call to a manually-managed threa

Re: [android-developers] Do Services *really* run in the Background?

2010-04-09 Thread Jason LeBlanc
rted in the Application context? > > On Fri, Apr 9, 2010 at 5:23 AM, Jason LeBlanc > wrote: > >> I have a scenario where I start a Service from a splash screen. If I >> intentionally cause problems in that Service (such as an invalid port for >> the Socket connection) my

[android-developers] Do Services *really* run in the Background?

2010-04-09 Thread Jason LeBlanc
I have a scenario where I start a Service from a splash screen. If I intentionally cause problems in that Service (such as an invalid port for the Socket connection) my UI Thread locks up. I have put a Timer in the Service, and have it perform logging at every tick. The Timer works from within the

Re: [android-developers] Re: how to get device's movement speed?

2010-04-09 Thread Jason LeBlanc
Well, if your just spinning the device on end, I would consider it's "movement speed" to be Zero. Your interested in angular velocity, which is not linear velocity. So the fact that 'velocity = distance/time' doesn't matter for this scenario. Instead of a linear measurement like miles per hour (mph

Re: [android-developers] Re: Accelerometer - direction of shake?

2010-04-09 Thread Jason LeBlanc
How much faster? On Apr 8, 2010 7:32 PM, "BobG" wrote: If you move the phone left and right when looking at the screen, thats moving in the x axis, so if you take sanples faster than you are shaking it, as ordained by Mr Nyquist, you will see the accel increasing, then slowing down, stopping, an

Re: [android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-08 Thread Jason Proctor
> To ask a dumb question, as someone who hasn't used chunked uploading before: how can I indicate to the server the order in which to glue the chunks back together? (Tell me to go away and ask a Java forum if you want.) If you're designing your own protocol, you do it however you want. You'

Re: [android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-08 Thread Jason Proctor
> It is my Web server, so I can rewrite it to accept a PUT request. Are you suggesting that I do something like this, for each 1MB of the data? HttpPut httpPut = new HttpPut(url); httpPut.setEntity(new StringEntity(data)); I'd use ByteArrayEntity. what about streaming it with Inpu

Re: [android-developers] Re: advice + onclick help

2010-04-08 Thread Jason LeBlanc
Is info.class in your mainfest? On Thu, Apr 8, 2010 at 4:17 PM, James wrote: > Hello again, > > I've made a bit of progress with this onclick madness: > > This time when I click on an item the app force closes: > > ListView lv = getListView(); > lv.setTextFilterEnabled(true); > > >

Re: [android-developers] Re: Multiple Listviews in single Activity?

2010-04-08 Thread Jason LeBlanc
but I'm not too optimistic. J On Apr 8, 2010 3:18 PM, "~ TreKing" wrote: On Thu, Apr 8, 2010 at 9:52 AM, Jason LeBlanc wrote: > > I have a question... Do you have a running thread with your question? If not, want to start a new one? This one is already more derailed than an

Re: [android-developers] Best practise for storing app. Configuration

2010-04-08 Thread Jason LeBlanc
Implement Preferences. http://developer.android.com/guide/topics/data/data-storage.html J On Thu, Apr 8, 2010 at 12:51 PM, Kim Ras wrote: > Hi All, > I am still learning bu find Android the cool platform for allot of > useful applications.. > > I have written a Service for doing GPS tracking a

Re: [android-developers] ActivityManager vs Socket

2010-04-08 Thread Jason LeBlanc
BTW.. I have used the Connection class from the console and attempted to surround the "socket = new Socket(address,port);" with try/catch. I am able to catch the exceptions when I take that approach. On Wed, Apr 7, 2010 at 10:25 PM, Tunneling wrote: > I'm trying to catch socket errors (invalid i

Re: [android-developers] Re: Multiple Listviews in single Activity?

2010-04-08 Thread Jason LeBlanc
Hey, when you guys are done.. I have a question about Sockets and their Exception behavior on the Android platform. I've rewritten the question in different ways and tried to be more clear/concise each time. I'm finding that my overall lack of experience is contributing to the obscurifcation of my

Re: [android-developers] Re: Keeping service alive across configuration changes

2010-04-08 Thread Jason LeBlanc
I think she's saying that if you bind with the ApplicationContext, your service won't go away until the Application goes away. If that's the case, you don't have to worry about the order in which the Activities are created/destroyed. For my information, does the ServiceConnection unbind by default

Re: [android-developers] Re: Trying to start a thread dedicated to sending and receiving data

2010-04-08 Thread Jason LeBlanc
I'm really new to this, so just flog me if I give bad information. However, I think you should set up your ConnectSocket as a Service. Then in each of your Activities, you bind to that service and access your send and receive methods directly. I recently went through some struggles that were resolv

Re: [android-developers] how an activity transfers the value from one activity

2010-04-06 Thread Jason LeBlanc
In order to transfer a value from one activity you can use Extras. In your activity /* Create an Intent that will start the next Activity */ Intent intent = new Intent(MyActivity.this,NextActivty.class); intent.putExtra("com.your.package.PEOPLE_

Re: [android-developers] Copy a Table

2010-04-06 Thread Jason LeBlanc
Try these search terms. Not sure if they are supported by SQLite though as I don't know much about it. COPY TABLE SELECT INTO J On Tue, Apr 6, 2010 at 8:25 PM, Ben wrote: > Hi all, > > As always I searched high and low to no avail. I don't doubt the > answer is out there, but it evaded me. >

Re: [android-developers] Re: Service Object Availability between Activities

2010-04-06 Thread Jason LeBlanc
It also doesn't work if I remove the Thread.sleep(). On Mon, Apr 5, 2010 at 10:18 PM, Jason LeBlanc wrote: > Bob, am I taking the wrong approach here? I'm hardly satisfied that it's > just "working". I'd like to fully understand what's going on here. >

[android-developers] Socket Rocket - Im losing my mind!

2010-04-06 Thread Jason LeBlanc
Greetings group, My Splash Screen activity launches ConnectionService which establishes a Connection to a hardware controller. While the Service is being launched, I display a "Connecting..." ProgressDialog. I have been developing the app with the IP and Port hard coded. I am now trying to develo

Re: [android-developers] Can someone test my app on the Nexus One and Droid?

2010-04-06 Thread Jason LeBlanc
Search the forum for "complains of shrinking font size" J On Apr 6, 2010 7:07 AM, "Isaac Wagner" wrote: I published an app that works in all the emulators I've tried and on the two Android phones that I've tried. I've got the Droid and my wife has the Eris. This morning I received the OTA upd

Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
Bob, am I taking the wrong approach here? I'm hardly satisfied that it's just "working". I'd like to fully understand what's going on here. Thanks, J On Mon, Apr 5, 2010 at 8:32 PM, Jason LeBlanc wrote: > Here is my onCreate(), that works: > ==

Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
should NOT be sleeping the thread. You should be returning, and > then picking up your work once onBind() is called. > > You're actually blocking the service from running until you do return, > since it needs to run in that same thread. > > On Apr 5, 2:53 pm, Jason LeBlanc

Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
r than just a long logcat? On Apr 5, 8:30 am, Jason LeBlanc wrote: > Is there an obvious reason why ... > On Apr 4, 2010 9:01 AM, "Tunneling" wrote: > > I have a Connection objec... > android-developers+unsubscr...@googlegroups.com > > For more options, visi

[android-developers] [ANN] Android plugin for Gradle

2010-04-05 Thread Jason Voegele
Scala. Further details and usage notes can be found at http://wiki.github.com/jvoegele/gradle-android-plugin/ -- Jason Voegele I could be a genius if I just put my mind to it and I could do anything if only I could get round to it. -- Pulp, "Glory Days" -- You received this mess

[android-developers] [ANNOUNCE] Android plugin for Gradle

2010-04-05 Thread Jason Voegele
I'd like to announce the availability of my brand new Android plugin for Gradle 0.8. This plugin enables the creation of Android applications using the super powerful and flexible Gradle build system. Features of the Android plugin include: * Compile, package, and install Android applications. (

Re: [android-developers] Re: Service Object Availability between Activities

2010-04-05 Thread Jason LeBlanc
Is there an obvious reason why I am able to bind to the service, yet unable to access it's objects? Thanks, J On Apr 4, 2010 9:01 AM, "Tunneling" wrote: I have a Connection object that is instantiated by the ConnectionService. I bind to the service in order to access the Connection object and g

Re: [android-developers] Re: intensive writing to internal memory

2010-04-04 Thread Jason LeBlanc
Why not push the data up to a server? J On Apr 4, 2010 2:53 PM, "Nadav" wrote: Thanks Bob and Dianne, The issue is that I have no choice but do a lot of writing since this is a research app that constantly logs phone and user activity over many months... We are dealing ok with battery and proc

Re: [android-developers] I have problem in package resolution

2010-04-02 Thread Jason LeBlanc
Did you register the activity in the manifest? J On Apr 2, 2010 1:29 PM, "Darshan Hegde" wrote: Hello, I am a new bee to Android. I have Eclipse + ADT development environment. I am trying to start a new activity by clicking on a button on the existing activity. But package is not being resolved

[android-developers] Fwd: Detecting Socket connection failure

2010-04-02 Thread Jason LeBlanc
3rd try to post... -- Forwarded message -- From: "Tunneling" Date: Apr 1, 2010 10:03 PM Subject: Detecting Socket connection failure To: "Android Developers" Hello Group. I am working on an app that uses a Socket to connect to a controller over TCP. The protocol library was wri

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-02 Thread Jason Arora
and to contact Brightpoint themselves. Not sure > when or if I'll hear anything back from them. I sent an email to the > Device Seeding email, so I am hoping they'll help take care of it. > > > On Apr 1, 3:21 pm, Jason Arora wrote: > > My Droid was stolen :(. >

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread Jason Arora
My Droid was stolen :(. I received an empty Droid box in Southern California today. We signed for the package, but the box had been visibly tampered with. The thief stole the Droid and SIM card but left the charger/USB cable in the box. It was definitely stolen by a Brightpoint or Fedex employee.

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-30 Thread Jason
I received a Droid and I did not see the "Read Me First" leaflet that was referenced in the Getting Started on Droid - Activation section of the letter. Anyone else who got a Droid know what it looks like, where it was packed or what it said? -- You received this message because you are subscribe

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-28 Thread Jason
Was the shipper for the DROID someone other than brightpoint? On Mar 27, 12:23 pm, niko20 wrote: > Damnit, got a DROID today in Madison WIum I already have a DROID. > I doubt anyone is ever gonna wanna trade a Nexus one for this..lol > > - > > On Mar 27, 11:21 am, Greg Donald wrote: > > > >

<    1   2   3   4   5   6   7   8   9   10   >