?
Solved

Android: Step through code during debugging

Posted on 2013-12-02
4
Medium Priority
?
438 Views
Last Modified: 2013-12-04
Hi

I am a VB.net developer starting Android development.
Is it possible to step through code like the following when debugging
as you would in VB.net?


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Get the message from the intent
    Intent intent = getIntent();
    String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);

    // Create the text view
    TextView textView = new TextView(this);
    textView.setTextSize(40);
    textView.setText(message);

    // Set the text view as the activity layout
    setContentView(textView);
}
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
btdownloads7 earned 668 total points
ID: 39692375
Yes -- any IDE that you use had a debugging mode. For example, in Eclipse, you can launch the debugging by pressing F11 (as opposed to CTRL+F11 for running it normally). You can put breakpoints on any line where you want the debugger to stop by pressing Ctrl+Shift+B on those lines. And once the debugger stops at those lines, you can debug line-by-line.
0
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 1332 total points
ID: 39695135
This is where to get the elipse ide with the android developer toolkit as a single download.

http://developer.android.com/sdk/index.html

It is as close as you are going to get to visual studio.
0
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 1332 total points
ID: 39695151
Though Xamarin, whom I had never heard of before today, do a VS plugin.

http://xamarin.com/visual-studio

If you try it, let us know if it is any good or not.
0
 

Author Closing Comment

by:Murray Brown
ID: 39695163
Thanks very much
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question