how to print texts from android

Want to know how to print texts from android? we have a huge selection of how to print texts from android information on alibabacloud.com

Print the C-language log on the Android platform

Print the C-language log on the Android platform1. Operating Platform: AS2.02. The steps are as follows:Add the following code to the C code:#define Log_tag "My C-language log:"#define logd (...) __android_log_print (android_log_debug,log_tag,__va_args__)# Define logi (...) __android_log_print (android_log_info,log_tag,__va_args__)#define LOGE (...) __ Android_log_print (android_log_error,log_tag,__va_args_

Share an Android sorting print, and Logging tool

999,999 for millisecondsValue */private static final String Time_sytle = "Yyyy-mm-dd HH:mm:ss SSS"; private static final String Time_sytle_short = "dd Day HH:mm:ss SSS"; /** format string */private static final SimpleDateFormat formate = new SimpleDateFormat (time_sytle); private static final SimpleDateFormat Formateshort = new SimpleDateFormat (time_sytle_short); private static String Errorpath = Error_path; private static String LogPath = Log_path; private static Str

Use Logcat to print information in Android

Set Eclipse 1. Window> Customize Perspective 2. Select the Shortcuts label 3. Select Show View in Submenus. 4. Select Android in Shortcut Categories 5. Check LogCat on the right side and click OK. 6. Window> Show View> LogCat to open the LogCat View 7. LogCat appears after the Console 8. Set the green plus sign next to the Logcat filter point and enter a Tag to print only the requi

Total Pages: 2 1 2 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.