[android-beginners] Re: Problem with java.net
I added the permission it worked. Thank you. -- From: sacoskun [EMAIL PROTECTED] Sent: Saturday, August 30, 2008 1:58 AM To: Android Beginners android-beginners@googlegroups.com Subject: [android-beginners] Re: Problem with java.net Please take a look at http://groups.google.com/group/android-developers/browse_thread/thread/d2fef5736396f41b/fe1b8d813e0e9eeb?show_docid=fe1b8d813e0e9eeb Regards, sacoskun On Aug 29, 1:37 pm, leafka [EMAIL PROTECTED] wrote: I want to test the following code, but the DDMS always display Unknown socket error -1 , I think the code is correct, Must I set up the emulator or soming? Thank you. Source Code: public class SocketApp extends Activity { private Button ok; private TextView tv1; HttpURLConnection uc ; URL url; private static final String ip=code.google.com/android/images/ logo_android.gif; private static final String host=; private static final String path = http://; + ip +host ; ImageView view1; InputStream is; BufferedInputStream bis; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ok = (Button)findViewById(R.id.Button01); ok.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { openConn(); sendRequest(); getRespones(); closeConn(); } }); } private void openConn(){ try { url=new URL(path); uc = (HttpURLConnection)url.openConnection(); uc.setDoInput(true); }catch (MalformedURLException e){ // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } private void sendRequest(){ try { Log.i([SocketApp], conn begin .); uc.connect(); Log.i([SocketApp],conn end .); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } private void getRespones(){ try { is = uc.getInputStream(); Log.d(lenght,+uc.getContentLength()); tv1.setText(uc.getContentLength()+); bis = new BufferedInputStream(is); Bitmap bm = BitmapFactory.decodeStream(bis); view1.setImageBitmap(bm); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } private void closeConn(){ try { uc.disconnect(); bis.close(); is.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } AndroidManifest.xml: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.ltinc.cn application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.SocketApp android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/
I tried all of these options about 100 times. Restarting fixed the issue. On Aug 29, 6:54 pm, Filipe Abrantes [EMAIL PROTECTED] wrote: has anyone had success with this problem... I am getting this error repeatedly even if I try installing through http:// or .zip file locally: An error occurred during provisioning. Cannot connect to keystore. JKS Cheers, Filipe Gies,Brad wrote: I’m also had the same problem a couple of times (I installed Android on 2 work machines and 2 home machines). In both of the cases where it didn’t work properly the first time, trying again a couple of minutes later worked. Maybe the repository is just very busy?? Sincerely, Brad Gies - NLM Software Southfield, MI, USA - If you get today's work done today, but do it in a way that you can't possibly get tomorrow's work done tomorrow, then you lose. *From:* android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *??? *Sent:* Tuesday, August 26, 2008 10:58 AM *To:* android-beginners@googlegroups.com *Subject:* [android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/ if you can send the picture about what you discrible,I think I need it This e-mail or communication, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or legally privileged material. Any review,retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this message in error, please contact the sender immediately and permanently delete all copies, electronic or other, you may have or from your computer. Any disclosure, copying, distribution, reliance or use of the contents or information received in error is strictly prohibited. The foregoing applies even if this notice is imbedded in a message that is forwarded or attached. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/
I tried all of these options about 100 times. Restarting fixed the issue. On Aug 29, 6:54 pm, Filipe Abrantes [EMAIL PROTECTED] wrote: has anyone had success with this problem... I am getting this error repeatedly even if I try installing through http:// or .zip file locally: An error occurred during provisioning. Cannot connect to keystore. JKS Cheers, Filipe Gies,Brad wrote: I’m also had the same problem a couple of times (I installed Android on 2 work machines and 2 home machines). In both of the cases where it didn’t work properly the first time, trying again a couple of minutes later worked. Maybe the repository is just very busy?? Sincerely, Brad Gies - NLM Software Southfield, MI, USA - If you get today's work done today, but do it in a way that you can't possibly get tomorrow's work done tomorrow, then you lose. *From:* android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *??? *Sent:* Tuesday, August 26, 2008 10:58 AM *To:* android-beginners@googlegroups.com *Subject:* [android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/ if you can send the picture about what you discrible,I think I need it This e-mail or communication, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or legally privileged material. Any review,retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this message in error, please contact the sender immediately and permanently delete all copies, electronic or other, you may have or from your computer. Any disclosure, copying, distribution, reliance or use of the contents or information received in error is strictly prohibited. The foregoing applies even if this notice is imbedded in a message that is forwarded or attached. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android for Nintendo DS?
Ok, thank you. I think that this can be possible one day :DD 2008/8/30 Tony S. [EMAIL PROTECTED] Maybe when Android 1.0 is released (and the complete source will be available), will be possible to do that. On Aug 29, 7:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everybody. This is my first question. I have a Nintendo DS Lite with a M3 DS Real and i have this question: ¿Will be Android for the Nintendo DS? I think that Android can use the uLinux called DSLinux and charge all the software needed by Android. The NDS only have 4MB of ram but is possible to use a memory expansion how as the NDS Browser memory (8MB), the M3 DS rumble Ram (32MB) or others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Invalidate()
Why is forcing a view to draw called Invalidate()? - JuanT. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/
Well, just visiting the site shows the problem: https://dl-ssl.google.com/android/eclipse/ Google - Error: Not Found The requested URL /android/eclipse/ was not found on this server. Of course that's not a valid repository format. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] addId is deprecated?
Hi everybody, I am trying to use this: i.setData(Phones.CONTENT_URI.addId(idTelefono)); but I think that the method addId is deprecated, but i don't know the new alternative for this. The package is android.provider.Contacts.Phones Thanks -- Chihau Chau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/
On Sat, Aug 30, 2008 at 1:03 PM, Sir Lantis [EMAIL PROTECTED] wrote: Well, just visiting the site shows the problem: https://dl-ssl.google.com/android/eclipse/ Google - Error: Not Found The requested URL /android/eclipse/ was not found on this server. Of course that's not a valid repository format. Actually it just means that there's no default html file (index.html for instance). There is, however a site.xml file which is all Eclipse cares about. Xav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@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-beginners?hl=en -~--~~~~--~~--~--~---