One Plus Google Play

Install Google Play Store at One Plus Ace2

Today, I buy a new phone One Plus ACE 2. It’s a good phone and it contains GMS which can be enabled from settings. But it did not give you a google play store, which I really need to install some paid apps. So here is how you can install one. Enable GMS From Settings Open your settings app, search google. Click the first result Google Mobile Services. Enable Google Mobile Services....

March 15, 2023 · Aimer Neige

Dark Mode on Android

In this example, I am using Material Design. But you can also use the Theme.AppCompat.DayNight. This is a simple way to adapt a dark mode, if you wants more, check for GitHub or Internet. Change the style First you should use the DayNight style by Google. <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> If you want to let things easily, that’s enough. But you can also provide more adaptation. Adapt colors Make a new folder at project/app/src/main/res/values-night then make a new resource file colors....

September 5, 2020 · Aimer Neige

Android Develop Data Save

Change Package Name Quickly Sometimes, we may need to change the package name of our Android Project. Maybe the package is not suitable or we get a better package name. But that’s doesn’t matter, we just need to change it. So, how we can change a package name? Here are the solution. Open your Android Project at Android Studio. Go to the Androidmanifest.xml. Find your package name. For example com.aimerneige.test.example. Click the part you want to change, like test....

August 18, 2020 · Aimer Neige

Android Develop Data Save

Save data to file save data // This function will save the data of inputText into file "data" as text file // The file "data" will be saved to /data/data/com.aimerneige.example/files/data fun save(inputText: String) { try { // "data" is the name of the file you saved on phone storage // You can change it as you want val output = openFileOutput("data", Context.MODE_PRIVATE) val writer = BufferedWriter(OutputStreamWriter(output)) writer.use { it.write(inputText) } } catch (e: IOException) { e....

August 10, 2020 · Aimer Neige