[android-developers] Re: Device Seeding Program for Top Android Market Developers
I just received mine! (5 minutes ago!) It was shipped from Brightpoint in the Netherlands with FedEx! I live in the Netherlands btw! On 29 apr, 15:56, Rob Green greenrobot.developm...@googlemail.com wrote: I got mine too! Bonn, Germany. Thanks Google! -- 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-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Null pointer exception
Shouldnt you check if the bundle is null or not? Try to loop through it when you get there from a onContextItemSelected event. I'm guessing some value somewhere is null when it should be instantiated. Perhaps the intent is started quicker or without the bundle somehow so you get a nullpointer exception? On 31 dec 2009, 15:57, JasonMP hyperje...@gmail.com wrote: yes, Select.class is another one of my files. throughout my app there are a few different calls to it, all done the same way i.e. Intent i = new Intent(this, Select.class); startActivity(i); No where in Select.class do I make a call to start Select.class or Sheet.class. When its done it calls finish(); in the onCreate() of Select.class I grab the extras from the invoking class with this line of code: public class Select extends ListActivity{ DBAdapter db = new DBAdapter(this); String slotName = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); db.open(); ListView list = getListView(); View v = View.inflate(this, R.layout.list_header, null); list.addHeaderView(v, null, false); name = this.getIntent().getStringExtra(DBAdapter.KEY_NAME); } Could it be something in the .getIntent() method? or the .getStringExtra()? On Dec 30, 7:19 pm, Stephen @ gmail.com sdickey2...@gmail.com wrote: Now that I understand your intent creation a little better, and I see that the intent you are creating is unique from the class in which the code exists, I am not quite sure how it could be an infinite loop in the (immediate) way I was thinking. Reading this code Intent i = new Intent(this, Select.class); I have to start thinking there's something wrong with this. I tried to look up the Select class on the android developers site, and couldn't find it. Is that a class from another of your files? I guess I would wonder if the code being invoked there, is somehow causing this class to be invoked, thus causing some kind of loop. I would grep for any reference to your Sheet class, from anywhere else in your code, and that would likely be suspect. In general, the below is kind of a side topic, to maybe help you with generic debugging. All the Best, Steve. *Ok... the only thing I can think to really help you is to start taking advantage of logging. In your import list, I see you don't include the logger code, so maybe you can give this a shot. 1) in the import list import android.util.Log; 2) and throughout your code Log.d( TAG, DebugText ); where TAG is a string that is unique to you, and DebugText is something useful to identify the part of the program you're interested in. * On Wed, Dec 30, 2009 at 11:32 AM, JasonMP hyperje...@gmail.com wrote: Ok, I'm suddenly very curious by your previous statement stephen about the possibility of creating an infinite loop. Upon a little more investigation I'm now getting errors all over the place...same errorjust at different points in the app where I try to startActivity(intent); As soon as the new activity receives focus is crashes. On Dec 30, 1:58 pm, JasonMP hyperje...@gmail.com wrote: package com.mallet.dtool; import android.app.AlertDialog; import android.app.TabActivity; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.content.Intent; import android.content.DialogInterface.OnClickListener; import android.content.res.Configuration; import android.database.Cursor; import android.graphics.Color; import android.os.Bundle; import android.view.ContextMenu; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ContextMenu.ContextMenuInfo; import android.widget.AdapterView; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import android.widget.TabHost; import android.widget.TableLayout; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.AdapterView.OnItemClickListener; import android.widget.TabHost.OnTabChangeListener; public class Sheet extends TabActivity{ @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } DBAdapter db = new DBAdapter(this); static Long cRowId; //Variable declaration public static Integer tabState = 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
[android-developers] Re: How will dev phone be able to run Eclair?
As has been noted in the blogpost you linked you can repartition your phone. This has been done a multitude of times with the cooked roms like cyanogen's one. The main issue is that you dont want to do something so potentionally dangerous for an android phone over the air. If you brick while flashing this time you will be really screwed! So if its true they wont get it too fit (which has to be seen untill the source is released) you will probably only get to use it unofficially. On Oct 30, 3:43 pm, Tamas Jozsa tjo...@gmail.com wrote: Hi All, I have read and double checked that there is theoretically no chance to have Eclair on G1 productive phone. Take a look at this site:http://androidandme.com/2009/10/news/g1-owners-could-miss-out-on-andr... I was wondering if there is actually a method to repartiotion the system partition so that Eclair would fit on G1 dev phone. What do you think? Thanks, Regards, Tamas -- 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-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Upgrade Dev Phone to 2.0
You can't at this moment. The only 2.0 update currently available is the emulator one and most likely the Motorola Droid that is coming out soon in the USA. Other then that, you are at 1.6 with an Dev Phone 1. On Oct 29, 7:13 am, vitalii.mi...@gmail.com vitalii.mi...@gmail.com wrote: Hi , How can I update my Dev Phone 1 to Android 2.0 I don't see any updates onhttp://developer.htc.com/adp.html --~--~-~--~~~---~--~~ 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-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Date Picker
I dont really see why this should not be able to be done with a spinner? You can add items to a spinner programmaticly, just calculate the 3 next days add them to the spinner? You can easily get the date from the Calendar object and then use a ArrayAdapter to add your items. I found this link that shows how you can custom add the spinner items, seems for a older SDK, but i think the code hasnt changed that much. http://www.designerandroid.com/?p=8=1 On Aug 31, 6:05 am, Sasi Kumar sasikumar.it1...@gmail.com wrote: I want only 3 days that should genarate automatically.. Pls give some suggestion with example.. ex:- I want like 30/08/2009 31/08/2009 1/09/2009 we can't able to enter it manually b'coz the date and the month will cahnge. On Aug 29, 7:21 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: How about just using a Spinner instead of a DatePicker ? Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 29, 4:08 am, Sasi Kumar sasikumar.it1...@gmail.com wrote: I want a date picker with maximum of 3 days. i want like yesterday today tomorrow this 3 days only i want. any one can sugess some idea. please reply. --~--~-~--~~~---~--~~ 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-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: problem in Http Get method..can any one tell me pls...
Looking at your code, it seems that you print the String variable Output. This variable contains the value of the URL but you never set it to anything else. I think you want to set a variable to the return value of your downloadUrl method. And some unasked advice with regards to dealing with the retrieving of the http content. I retrieve the data directly with the HttpEntity class as followed: (I use a Post because i use it to post data to a external server, but it works the same) HttpPost siteRequest = new HttpPost(url); HttpResponse httpResponse = client.execute(dataRequest); responseData = EntityUtils.toString(httpResponse.getEntity()); After this responseData contains the http content retrieved from the request. On Aug 31, 9:30 am, ragavendran s sraghav.ra...@gmail.com wrote: Can anyone tell what is the problem in the given code to retrieve the data from the local server by using Http Get method..pls give some example code..i tried but if i give the url the result i m getting same url in the text view...shall any one point out wat the error in the code pls point out the errors... With regards, Raghav.S package req.http1; import java.io.IOException; import java.io.InputStream; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpRequestBase; import org.apache.http.impl.client.DefaultHttpClient; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class reqhttp extends Activity { TextView text; EditText edt; Button btn; String n=null; String contentOfMyInputStream1; String output = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); edt=(EditText)findViewById(R.id.edt); text=(TextView)findViewById(R.id.text); btn=(Button)findViewById(R.id.btn); btn.setOnClickListener(new OnClickListener() { public void onClick(View v) { text.setText(); // Thread thread = new Thread(); String st1; st1=edt.getText().toString(); //thread.start(); try { output =http://localhost:8080/Serv1/servlet/Servlet1?st1= +st1; downloadUrl(output); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (output != null) { text.setText(output); } } }); } public String downloadUrl(String url) throws IOException{ HttpClient httpclient = new DefaultHttpClient(); HttpRequestBase httpRequest = null; HttpResponse httpResponse = null; InputStream inputStream = null; String response = ; StringBuffer buffer = new StringBuffer(); httpRequest = new HttpGet(url); httpResponse = httpclient.execute(httpRequest); inputStream = httpResponse.getEntity().getContent(); int contentLength = (int) httpResponse.getEntity().getContentLength(); if (contentLength 0){ // Log.e(TAG, The HTTP response is too long.); } byte[] data = new byte[256]; int len = 0; while (-1 != (len = inputStream.read(data)) ) { buffer.append(new String(data, 0, len)); } inputStream.close(); response = buffer.toString(); return response; } } --~--~-~--~~~---~--~~ 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-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Trying to receive the ACTION_PROVIDER_CHANGED intent from the gmail app
I have been trying to catch the ACTION_PROVIDER_CHANGED intent to use and see how many unread emails there are still left. According to the documentation you can receive the action to these data. Documentation: Broadcast Action: Some content providers have parts of their namespace where they publish new events or items that the user may be especially interested in. For these things, they may broadcast this action when the set of interesting items change. For example, GmailProvider sends this notification when the set of unread mail in the inbox changes. But somehow my catching code is never hit, when i replace the Intent Action with something like ACTION_TIME_TICK or another one, it works perfectly, but this one never seems to hit. I know the intent is being broadcasted looking at the LogCat, but i am still never able to receive it. 06-20 15:35:52.726: INFO/gmail-ls(130): Sending notification intent: Intent { action=android.intent.action.PROVIDER_CHANGED data=content:// gmail-ls/unread/^i type=gmail-ls (has extras) } Has anyone had this same problem or has found a work around? The (partial) code i am using is as followed: @Override public void onStart(Intent intent, int startId) { // Build the widget update for today Log.i(GMAILNOT, Service started); registerReceiver(mGmailNotInfoReceiver, new IntentFilter (Intent.ACTION_PROVIDER_CHANGED)); } private BroadcastReceiver mGmailNotInfoReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Log.i(GMAILNOT, intent.toString()); String action = intent.getAction(); if (Intent.ACTION_PROVIDER_CHANGED.equals(action)) { Uri dataURI= intent.getData(); String dataURIPath=dataURI.getPath(); Log.i(GMAILNOT, dataURIPath); } } }; --~--~-~--~~~---~--~~ 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-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---