Solved

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

Posted on 2013-05-21
8
4,927 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
[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
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
These days software publishers make it possible to move all the possible applications on smartphones, tablets, smartwatches, and more. Although behind every logic and decision is a gross doubt: how do they make it possible? In this blog post, we sha…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Suggested Courses

739 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