Android source code download: Android-like Tiantian Dongting player

Android source code download: Android-like Tiantian Dongting player

Functional classification: Entertainment

Supported platforms: Android

Operating environment: Android

Development language: Java

Development tool: Eclipse

Source code size: 1.94MB

Source code download address: http://down..com/data/1977581

Source code introduction

It mainly imitates listening to music every day. You can get lyrics and celebrity photos online, and change songs by shaking!

Source code running screenshot

Start the home page

All songs

User Center

set up

Source code snippet

  1. import java.io.File;
  2.   
  3. import com.ldw.music.service.ServiceManager;
  4.   
  5. import android.app.Application;
  6. import android.os.Environment;
  7.   
  8. public   class MusicApp extends Application {
  9.       
  10. public   static   boolean mIsSleepClockSetting = false ;
  11. public   static ServiceManager mServiceManager = null ;
  12. private   static String rootPath = "/mymusic" ;
  13. public   static String lrcPath = "/lrc" ;
  14.       
  15. @Override  
  16. public   void onCreate() {
  17. super .onCreate();
  18.           
  19. mServiceManager = new ServiceManager( this );
  20. initPath();
  21. }
  22.       
  23. private   void initPath() {
  24. String ROOT = "" ;
  25. if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
  26. ROOT = Environment.getExternalStorageDirectory().getPath();
  27. }
  28. rootPath = ROOT + rootPath;
  29. lrcPath = rootPath + lrcPath;
  30. File lrcFile = new File(lrcPath);
  31. if (lrcFile.exists()) {
  32. lrcFile.mkdirs();
  33. }
  34. }
  35. }

Source code download address: http://down..com/data/1977581

<<:  Tetris source code

>>:  Android source code: Custom date and time control (SelectTime)

Recommend

Mid-Autumn Festival Special: I want to go home and see ____!

Traveling across the world See the vast world But...

Is the heart shaped like a heart? No, it's shaped like a noodle.

The heart shape has always been a symbol of love ...

Apple Watch Sport disassembly: Component cost is 500 RMB

Market research firm IHS iSuppli released a disas...

Corn's origins have been updated: It turns out it has two "ancestors"

The food crops we eat all have their wild origins...

How to make an offline event promotion and operation plan?

This article is not only suitable for online even...

Is it a pitfall for brands to build private communities?

In 2020, the emergence of cases such as Perfect D...

EK releases Intel 750 hard drive water cooling head

HDD mechanical hard disks use high-speed motors, ...

How to avoid lightning correctly?

Where is it easy to be struck by lightning? How t...

National down jacket warning! Wear thicker clothes

From November 19 to 22, a new wave of cold air wi...

APP operation strategy: some tips for developers to retain users

According to Master Chan's analysis of the &q...

How much does it cost to customize an animation mini program in Chizhou?

The mini program provides convenience for publici...