E/Trace﹕ error opening trace file: No such file or directory (2)
Found it! Bug in Google Analytics SDK causes an ANR when using XML for GA global configuration. AKA you can't use this Meta tag:
<!-- Google Analytics Version v4 needs this value for easy tracking -->
<meta-data
android:name="com.google.android.gms.analytics.globalConfigResource"
android:resource="@xml/global_tracker" />
See this amazing answer for more:
https://stackoverflow.com/a/27542483/740474
Android E/Trace(627): error opening trace file: No such file or directory (2)
The error message comes from the systrace code. It indicates that your device doesn't support systrace tracing. You can ignore it.
Source
What cause the error opening trace file: No such file or directory?
I managed to figured out what was the problem on my code and fixed it and now I can be able to recorder the incoming and outgoing calls. The problem was under my RecordSercive class on the recorder part
> //________Test with the Default outputFormat and default
> Encoder________
>
> /* recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
> recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
> recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);*/
>
> //_______End for the Test with the Default outputFortmat and default Encoder________
That is where I got the Message that says unfortunately the you cant record on this device
So I changed my code to this:
> recorder = new MediaRecorder();
> recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_DOWNLINK + MediaRecorder.AudioSource.VOICE_UPLINK);//test using the addition sign
> for both DOWNLINK + UPLINK
> recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
> recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> myFileName = getFilename();
> recorder.setOutputFile(myFileName);
Which worked fine for me, but the sound quality is is a problem, of which I will just have to increase the volume using the
> volume = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
but under the LogCat the on Eclipse when I debug my app, I still get the error opening trace file: No such file or directory (2). Of which I think it might be caused by other reasons of which I'm currently investigating like (Chris Stratton) mentioned.
Android - error opening trace file: No such file or directory(2)
I guess you need the ACCESS_NETWORK_STATE in your manifest.
Android runtime error: error opening trace file: No such file or directory (2)
Do not use System.exit(0)
Quoting Romain Guy from https://groups.google.com/forum/#!topic/android-developers/G_D3pKnGLt0
The user doesn't, the system handles this automatically. That's
what the activity lifecycle (especially onPause/onStop/onDestroy) is
for. No matter what you do, do not put a"quit"
or"exit"
application. It is useless with Android's application model. This is also
contrary to how core applications work.
There is detailed answer about the same @
Is quitting an application frowned upon?
You can also read related threads @
https://groups.google.com/forum/#!topic/android-developers/G_D3pKnGLt0
Related Topics
Android - Java.Lang.Securityexception: Permission Denial: Starting Intent
Connecting to MySQL from Android with Jdbc
Remove Data from Notification Intent
Updating Paging 3 Alpha to Stable Cause Indexing Issue Android
How Did Google Manage to Do This? Slide Actionbar in Android Application
Switching Between Android Navigation Drawer Image and Up Caret When Using Fragments
How to Style an Android Switch
Problems with Android Fragment Back Stack
Android Locationclient Class Is Deprecated But Used in Documentation
Meaning of Choreographer Messages in Logcat
Webview Load Website When Online, Load Local File When Offline
Android Lollipop Change Navigation Bar Color
How to Set Background Color of a View
How to Display Inline Images from HTML in an Android Textview
Asynctask VS Thread in Android