[android-developers] Re: Firebase crash report reset

2016-11-20 Thread Chairi Kiourt
???

On Saturday, November 19, 2016 at 4:15:39 PM UTC+2, Chairi Kiourt wrote:
>
> any idea ??
>
>
>
> On Friday, November 18, 2016 at 8:05:23 PM UTC+2, Chairi Kiourt wrote:
>>
>> Hi every one,
>>
>> Is there any way to reset an app in firebase crash report, i mean to 
>> delete  all reports and to start new session.
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f6c3cfd9-fb63-4b7e-ae68-25575908c558%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] firebase, crash report, identification of the tablet from multiple same tablets

2016-11-20 Thread Chairi Kiourt
Hi everyone

Some day ago i used the firebase crash report, to find out the crashes of 
my app installed in tablet devices.
Now i get the reports, but i dont know from which exactly tablet i get the 
error, Fire base gives the model of the tablet and some additional 
information for it.
But, in my case i have 5 same tablets that uses my app with the crash 
report, how i can identify from which tablet i get the error?

Any ideas?

Thank in advance
 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d8a2beed-3c18-44f1-b67d-2c29934983e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Firebase crash report reset

2016-11-19 Thread Chairi Kiourt
any idea ??



On Friday, November 18, 2016 at 8:05:23 PM UTC+2, Chairi Kiourt wrote:
>
> Hi every one,
>
> Is there any way to reset an app in firebase crash report, i mean to 
> delete  all reports and to start new session.
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a6a14cb9-5193-4156-8251-140756da14e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Firebase crash report reset

2016-11-18 Thread Chairi Kiourt
Hi every one,

Is there any way to reset an app in firebase crash report, i mean to delete 
 all reports and to start new session.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/777276bf-afda-4a6d-bb3c-aa1864674380%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] disable autostart app after crash

2016-11-18 Thread Chairi Kiourt
Hi,

I have an app that auto restarts after a crash, is there any way to disable 
this.I mean not to start automatically after the crash.

Thank you in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a4a50917-772f-428a-9c33-3c4db533249b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: ImageLoader error and crashes the application

2016-11-17 Thread Chairi Kiourt
Dear Sardar, first of thank you for your answer.
Is it easy for you explain me what I have to do or give me a code example based 
on my code, because I am not so familiar with java android code.

Thank you again

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a5733075-0d56-40fd-aec0-50a922a2ca35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: ImageLoader error and crashes the application

2016-11-16 Thread Chairi Kiourt
Any help please???




On Tuesday, November 15, 2016 at 7:04:11 PM UTC+2, Chairi Kiourt wrote:
>
> Hi everyone i am new to android
>
> I have an app which gets data from a mysql by using php. The problem is 
> that the application crashes some times unexpectivly, i put the firebase 
> crash report and i get the following errors:
>
> Exception java.lang.IllegalStateException: ImageLoader must be init with 
> configuration before using
> com.nostra13.universalimageloader.core.ImageLoader.checkConfiguration (
> ImageLoader.java:568)
> com.nostra13.universalimageloader.core.ImageLoader.displayImage (
> ImageLoader.java:208)
> com.nostra13.universalimageloader.core.ImageLoader.displayImage (
> ImageLoader.java:365)
> com.nostra13.universalimageloader.core.ImageLoader.displayImage (
> ImageLoader.java:340)
> forme.restaurant.digital.menu.view.ImageUtil.displayRoundImage (ImageUtil.
> java:29)
> forme.restaurant.digital.menu.activities.RecycleViewAdapterNew.onBindViewHolder
>  
> (RecycleViewAdapterNew.java:108)
> forme.restaurant.digital.menu.activities.RecycleViewAdapterNew.onBindViewHolder
>  
> (RecycleViewAdapterNew.java:36)
> android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (
> RecyclerView.java:5138)
> android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (
> RecyclerView.java:4433)
> android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (
> RecyclerView.java:4326)
> android.support.v7.widget.LinearLayoutManager$LayoutState.next (
> LinearLayoutManager.java:1955)
> android.support.v7.widget.LinearLayoutManager.layoutChunk (
> LinearLayoutManager.java:1364)
> android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.
> java:1327)
> android.support.v7.widget.LinearLayoutManager.onLayoutChildren (
> LinearLayoutManager.java:556)
> android.support.v7.widget.RecyclerView.dispatchLayout (RecyclerView.java:
> 2713)
> android.support.v7.widget.RecyclerView.onLayout (RecyclerView.java:3011)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.widget.LinearLayout.setChildFrame (LinearLayout.java:1959)
> android.widget.LinearLayout.layoutVertical (LinearLayout.java:1813)
> android.widget.LinearLayout.onLayout (LinearLayout.java:1722)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.widget.FrameLayout.layoutChildren (FrameLayout.java:633)
> android.widget.FrameLayout.onLayout (FrameLayout.java:568)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.support.v7.internal.widget.ActionBarOverlayLayout.onLayout (
> ActionBarOverlayLayout.java:493)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.widget.FrameLayout.layoutChildren (FrameLayout.java:633)
> android.widget.FrameLayout.onLayout (FrameLayout.java:568)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.widget.LinearLayout.setChildFrame (LinearLayout.java:1959)
> android.widget.LinearLayout.layoutVertical (LinearLayout.java:1813)
> android.widget.LinearLayout.onLayout (LinearLayout.java:1722)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.widget.FrameLayout.layoutChildren (FrameLayout.java:633)
> android.widget.FrameLayout.onLayout (FrameLayout.java:568)
> android.view.View.layout (View.java:15905)
> android.view.ViewGroup.layout (ViewGroup.java:5108)
> android.view.ViewRootImpl.performLayout (ViewRootImpl.java:2425)
> android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2131)
> android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1256)
> android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6443)
> android.view.Choreographer$CallbackRecord.run (Choreographer.java:800)
> android.view.Choreographer.doCallbacks (Choreographer.java:603)
> android.view.Choreographer.doFrame (Choreographer.java:572)
> android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.
> java:786)
> android.os.Handler.handleCallback (Handler.java:815)
> android.os.Handler.dispatchMessage (Handler.java:104)
> android.os.Looper.loop (Looper.java:194)
> android.app.ActivityThread.main (ActivityThread.java:5576)
> java.lang.reflect.Method.invoke (Method.java)
> java.lang.reflect.Method.invoke (Method.java:372)
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.
> java:955)
> com.android.internal.os.ZygoteInit.main (ZygoteInit.java:750)
>
> I have these code
>
>
> CusDi.java
> public class CusDi extends AppCompatActivity {
>
> protected void onCrea

Re: [android-developers] How to keep crash report of android app

2016-11-08 Thread Chairi Kiourt
OK, thank you for your help Steve Gabrilowitz, i will try it as soon as 
possible, but some minutes ago i tried the FIREBASE with a demo and it is 
superb.

I would like to thank both of you *Steve Gabrilowitz* and *sardar khan *for 
you help

Soon i will inform you for my bugs, if i catch them.

Thank you again

On Tuesday, November 8, 2016 at 11:24:16 PM UTC+2, Steve Gabrilowitz wrote:
>
> that's not what my logevent does,  I have it set up with sharedpreference 
> so I can easily display it in a window in the app.  I gave you the 
> pertinent code to capture the information you need, again what you choose 
> to do with it depends on the rest of your app!
>
> On Nov 8, 2016 2:09 PM, "Chairi Kiourt" <cha...@gmail.com > 
> wrote:
>
>> Is it easy for you to provide my the LogEvent code, that stores every 
>> crash within a new file, which name is the that time date and time ??
>>
>>
>> X.
>>
>> On Tuesday, November 8, 2016 at 8:49:51 PM UTC+2, Steve Gabrilowitz wrote:
>>>
>>> I didn't include the LogEvent implementation on purpose, once you have 
>>> the string you can do whatever you like with it, perhaps keep an ErrorLog 
>>> table in your database?
>>>
>>> On Nov 8, 2016 1:32 PM, "Chairi Kiourt" <cha...@gmail.com> wrote:
>>> >
>>> > Thank you for your answer Steve Gabrilowitz, like i notice this code 
>>> creates a string with the error, but i didnt understand if stores the 
>>> string into a file, if it stores the error into a file, where i can find 
>>> the file ??? and does any error is stored into a new file ??? which means 
>>> that i will have several error files for several crashes ???
>>> >
>>> >
>>> > Thank you again
>>> >
>>> >  
>>> >
>>> > On Tuesday, November 8, 2016 at 7:53:04 PM UTC+2, Steve Gabrilowitz 
>>> wrote:
>>> >>
>>> >> Try something like this:
>>> >>
>>> >> package com.gabriloware.teslalib;
>>> >>
>>> >> import java.io.PrintWriter;
>>> >> import java.io.StringWriter;
>>> >>
>>> >> import android.content.Context;
>>> >> import android.content.Intent;
>>> >> import android.os.Build;
>>> >>
>>> >> public class ExceptionHandler implements
>>> >>  Thread.UncaughtExceptionHandler {
>>> >>  private final Context myContext;
>>> >>  private final String LINE_SEPARATOR = "\n";
>>> >>
>>> >>  private Tesla MyTesla=null;
>>> >>
>>> >>  public ExceptionHandler(Context context) {
>>> >>  myContext = context;
>>> >>  }
>>> >>
>>> >>  public void uncaughtException(Thread thread, Throwable exception) {
>>> >>  StringWriter stackTrace = new StringWriter();
>>> >>  exception.printStackTrace(new PrintWriter(stackTrace));
>>> >>  StringBuilder errorReport = new StringBuilder();
>>> >>  errorReport.append(" CAUSE OF ERROR \n\n");
>>> >>  errorReport.append(stackTrace.toString());
>>> >>
>>> >> /*
>>> >>  errorReport.append("\n DEVICE INFORMATION 
>>> ***\n");
>>> >>  errorReport.append("Brand: ");
>>> >>  errorReport.append(Build.BRAND);
>>> >>  errorReport.append(LINE_SEPARATOR);
>>> >>  errorReport.append("Device: ");
>>> >>  errorReport.append(Build.DEVICE);
>>> >>  errorReport.append(LINE_SEPARATOR);
>>> >>  errorReport.append("Model: ");
>>> >>  errorReport.append(Build.MODEL);
>>> >>  errorReport.append(LINE_SEPARATOR);
>>> >>  errorReport.append("Id: ");
>>> >>  errorReport.append(Build.ID);
>>> >>  errorReport.append(LINE_SEPARATOR);
>>> >>  errorReport.append("Product: ");
>>> >>  errorReport.append(Build.PRODUCT);
>>> >>  errorReport.append(LINE_SEPARATOR);
>>> >>  errorReport.append("\n FIRMWARE \n");
>>> >>  errorReport.append("SDK: ");
>>> >>  errorReport.append(Build.VERSION.SDK);
>>> >>  errorReport.append(LINE_SEPARATOR);
>>> >>  errorReport.append("Release: ");
>>> >>  errorReport.append(Build.VERSION.RELEA

Re: [android-developers] How to keep crash report of android app

2016-11-08 Thread Chairi Kiourt
If i include firebase in my project and i use the firebase crash report 
system does my app will increase its size and will be more slow ???

Thank you again. 

On Tuesday, November 8, 2016 at 8:51:13 PM UTC+2, sardar khan wrote:
>
> https://firebase.google.com/docs/crash/android
> you can use this,,
>
> On Tue, Nov 8, 2016 at 11:32 PM, Chairi Kiourt <cha...@gmail.com 
> > wrote:
>
>> Thank you for your answer Steve Gabrilowitz, like i notice this code 
>> creates a string with the error, but i didnt understand if stores the 
>> string into a file, if it stores the error into a file, where i can find 
>> the file ??? and does any error is stored into a new file ??? which means 
>> that i will have several error files for several crashes ???
>>
>>
>> Thank you again
>>
>>  
>>
>> On Tuesday, November 8, 2016 at 7:53:04 PM UTC+2, Steve Gabrilowitz wrote:
>>>
>>> Try something like this:
>>>
>>> package com.gabriloware.teslalib;
>>>
>>> import java.io.PrintWriter;
>>> import java.io.StringWriter;
>>>
>>> import android.content.Context;
>>> import android.content.Intent;
>>> import android.os.Build;
>>>
>>> public class ExceptionHandler implements
>>>   Thread.UncaughtExceptionHandler {
>>>private final Context myContext;
>>>private final String LINE_SEPARATOR = "\n";
>>>
>>> private Tesla MyTesla=null;
>>>
>>>public ExceptionHandler(Context context) {
>>>   myContext = context;
>>>}
>>>
>>>public void uncaughtException(Thread thread, Throwable exception) {
>>>   StringWriter stackTrace = new StringWriter();
>>>   exception.printStackTrace(new PrintWriter(stackTrace));
>>>   StringBuilder errorReport = new StringBuilder();
>>>   errorReport.append(" CAUSE OF ERROR \n\n");
>>>   errorReport.append(stackTrace.toString());
>>>
>>> /*
>>>   errorReport.append("\n DEVICE INFORMATION ***\n");
>>>   errorReport.append("Brand: ");
>>>   errorReport.append(Build.BRAND);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("Device: ");
>>>   errorReport.append(Build.DEVICE);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("Model: ");
>>>   errorReport.append(Build.MODEL);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("Id: ");
>>>   errorReport.append(Build.ID);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("Product: ");
>>>   errorReport.append(Build.PRODUCT);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("\n FIRMWARE \n");
>>>   errorReport.append("SDK: ");
>>>   errorReport.append(Build.VERSION.SDK);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("Release: ");
>>>   errorReport.append(Build.VERSION.RELEASE);
>>>   errorReport.append(LINE_SEPARATOR);
>>>   errorReport.append("Incremental: ");
>>>   errorReport.append(Build.VERSION.INCREMENTAL);
>>>   errorReport.append(LINE_SEPARATOR);
>>>
>>> */
>>> if (MyTesla==null)
>>> MyTesla = new Tesla(myContext);
>>>     MyTesla.LogEvent("EXCEPTION",errorReport.toString());
>>>
>>> Intent intent = new Intent(myContext, CrashActivity.class);
>>> intent.putExtra("error", errorReport.toString());
>>> myContext.startActivity(intent);
>>>
>>>
>>> android.os.Process.killProcess(android.os.Process.myPid());
>>> System.exit(10);
>>>
>>>}
>>>
>>> }
>>>
>>>
>>>
>>> public class TeslaApplication extends Application {
>>>
>>> public  LogFragment Logger=null;
>>>
>>> @Override
>>> public void onCreate() {
>>> super.onCreate();
>>> Thread.setDefaultUncaughtExceptionHandler(new 
>>> ExceptionHandler(this));
>>> new Tesla(this).Init2();
>>>
>>>
>>> }
>>>
>>> ...
>>>
>>>
>>>

Re: [android-developers] How to keep crash report of android app

2016-11-08 Thread Chairi Kiourt
Is it easy for you to provide my the LogEvent code, that stores every crash 
within a new file, which name is the that time date and time ??


X.

On Tuesday, November 8, 2016 at 8:49:51 PM UTC+2, Steve Gabrilowitz wrote:
>
> I didn't include the LogEvent implementation on purpose, once you have the 
> string you can do whatever you like with it, perhaps keep an ErrorLog table 
> in your database?
>
> On Nov 8, 2016 1:32 PM, "Chairi Kiourt" <cha...@gmail.com > 
> wrote:
> >
> > Thank you for your answer Steve Gabrilowitz, like i notice this code 
> creates a string with the error, but i didnt understand if stores the 
> string into a file, if it stores the error into a file, where i can find 
> the file ??? and does any error is stored into a new file ??? which means 
> that i will have several error files for several crashes ???
> >
> >
> > Thank you again
> >
> >  
> >
> > On Tuesday, November 8, 2016 at 7:53:04 PM UTC+2, Steve Gabrilowitz 
> wrote:
> >>
> >> Try something like this:
> >>
> >> package com.gabriloware.teslalib;
> >>
> >> import java.io.PrintWriter;
> >> import java.io.StringWriter;
> >>
> >> import android.content.Context;
> >> import android.content.Intent;
> >> import android.os.Build;
> >>
> >> public class ExceptionHandler implements
> >>  Thread.UncaughtExceptionHandler {
> >>  private final Context myContext;
> >>  private final String LINE_SEPARATOR = "\n";
> >>
> >>  private Tesla MyTesla=null;
> >>
> >>  public ExceptionHandler(Context context) {
> >>  myContext = context;
> >>  }
> >>
> >>  public void uncaughtException(Thread thread, Throwable exception) {
> >>  StringWriter stackTrace = new StringWriter();
> >>  exception.printStackTrace(new PrintWriter(stackTrace));
> >>  StringBuilder errorReport = new StringBuilder();
> >>  errorReport.append(" CAUSE OF ERROR \n\n");
> >>  errorReport.append(stackTrace.toString());
> >>
> >> /*
> >>  errorReport.append("\n DEVICE INFORMATION ***\n");
> >>  errorReport.append("Brand: ");
> >>  errorReport.append(Build.BRAND);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("Device: ");
> >>  errorReport.append(Build.DEVICE);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("Model: ");
> >>  errorReport.append(Build.MODEL);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("Id: ");
> >>  errorReport.append(Build.ID);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("Product: ");
> >>  errorReport.append(Build.PRODUCT);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("\n FIRMWARE \n");
> >>  errorReport.append("SDK: ");
> >>  errorReport.append(Build.VERSION.SDK);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("Release: ");
> >>  errorReport.append(Build.VERSION.RELEASE);
> >>  errorReport.append(LINE_SEPARATOR);
> >>  errorReport.append("Incremental: ");
> >>  errorReport.append(Build.VERSION.INCREMENTAL);
> >>  errorReport.append(LINE_SEPARATOR);
> >>
> >> */
> >>  if (MyTesla==null)
> >>  MyTesla = new Tesla(myContext);
> >>  MyTesla.LogEvent("EXCEPTION",errorReport.toString());
> >>
> >>  Intent intent = new Intent(myContext, CrashActivity.class);
> >>  intent.putExtra("error", errorReport.toString());
> >>  myContext.startActivity(intent);
> >>
> >>
> >>  android.os.Process.killProcess(android.os.Process.myPid());
> >>  System.exit(10);
> >>
> >>  }
> >>
> >> }
> >>
> >>
> >>
> >> public class TeslaApplication extends Application {
> >>
> >>  public LogFragment Logger=null;
> >>
> >>  @Override
> >>  public void onCreate() {
> >>  super.onCreate();
> >>  Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
> >>  new Tesla(this).Init2();
> >>
> >>
> >>  }
> >>
> >> ...
> >>
> >>
> >> On Tue, Nov 8, 2016 at 12:01 PM, Chairi Kiourt <cha...@gmail.com> 
> wrote:
>

Re: [android-developers] How to keep crash report of android app

2016-11-08 Thread Chairi Kiourt
Thank you for your answer Steve Gabrilowitz, like i notice this code 
creates a string with the error, but i didnt understand if stores the 
string into a file, if it stores the error into a file, where i can find 
the file ??? and does any error is stored into a new file ??? which means 
that i will have several error files for several crashes ???


Thank you again

 

On Tuesday, November 8, 2016 at 7:53:04 PM UTC+2, Steve Gabrilowitz wrote:
>
> Try something like this:
>
> package com.gabriloware.teslalib;
>
> import java.io.PrintWriter;
> import java.io.StringWriter;
>
> import android.content.Context;
> import android.content.Intent;
> import android.os.Build;
>
> public class ExceptionHandler implements
>   Thread.UncaughtExceptionHandler {
>private final Context myContext;
>private final String LINE_SEPARATOR = "\n";
>
> private Tesla MyTesla=null;
>
>public ExceptionHandler(Context context) {
>   myContext = context;
>}
>
>public void uncaughtException(Thread thread, Throwable exception) {
>   StringWriter stackTrace = new StringWriter();
>   exception.printStackTrace(new PrintWriter(stackTrace));
>   StringBuilder errorReport = new StringBuilder();
>   errorReport.append(" CAUSE OF ERROR \n\n");
>   errorReport.append(stackTrace.toString());
>
> /*
>   errorReport.append("\n DEVICE INFORMATION ***\n");
>   errorReport.append("Brand: ");
>   errorReport.append(Build.BRAND);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("Device: ");
>   errorReport.append(Build.DEVICE);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("Model: ");
>   errorReport.append(Build.MODEL);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("Id: ");
>   errorReport.append(Build.ID);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("Product: ");
>   errorReport.append(Build.PRODUCT);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("\n FIRMWARE \n");
>   errorReport.append("SDK: ");
>   errorReport.append(Build.VERSION.SDK);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("Release: ");
>   errorReport.append(Build.VERSION.RELEASE);
>   errorReport.append(LINE_SEPARATOR);
>   errorReport.append("Incremental: ");
>   errorReport.append(Build.VERSION.INCREMENTAL);
>   errorReport.append(LINE_SEPARATOR);
>
> */
> if (MyTesla==null)
> MyTesla = new Tesla(myContext);
> MyTesla.LogEvent("EXCEPTION",errorReport.toString());
>
> Intent intent = new Intent(myContext, CrashActivity.class);
> intent.putExtra("error", errorReport.toString());
> myContext.startActivity(intent);
>
>
> android.os.Process.killProcess(android.os.Process.myPid());
> System.exit(10);
>
>}
>
> }
>
>
>
> public class TeslaApplication extends Application {
>
> public  LogFragment Logger=null;
>
> @Override
> public void onCreate() {
> super.onCreate();
> Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
> new Tesla(this).Init2();
>
>
> }
>
> ...
>
>
> On Tue, Nov 8, 2016 at 12:01 PM, Chairi Kiourt <cha...@gmail.com 
> > wrote:
>
>> Hi everyone,
>>
>> I am new on developing android app and i have a problem.
>>
>> I have developed and app for restaurant order in android studio, which 
>> communicates wit an Apache server to get the dishes, dish categories, 
>> available tables, receipts and etc.
>> I use php to get the data from the mysql and to store data from the 
>> tablet (Android 5, Lenovo TAB 3 710F 7" ESSENTIAL).
>> For me everything worked ok, in the emulator as well as in the tabet.
>>
>> I gave this app to an restaurant and they tell me that the app crashes 
>> some time, without giving any error notification, it say just that the app 
>> crashed and will restart.
>> All the system works offline, without internet, just a local network.
>>
>> Now he question is, is there any way to keep somehow crash report in the 
>> tablet and in the end after some day to get them ?
>> I find out that in logcat i can get the crash report if i get it exactly 
>> after the crash, the problem is that i cannot be there to get the logcat 
>> file in that moment.
>>
>>

Re: [android-developers] How to keep crash report of android app

2016-11-08 Thread Chairi Kiourt
Thank you for your answer sardar khan, but like i noticed Firebase is 
something like an sdk, which i dont know to use, is there any 
example/tutorial about the crash report issues that i have ???

On Tuesday, November 8, 2016 at 7:52:50 PM UTC+2, sardar khan wrote:
>
> See FireBase Integration in android.
>
> On Tue, Nov 8, 2016 at 10:01 PM, Chairi Kiourt <cha...@gmail.com 
> > wrote:
>
>> Hi everyone,
>>
>> I am new on developing android app and i have a problem.
>>
>> I have developed and app for restaurant order in android studio, which 
>> communicates wit an Apache server to get the dishes, dish categories, 
>> available tables, receipts and etc.
>> I use php to get the data from the mysql and to store data from the 
>> tablet (Android 5, Lenovo TAB 3 710F 7" ESSENTIAL).
>> For me everything worked ok, in the emulator as well as in the tabet.
>>
>> I gave this app to an restaurant and they tell me that the app crashes 
>> some time, without giving any error notification, it say just that the app 
>> crashed and will restart.
>> All the system works offline, without internet, just a local network.
>>
>> Now he question is, is there any way to keep somehow crash report in the 
>> tablet and in the end after some day to get them ?
>> I find out that in logcat i can get the crash report if i get it exactly 
>> after the crash, the problem is that i cannot be there to get the logcat 
>> file in that moment.
>>
>> Please any help
>>
>>
>> Thank you in advance 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> To post to this group, send email to android-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/1764d4ab-7c54-48d8-95a3-40faab692b12%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/1764d4ab-7c54-48d8-95a3-40faab692b12%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/87c11eae-2d28-4b5d-b774-127274757618%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to keep crash report of android app

2016-11-08 Thread Chairi Kiourt
Hi everyone,

I am new on developing android app and i have a problem.

I have developed and app for restaurant order in android studio, which 
communicates wit an Apache server to get the dishes, dish categories, 
available tables, receipts and etc.
I use php to get the data from the mysql and to store data from the tablet 
(Android 5, Lenovo TAB 3 710F 7" ESSENTIAL).
For me everything worked ok, in the emulator as well as in the tabet.

I gave this app to an restaurant and they tell me that the app crashes some 
time, without giving any error notification, it say just that the app 
crashed and will restart.
All the system works offline, without internet, just a local network.

Now he question is, is there any way to keep somehow crash report in the 
tablet and in the end after some day to get them ?
I find out that in logcat i can get the crash report if i get it exactly 
after the crash, the problem is that i cannot be there to get the logcat 
file in that moment.

Please any help


Thank you in advance 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1764d4ab-7c54-48d8-95a3-40faab692b12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.