Solved

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

Posted on 2013-05-21
8
4,885 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
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.

 

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Unhandled exception type Exception 18 42
ejb stateless example 2 27
Java: anonymous class 4 29
Need Help! Getting a syntax error and don't understand why 3 31
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
If your app took Google’s lash recently, here are the 5 most likely reasons.
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.
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…

830 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