[android-developers] Re: G1 for testing outside US
Yeah - they should allow a testhandy for developer even for non US ones. Maybe they can manage the developer authorization by give everybody one device which has a uploaded program at code.google ? to verify if it is a developer? That would be great. And would help to create cool apps! CU Christian On 25 Sep., 15:28, gjs <[EMAIL PROTECTED]> wrote: > Hi, > > This seems to provide some hope, but maybe only in the US ? - > > http://groups.google.com/group/android-developers/browse_thread/threa... > > see - > > Matt > > "More interestingly, buyers would be able to have access to a > "contract free" G1 (with a price point of $399), and could unlock the > device with T-Mobile's blessing after 90 days" > > Fromhttp://www.engadget.com/2008/09/23/t-mobiles-cto-on-g1-unlocking-and-... > > Regards > > On Sep 25, 8:41 pm, blindfold <[EMAIL PROTECTED]> wrote: > > > > How are the Android developers worldwide handling this issue? > > > I'm just testing in the emulator, hoping for the best (I'm in Europe). > > However, even in 1.0 r1 there are unspecified and unimplemented camera > > issues, such that for instance I have to hard-code the T-Mobile G1 > > camera resolution (2048 x 1536), which will no longer make sense once > > other Android phones hit the market. > > > On Sep 25, 9:15 am, Muthu Ramadoss <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > How can non US developers get a G1 for testing? We can buy it for sure > > > if its available. > > > > If we can't get a device for testing, can we just test in emulator? > > > How are the Android developers worldwide handling this issue? > > > > Ideas, anyone? > > > >http://mobeegal.in-mobilesearch. redefined. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Acessing web services with ksoap
Have you solved it? I have the same problem. Thanx Christian On 21 Aug., 07:16, Luciano <[EMAIL PROTECTED]> wrote: > Hi all > > I'm usingksoaplibrary modified by Jorge at Tuxpan (http:// > groups.google.com/group/android-developers/msg/4e86059309d7b10f) for > acessing web services. But now with the new SDK it doesn't work > anymore because of changes in Apache HTTP Client (http:// > code.google.com/android/migrating/m5-0.9/changes-overview.html#TOC- > Network). Anyone resolved this issue? > > Thanks in advance, > Luciano --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: REST + JSON Web Service Client
Yes the Yelp.com offer a API with JSON response (http://www.yelp.com/ developers) Cu Christian On 21 Aug., 07:12, Baran <[EMAIL PROTECTED]> wrote: > Anyone having any test web service link that provide response in JSON > format. Need one to test the clinet. > > On Aug 21, 10:00 am, Baran <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Thanks for the reply, actually I was confused with how we can use > > JSON. I suppose this is for manipulating the response we get after a > > successful web service request. Please correct me if I am wrong. Still > > new to this thing. > > > On Aug 20, 7:00 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > > > > Baran wrote: > > > > Hi, > > > > > I need to access a .Net web service in Rest format using JSON. I m > > > > pretty new to this concept and very much confused about how this > > > > works > > > > > Any one who can give an overview of the two. I need the steps that I > > > > need to follow to use JSON. Right now my doubt is how to use JSON to > > > > grab to output. Lets say we create a http client and it get the > > > > respone now what? > > > > > How can we use the JSON object to manipulate the response... > > > > There is a JSON parser built into Android: > > > >http://code.google.com/android/reference/org/json/package-summary.html > > > > And there is an HTTP client built into Android: > > > >http://code.google.com/android/reference/org/apache/http/package-summ... > > > > though you may wish to view the HttpClient documentation here: > > > >http://hc.apache.org/ > > > > Both of these are open source projects with their own documentation, on > > > top of what is in Android. Both are usable in other Java projects > > > outside of Android. > > > > If you have specific questions regarding the use of one or the other, > > > particular as it pertains to Android, write back with the details! > > > > -- > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > Warescription: All titles, revisions, & ebook formats, just $35/year --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to get constant waypoints for my locationbased service
I'm making a LBS Service with a mapview on this i want to show somewaypoints between waypoint one and waypoint 2 all cars send data to a webservice when they come through waypoint 1 and then going to waypoint 2. My problem is that when i make it with time send every 15sekonds the data - sometimes is to much when they drive only 15 mph or to less when they drive 100mph. So I need to look if they are at the waypint (looked into saved array) - if this Locationpoint is the same location point i have in my Array. So I'm driving arround and if my position is in the radius of x meters or miles around a waypoint gps position which is in this array i'm doing sending my data to a webservice. So i can compare all data from all cars because they have all the same 2 waypoints. So I have - me with a moving position and every x seconds i ask the array - the array with a lot of saved positions - a radius around the saved positions in the array (in this radius every request get true back) Has anybody an idea in which way i can calculate this? How can i calculate the whole positions around the point which are accepted too? Or MORES INTERSTED IN has anybody of you some other ideas to solve it in a different way so that i don't need the array of fixed waypoints? Thanxx a lot for your comments!! Christian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem stopping a thread at clicking the home or back button
Thanxx! just done it with onPause and Resume and it works yipee!! Couldn't see the wood for the trees after some hours of programming! Thanxx! On 3 Jun., 14:43, Mark Murphy <[EMAIL PROTECTED]> wrote: > cbraun75 wrote: > > Just have a Problem withstoppingathreadby finishing a programm > > through > > - just go back to mainmenu or go back with the back button. > > > It is replying always on in the Log modul the data. > > > My programm catches the Location data from the GPS modul and should > > send it to a webservice. But when the home button or the back button > > is pressed the threads are always going on ... and telling thethread > > that there is an interrupt for him doesn't make anything. > > > Has anybody an idea why it's always running? > > You have implemented onDestroy(). However, merely pressing the home or > back will not necessarily destroy your activity, any more than pressing > the Start menu button in Windows closes all running programs. > > If you want to make sure your activity closes down, give the user some > means (e.g., option menu choice) to call finish() on the activity. That > should cause your activity to go through onDestroy(). > > If, instead, you want to just disable your polling while your activity > is hidden and restart it when it is visible, you should start your > polling in onResume() and stop your polling in onPause(). It may be that > your backgroundthreadkeeps running, but that it doesn't actually check > and log the position when the activity is not visible. > > You can read more about the activity lifecycle, and the > onResume()/onPause() pair, at: > > http://code.google.com/android/reference/android/app/Activity.html#Ac... > > You could also peek at the Threads/Handler demo from my book's sample code. > > >public void run() { > > while(!Thread.currentThread().isInterrupted()) { > > Message m = new Message(); > > m.what = MyData.GUIUPDATEIDENTIFIER; > > MyData.this.myViewUpdateHandler.sendMessage(m); > > > try { > > Thread.sleep(1); > > } > > catch (InterruptedException e) { > > Thread.currentThread().interrupt(); > > } > > } > >} > > Why not just break out of your infinite loop on an InterruptedException? > That will cause you to exit run() and will therefore cause thisthread > to terminate. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ -- Available Now! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem stopping a thread at clicking the home or back button
Hi! Just have a Problem with stopping a thread by finishing a programm through - just go back to mainmenu or go back with the back button. It is replying always on in the Log modul the data. My programm catches the Location data from the GPS modul and should send it to a webservice. But when the home button or the back button is pressed the threads are always going on ... and telling the thread that there is an interrupt for him doesn't make anything. Has anybody an idea why it's always running? I tried to implement another method in the thread class called stop this method set an boolean to true and the while loop is then set to this boolean variable but from outside i can't set the variable to a diferent state because he can't get the function or variable in the inner class My code is: Java: import com.google.android.maps.Point; import com.google.googlenav.map.MapPoint; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; public class MyData extends Activity { private Thread thread = null; private MyLocation myloc = null; private MapPoint mp; private GraphicsView graphicsview = null; private Context context; protected static final int GUIUPDATEIDENTIFIER = 0x101; public int counter=0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { context = this; super.onCreate(icicle); graphicsview = new GraphicsView(this); setContentView(graphicsview); init(); } private void init(){ Runnable runnable = new thread(); thread = new Thread(runnable); thread.start(); } public void onDestroy(){ this.thread.interrupt(); finish(); } public void finalize(){ this.thread.interrupt(); finish(); } Handler myViewUpdateHandler = new Handler(){ // @Override public void handleMessage(Message msg) { switch (msg.what) { case MyData.GUIUPDATEIDENTIFIER: //Do the update / refresh stuff // Get the GPS information and set them to myactualposition myloc = new MyLocation(context); mp = myloc.getmyLocation(); Log.d("mydata", "I'm in the Handler doing submission "+counter); Log.d("mydata", "GPS Object: "+mp.toString()); graphicsview.setBackground(123455); graphicsview.invalidate(); counter++; break; } super.handleMessage(msg); } }; class thread implements Runnable { // implements Runnable could be done if you want to have more threads access on a object public boolean testat = false; /* * Starts the thread and makes a Message so that a Handler can get it. * Done because only the initialiesed thread could make a update so a Handler is needed * see also picture at http://www.anddev.org/instantmessaging_display_incoming_messages_without_action-t162.html * (non-Javadoc) * @see java.lang.Runnable#run() */ // @Override public void run() { while(!Thread.currentThread().isInterrupted()) { Message m = new Message(); m.what = MyData.GUIUPDATEIDENTIFIER; MyData.this.myViewUpdateHandler.sendMessage(m); try { Thread.sleep(1); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem complex types with ksoap Library for Soap webservice
Hi I used the ksoap library from tuxpan and the tutorial of here http://chitgoks.blogspot.com/2008/03/android-and-web-services.html Normal string returntypes are going BUT i have a problem with complex types of soap varaibles. I have set up a coldfusion webserver. which has the following test webservice. Code: - THE PROBLEM is that normal strings are comming threw but when I'm setting a complex type to this i can't get the attributes themselve What i get is the whole object as a string with the object.toString() method.. I looked to cast the object to a string Array Object but then a castexexption comes from Java Next i tried this Android Client app with vectors but here they say illegal argument. Code: import java.util.Vector; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.EditText; import android.widget.TextView; public class test_ws_array extends Activity { private static final String SOAP_ACTION = "getMessage"; private static final String METHOD_NAME = "getMessage"; private static final String NAMESPACE = "http:// rpc.xml.coldfusion"; // ! WICHTIG ! IMMER NEUE IP EINTRAGEN DA SICH DIESE JEDESMAL AENDERT ! private static final String URL = "http://195.30.48.80:8500/DA/ ws_functions/test4.cfc?wsdl"; //private static final String URL = "http://192.168.1.33:8500/DA/ ws_functions/test.cfc?wsdl"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); //Buttons deaktiviert alles automatisch SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("vname", "Christian"); request.addProperty("nname", "Braun"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL); try { androidHttpTransport.call(SOAP_ACTION, envelope); SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn; Vector = (Vector) resultsRequestSOAP.getProperty("[VNAME]"); //Vector = (Vector) resultsRequestSOAP.getProperty(0); //Object result = envelope.getResponse(); //Object result = new Object(); //result = envelope.getResponse(); //Object[] results = (Object[]) result; //2 Zeilen weg die sollten gehen mit Komplexen Objekttypen) //String[] str = (String[]) result; // ((TextView)findViewById(R.id.lblStatus)).setText(resultsRequestSOAP.toString()); ((TextView)findViewById(R.id.lblStatus)).setText(.toString()); // ((TextView)findViewById(R.id.lblStatus)).setText(result.toString()); } catch(Exception E) { ((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" + E.getClass().getName() + ": " + E.getMessage()); } } } When i make a output with toString() method with the result then this is displayed on the screen: getMessageResponse{getMessagereturn=Map{item=anyType{key=VNAME;value=Christian;}; item=anyType{key=NNAME; value=Braun;};};} Maybe you can help me - this would be very helpful Have you tried a complex Soap Type in a different way? And maybe have a sample app? Thanx! Christian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---