Permission for accessing internet

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Permission for accessing internet

Postby shank586 » Fri Nov 07, 2008 6:01 am

Hi all Do we need a special permission for accessing the internet for application that we develop, i mean the asking permission on Manifest.xml


Thanks in advance
Shank586
shank586
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Jun 20, 2008 3:22 pm

Top

Postby jasont » Fri Nov 07, 2008 5:34 pm

Yes you do, add the following line to your AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
jasont
Developer
Developer
 
Posts: 28
Joined: Mon Sep 22, 2008 6:39 pm
Location: California

Postby shank586 » Fri Nov 07, 2008 5:42 pm

thanks jasont for ur reply its working
shank586
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Jun 20, 2008 3:22 pm

Postby jasont » Sat Nov 08, 2008 6:34 am

shank586 wrote:thanks jasont for ur reply its working


Glad its working, in the future you should look at the permission's list to see which ones you may need to declare.

http://code.google.com/android/referenc ... ssion.html
jasont
Developer
Developer
 
Posts: 28
Joined: Mon Sep 22, 2008 6:39 pm
Location: California

Postby NithinG » Wed Dec 17, 2008 3:31 pm

hi Shank586,

Im not able to connect wit the internet other than the application. Can you please tell me how can i enable this? Is there any extra configurations i have to do?

Regards,

NithinG
NithinG
Developer
Developer
 
Posts: 36
Joined: Wed Feb 27, 2008 6:24 am

Postby parimalraj2000 » Tue Feb 03, 2009 10:00 am

Hi All,
I am trying to open an interent connection with the following code snippet:

URL url = new URL(url_str);
InputStream is = url.openStream();

I have given persmission for internet in the manifest file.
<uses-permission android:name="android.permission.INTERNET" />

This code is working fine in emulator.
Buit whenever I am trying to run it in actual Device, the code is crashing with out giving any exceptions.

Can anyone please help me solving this problem?
Regards,
parimal
parimalraj2000
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Nov 04, 2008 10:01 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest