Solved

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

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

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now