Langsung ke konten utama

[DIY] Using Log On Android ~ DroidUMM

Sometimes to find the error in android using logcat not enough for us to give an error or debugging information we want. Therefore, we can use the Log class to describe the error or debug what we want.
private static final String TAG = "Sending Email";
Code above is used to describe the TAG Error that we use. Suppose that tag to describe the "Sending Email" and you can create a new TAG variable according to your needs


code above is used to describe the TAG Error that we use. Suppose that tag to describe the "Sending Email" and you can create a new TAG variable according to your needs.

Now you add the log information in that class with the following code

Log.i (TAG, "Success");

Log is a class for describing error. "i" is used error in the show. There are some errors that we can describe.

ASSERT
Priority constant for the println method.
DEBUG
Priority constant for the println method; use Log.d.
ERROR
Priority constant for the println method; use Log.e.
INFO
Priority constant for the println method; use Log.i.
VERBOSE
Priority constant for the println method; use Log.v.
WARN
Priority constant for the println method; use Log.w.

Komentar

Postingan populer dari blog ini

WhatsAppSniffer Hack WhatsApp

Who uses WhatsApp Messenger? From The look of the  Play Store listing , a  damn lot  of people. Considering it's so popular, it's probably a pretty secure app, right? Think again. WhatsApp actually sends all chats in  plaintext , so anyone on the same Wi-Fi network can easily pull your entire conversation - including pictures and videos - straight out of the air. And now, that process is even easier than ever thanks to a new app called  WhatsAppSniffer . It's basically just a packet sniffer, but it makes the process of pulling WhatsApp chats out of the sky stupid-easy, and that's never a good thing. You might as well just shout your private conversations across the room.

[Concept] Model View Present (MVP) Pattern for Architecture Android~ DroidUMM

 Model-View-Presenter (MVP) is an architecture pattern for the presentation layer of software applications. The pattern was originally developed at Taligent in 1990s and first was implemented in C++ and Java. In MVP, the View and the Model are neatly separated and the View exposes a contract through which the Presenter access the portion of View that is dependent on the rest of the system.  [Next Article Implement MVP on Android] The Model is the component which preserves data, state and business logic; it just exposes a group of service interfaces to Presenter and hides the internal details. The View is the user interface, it receives user’s action and contract to Presenter to achieve user’s need, and then the View responds user by result information. The Presenter sits in between the View and the Model; it receives input from the View and passes commands down to the Model. It then gets result and updates the View trough the contracted View interface.

[News] Sistem Keamanan Apple dan Android Terancam ~ DroidUMM

Pengguna ponsel pintar dengan sistem operasi iOS dan Android harus lebih waspada. Sebab, satu dari 20 ponsel Apple dan android bisa terinfeksi oleh perangkat lunak berbahaya. Demikian diklaim oleh sebuah perusahaan keamanan.Mickey Boodaei, kepala eksekutif Trusteer mengklaim bahwa “para penipu telah mengambil dua langkah di depan” dan mengangkat kekhawatiran tentang keamanan, khususnya dari sistem operasi Google Android. Penipu tersebut diduga memiliki semua alat yang mereka butuhkan untuk mengubah malware mobile menjadi masalah keamanan terbesar. Diprediksikan, dalam 12 hingga 24 bulan, lebih  dari satu ponsel dalam skala 1 banding 20 atau 5,6 persen dari seluruh ponsel Android dan apple dapat terinfeksi oleh malware mobile jika para penipu mulai mengintegrasikan apa yang disebut sebagai kerentanan ‘ zero day’ (ancaman yang belum diantisipasi) dalam serangan mereka.