Skip to content
Windows Tricks
  • Windows11
  • Windows10
  • iPhone
  • Python
    • Python Basic
    • Python Classes and Objects
    • Python File Operation (I/O)
    • Python Flow Control
    • Python Functions and Lambda Expressions
    • Python List, Tuple, Dict, Set
    • Python Modules and Packages
    • Python String
    • Python Special Attributes and Methods
    • Python Variable Types and Operators
    • Anaconda
    • PyCharm
  • Matplotlib
  • Pandas
  • Windows
  • Oracle VirtualBox
  • Scratch
  • Contact
  • Privacy Policy
  • Home
  • Page 85

How To Start Android Service Automatically At Boot Time

5 Comments / Android Tutorial / Android Broadcast, Android Service

To start an android background service when the device boots, you should create a broadcast receiver, and make it listen to android.intent.action.BOOT_COMPLETED action. Then in the custom broadcast receiver’s onReceive method, you can start the background service.

How To Start Android Service Automatically At Boot Time Read More »

Android One Time / Repeat Alarm Example

Leave a Comment / Android Tutorial

The android alarm is an OS built-in service. It provides timer liked functions. With the android alarm manager, you can create one-time alarms, repeated alarms, and so on. This article will tell you how to use it with examples.

Android One Time / Repeat Alarm Example Read More »

Android Play Audio File In Background Service Example

6 Comments / Android Tutorial / Android Service

This article will show you how to communicate between activity and background service in android. It will play, pause and stop a web audio file in the android background service in this example. It will also update the activity progress bar from the background service to display the audio playing process.

Android Play Audio File In Background Service Example Read More »

Android Enable / Disable Button By EditText Text Length

Leave a Comment / Android Tutorial

In some android app, button will be enabled only when user input enough characters in EditText, for example user account register app. There are two methods to archive this. Use android.text.TextWatcher or listen android.view.KeyEvent event. This example will tell you how to implement this.

Android Enable / Disable Button By EditText Text Length Read More »

Android Play Local / URL Audio With ProgressBar Example

Leave a Comment / Android Tutorial

This article will show you how to play audio files from local files or web URL files in android programmatically. It also shows how to display audio playing progress in a progress bar.

Android Play Local / URL Audio With ProgressBar Example Read More »

Android Pick Multiple Image From Gallery Example

2 Comments / Android Tutorial / Android Content Provider

This example contains two buttons and one image view. When user click the first button, it will popup file browser which let user choose image. The image will be displayed in the image view.

Android Pick Multiple Image From Gallery Example Read More »

How To Use Android FileProvider To Share Files Between Apps

1 Comment / Android Tutorial / Android Content Provider

Android FileProvider is a sub class of ContentProvider. It is used to share files between different android apps. It is implemented in android v4 Support Library. So before use it please make sure that you have include supported library in android project build.gradle file as below.

How To Use Android FileProvider To Share Files Between Apps Read More »

How To Open Camera In Android Programmatically Using Intent

4 Comments / Android Tutorial / Android Content Provider

This article will show you an example of how to use intent to invoke an android camera programmatically to take and save pictures. It will also tell you how to display those pictures one by one when the user clicks one picture.

How To Open Camera In Android Programmatically Using Intent Read More »

How To Invoke Custom Content Provider In Other Apps Examples

Leave a Comment / Android Tutorial / Android Content Provider

From the previous article, you have learned how to implement an android custom content provider with examples. This article will show you how to call it’s methods to insert, update, delete and query data from it.

How To Invoke Custom Content Provider In Other Apps Examples Read More »

How To Add Contact In Android Programmatically

Leave a Comment / Android Tutorial / Android Content Provider

This article will give you an example of how to create android contact programmatically and how to insert each android contact field into the contact data table. When clicking the add contact button, it will generate one contact and insert it into android contact tables.

How To Add Contact In Android Programmatically Read More »

Post pagination
← Previous 1 … 84 85 86 … 93 Next →

Search The Blog With Google

Copyright © 2025 Windows Tricks | Powered by Astra WordPress Theme