[android-developers] Source not found, but I've given a source?
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(1 /* 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 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
Re: [android-developers] Source not found, but I've given a source?
This is because you are stepping into Java or Android code and you don't have the source for that... Set a breakpoint back in your code and resume debugging Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Aug 2, 2012 at 12:40 AM, Therion benpass...@gmail.com 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(1 /* 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 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 -- 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
Re: [android-developers] Source not found/ArrayAdapter
On Sat, Feb 4, 2012 at 2:57 PM, Ozone Apps ozoneforandr...@gmail.comwrote: Any ideas? Debug your app. Explain throwing a Serouce Not Found error. Post a logcat. Show some code. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Source not found/ArrayAdapter
Hello Everyone! I am trying to use a spinner, and the program is throwing a Source Not Found error when I set an array adapter to that spinner. The array I am referencing contains valid elements and no null elements...it was working but all of a sudden it kept giving me the error. Any ideas? -- 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] Source not found
Hello, I am newbie to Android. I am working on Android and Eclipse on the linux ubuntu platform. I am trying to write a program for Server-Client socket communication. Below is the code snippet: try{ Log.d(LOG_TAG, OK); providerSocket = new ServerSocket(8000, 10); connection = providerSocket.accept(); boolean a = connection.isConnected(); Toast.makeText(this, Connection established!, Toast.LENGTH_LONG).show(); return; } catch(IOException e) { Log.v(LOG_TAG, NOK); e.printStackTrace(); } When i debug the code, it reaches at connection = providerSocket.accept(); and stops debugger by showing below message Source Not found The source attachment does not contain the source file ServerSocket.class You can change the source attachment by clicking Change Attached Source below: When i try to click on button i dont find any source file src.zip in the directory of Android. Eclipse does have src.zip but in many folders so i am confused to choose which file to be selected. Any other clues?? Prasad -- 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] Source not found Error
Hi, How do i can solve the problem of Source not found Error. Please help me. Thanks a lot --~--~-~--~~~---~--~~ 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] source not found
I create a new blankview extends view , i want load it from my layout.xml but when i debug it , error it said source not found. if i don't debug it , it same. LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android xmlns:app=http://schemas.android.com/apk/res/ com.example.android.apis android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content android.software.canvas.BlankView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true / /LinearLayout package android.software.canvas; import android.content.Intent; import android.os.Bundle; import android.software.canvas.PaletteActivity.ImageAdapter; import android.software.control.GalleryList; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.widget.AdapterView; import android.widget.Gallery; import android.widget.ImageSwitcher; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.AdapterView.OnItemClickListener; import android.widget.Gallery.LayoutParams; public class BlankActivity extends BaseActivity { BlankView blankview; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE);//debug point blankview = (BlankView)findViewById(R.id.blank); } how to fix it ?? thanks --~--~-~--~~~---~--~~ 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] Source not found..DocumentBuilderFactory
Hello, When I try to get DocumentBuilderFactory object using DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance();,Debugger shows source not found..Please help..its urgent.. --~--~-~--~~~---~--~~ 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] source not found workaround
I was browsing the net and found a few things that would solve the source not found error you get when you have an error in the application (or an exception). The web interface here doesn't let me post any pictures so I wrote it here : http://moazzam-khan.com/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---