Chuck Jagger

Greenhorn
+ Follow
since Aug 24, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chuck Jagger

I've been trying to programatically position an image. I've got the XML working, and can do it in the XML, but I can't seem to make it work in the code. The program runs just fine, but just keeps putting the diamond in the upper left hand corner of the screen. What am I doing wrong?




10 years ago
OK...after lots of searching and searching, I finally found the answer.

To do Internet communication in an Android app, this line must be in the AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

this goes just before the <application tagl
10 years ago
Sorry..I should have included a couple more items of interest: 1) I'm developing this under the Android SDK. 2) I've tried running this application on both my development machine and on my android (both of which can access the URL) 3) I've verified that both my Droid as well as my development machine can reach all of the URL's that I've tried.
10 years ago
I am attempting to retrieve a file from a URL connection. I've looked at all of the examples on the 'Net and have copied some in, but I simply can't figure out why I'm getting a "unknownhostexception" when running this code. I've tried multiple URL's - java.com, www.oracle.com, and the one in the example below, and they all return the unknownhostexception when doing the getInputStream function. Can someone please help me? I get this error right after the message indicated by #0 below appears.

10 years ago