Skip to main content

Recieve Log Trace via mail inside GoogleDrive.

Damn it! You require high level patient while dealing with no tech client and normally clients are non tech.

Anyway! sometimes its happened that you didn't receive any error or problem but client, in that case you are not able to trace what error exactly.

Here I will explain you how to trace log when client face and he/she failed to explain, simply follow below steps:


step1#
Download jar file and integrate in your project.
acra-4.4.0-javadoc.jar


step2#
Generate ReportCrashes Key from your Google Drive.
Open Gmail account>Go to Drive>Upload One .csv file,
  •  While uploading keep conversation option to be on instead off. 
  •  Your csv file look like this CSV file 


Step3#
Open CSV file where you find Tools option within menu.
Click on option>click on create Legacy Form.
It will open new window with appropriate form like below.

It will provide you form key, copied it.

Step4#
Create one java file named "MyApplication" and extends Application like below:

import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;
import android.app.Application;
@ReportsCrashes(formKey = "yourform key",socketTimeout = 25000) public class MyApplication extends Application{
    @Override
    public void onCreate() {
        // TODO Auto-generated method stub
        ACRA.init(this);
        super.onCreate();
    }
}

Step5#
Declare application in your manifest file under application head.

Step6#
Generate one error and Run it.
It will increase the count in your csv file every time when you got error, just like below:
Lastly you can find your trace log inside your csv file under the head of STACK_TRACE.

Good Luck!


Comments

Popular posts from this blog

Getview Method Wierd in Listview

Its common issue in android and most of newbee faced. To understand why its happening, you have to read about behavior of Getview method of listivew, its your home work, let continue with tutorial. Below tutorial will explain that how to maintain the position of button  which is in row file using settag and gettag. main.xml ( its contain listview which will hold row data) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:descendantFocusability="blocksDescendants">  <ListView         android:id="@+id/listView"         android:layout_width="fill_parent"         android:layout_height="fill_parent"/> </LinearLayout> ...

Amazon S3 Configuration

Gradles //amazon s3 compile 'com.amazonaws:aws-android-sdk-core:2.2.+' compile 'com.amazonaws:aws-android-sdk-s3:2.2.+' Declare in manefiest file <!--AMAZON S3--> < service android :name= "com.amazonaws.mobileconnectors.s3.transferutility.TransferService" android :enabled= "true" /> AmazonUtils.java import android.content.Context; import android.net.Uri; import com.amazonaws.auth.CognitoCachingCredentialsProvider; import com.amazonaws.mobileconnectors.s3.transferutility.TransferObserver; import com.amazonaws.mobileconnectors.s3.transferutility.TransferUtility; import com.amazonaws.regions.Regions; import com.amazonaws.services.s3.AmazonS3Client; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.UUID; /* * Handles basic helper functions used throughout the app. */ public class AmazonUtil { // We only n...
Update Progress in notification: public class NetworkService extends IntentService {     public static final String FILE_PATH = "file_path";     public static final String _FILE_PATH = "_path";     public static final String PERCENT_EXTRA = "percent";     public static final String FILE_NAME_EXTRA = "FileName";     public static final String STATE_EXTRA = "state";     public static final String IS_ALBUM_UPLAODING = "IsAlbumUplaoding";     public static final String XML = "xml";     public static final String TOKEN = "token";     public static final String MESSAGE = "mesasge";     public static final String POST_DATE = "postdate";     public static final String USERID = "userid";     public static final String GROUPID = "groupid";     public static final String PATH = "path"; ...