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

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 arn...@fortuin.nl 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

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 zero...@gmail.com 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 kaye...@gmail.com wrote: Yo man

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 r...@acm.org 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

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 bobgard...@aol.com 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

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

[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] Do Services *really* run in the Background?

2010-04-09 Thread Jason LeBlanc
/started in the Application context? On Fri, Apr 9, 2010 at 5:23 AM, Jason LeBlanc jasonalebl...@gmail.comwrote: 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

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

2010-04-09 Thread Jason LeBlanc
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 mmur...@commonsware.com wrote: Jason LeBlanc wrote: I have tried moving the start Service call to a manually-managed thread within

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

2010-04-09 Thread Jason LeBlanc
will 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 mmur...@commonsware.comwrote: Jason LeBlanc wrote: Yes, the Connection extends Thread

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

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

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

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 jasonalebl...@gmail.com wrote: I'm trying to catch

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 rask...@gmail.com 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

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

2010-04-08 Thread Jason LeBlanc
On Apr 8, 2010 3:18 PM, ~ TreKing treking...@gmail.com wrote: On Thu, Apr 8, 2010 at 9:52 AM, Jason LeBlanc jasonalebl...@gmail.com 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 Amtrak train. I

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 jkavana...@gmail.com 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();

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 isaacewag...@gmail.com 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

[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 develop

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 jasonalebl...@gmail.comwrote: 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

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 defiledr...@gmail.com wrote: Hi all, As always I searched high and low to no avail. I don't doubt the answer is out there,

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);

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 jasonalebl...@gmail.com wrote: I have a Connection object that is instantiated by the ConnectionService. I bind to the service in order to access the

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

2010-04-05 Thread Jason LeBlanc
logcat? On Apr 5, 8:30 am, Jason LeBlanc jasonalebl...@gmail.com wrote: Is there an obvious reason why ... On Apr 4, 2010 9:01 AM, Tunneling jasonalebl...@gmail.com wrote: I have a Connection objec... android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr

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

2010-04-05 Thread Jason LeBlanc
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 jasonalebl...@gmail.com wrote: Thanks for the response. I haven't meant to spam the group, I wasn't sure if my post were

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 jasonalebl...@gmail.comwrote: Here is my onCreate(), that works

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 nad...@gmail.com 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

[android-developers] Fwd: Detecting Socket connection failure

2010-04-02 Thread Jason LeBlanc
3rd try to post... -- Forwarded message -- From: Tunneling jasonalebl...@gmail.com Date: Apr 1, 2010 10:03 PM Subject: Detecting Socket connection failure To: Android Developers android-developers@googlegroups.com Hello Group. I am working on an app that uses a Socket to connect

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 darshanr...@gmail.com 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