Solved

Android App Error:  Error opening trace file: No such file or directory (2)

Posted on 2013-05-21
8
4,846 Views
Last Modified: 2013-06-11
Hello Experts,

I'm working in Eclipse and developing a simple Android app.  When I go to run the app, I get the following Verbose Error:
Error opening trace file: No such file or directory (2)

Open in new window

I'm testing on my actual Droid Razr Maxx device, not the emulator.

Any ideas on how I may fix this?

Thank you.
0
Comment
Question by:Modifier1000
  • 5
  • 2
8 Comments
 

Assisted Solution

by:fantasy88
fantasy88 earned 250 total points
ID: 39193379
Please post your code to get solution
0
 

Author Comment

by:Modifier1000
ID: 39194680
Here is the code

Java file below:
package com.mcrsports.mcr;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

 @override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		//-----LATEST NEWS BUTTON-----
		Button newsButton = (Button) findViewById(R.id.latestNewsButton);		
		newsButton.setOnClickListener(new OnClickListener() {
			
		 @override
			public void onClick(View v) {
				startActivity(new Intent(MainActivity.this, LatestNewsActivity.class));
				
			}
		});
		
		//-----PARK LOCATIONS BUTTON-----
		Button parksButton = (Button) findViewById(R.id.parkLocationsButton);
		parksButton.setOnClickListener(new OnClickListener() {
			
		 @override
			public void onClick(View v) {
				startActivity(new Intent(MainActivity.this, ParkLocationsActivity.class));
				
			}
		});
				
	}

 @override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}

Open in new window


Manifest file below:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mcrsports.mcr"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="14" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppBaseTheme" >
        <activity
            android:name="com.mcrsports.mcr.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.mcrsports.mcr.LatestNewsActivity"
            android:label="@string/title_activity_latest_news" >
        </activity>
        <activity
            android:name="com.mcrsports.mcr.ParkLocationsActivity"
            android:label="@string/title_activity_park_locations" >
        </activity>
    </application>

</manifest>

Open in new window

0
 
LVL 35

Expert Comment

by:girionis
ID: 39198008
Does the error affect the functionality of your application? If not I'd say you can ignore it.
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:Modifier1000
ID: 39217186
Sorry for late response.  Yes, I cannot load the application.  I get a dialog box when clicking the icon that says...
Unfortunately the app has stopped.
0
 
LVL 35

Accepted Solution

by:
girionis earned 250 total points
ID: 39221560
Do you get anything else on the console? Any stack trace?
0
 

Author Comment

by:Modifier1000
ID: 39229632
I will upload my console info tonight.
0
 

Author Comment

by:Modifier1000
ID: 39231036
Here are screenshots...
logcat.jpg
debug.jpg
0
 

Author Closing Comment

by:Modifier1000
ID: 39238303
I just recreated the project.  I was spending too much time trying to figure out something that I had only spent about 2 days working on in the first place.   Just figured it would be easier to redo.

Thanks anyways.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

803 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