let me ask you are you using proxy connection ? if you are using then you have to include proxy connection class even though you may check your program including the http url which does not require proxy.
On 8/2/12, soynerdito soynerdito <[email protected]> wrote: > "Source not found" normally means that the build version of the app is not > exactly the same as the one being debugged. So first of all, do a project > Clean. Delete your bin and gen folders. Then build your app and make sure > it is building without errors. You may (but not normally required) to > uninstall the app from the device and run again. All is to make sure that > the app building at that moment is the one that is running on the device. > > On Thursday, August 2, 2012 2:40:10 AM UTC-4, Therion wrote: >> >> Hello, this is my first time posting, but I've run into a massive wall in >> >> my progress. >> >> A quick background, I started developing an app for the Android about 3-4 >> >> months ago, off and on. It is a project I received from my college teacher >> >> for a sort of internship. >> I have to take a peice of text, inputted by the user, attach it to the a >> url address, and then access the website, retrieve the xml, parse it, and >> >> then display 3 peices of the code in separate textviews. >> Currently, I've separated the "text input" screen from the screen which >> displays the parsed data sections. >> >> However, I'm currently completely stuck trying to access the website and >> retrieve the xml. >> The debug simply says "Source not found." and gives me an option to Edit >> Source Lookup Path. However, I've got the program already directed to the >> >> Source location. >> Currently, this is my code for attempting to access the website : >> >> public class Price_PageActivity extends Activity { >>> >>> public void onCreate(Bundle savedInstanceState) { >>> super.onCreate(savedInstanceState); >>> setContentView(R.layout.price_page); >>> >>> HttpURLConnection con = null; >>> URL url1; >>> InputStream is=null; >>> Intent intent = getIntent(); >>> String urlextra = intent.getStringExtra("android.grabber.string"); >>> try { >>> url1 = new URL(("http://www.reuters.com/finance/stocks/overview?symbol=" >>> >>> + urlextra )); >>> con = (HttpURLConnection) url1.openConnection(); >>> // con.setReadTimeout(10000 /* milliseconds */); >>> // con.setConnectTimeout(15000 /* milliseconds */); >>> con.setRequestMethod("GET"); >>> con.setDoInput(true); >>> con.connect(); >>> is = con.getInputStream(); >>> >>> >>> >>> BufferedReader rd = new BufferedReader(new InputStreamReader(is), 4096); >>> String line; >>> StringBuilder sb = new StringBuilder(); >>> while ((line = rd.readLine()) != null) { >>> sb.append(line); >>> } >>> rd.close(); >>> String streamcontent = sb.toString(); >>> TextView Text = (TextView) findViewById(R.id.TextView02); >>> Text.setText(streamcontent); >>> } catch (IOException e) { >>> //handle the exception ! >>> e.printStackTrace(); } >> >> >> >> If any more information is required, I will try my best to provide it. >> Any help I can gather with this problem would be greatly appreciated, as >> I've been stuck on this for a disappointingly long time now... >> >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > 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 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

