Android: Difference between revisions

imported>Jmarmstrong1207
No edit summary
imported>Jmarmstrong1207
No edit summary
Line 1: Line 1:
== Using the Android SDK and Creating Emulators with Nix ==
== Using the Android SDK==
NixOS uses the androidenv package for building android SDKs and manually creating emulators without the use of Android Studio.  
NixOS uses the androidenv package for building android SDKs and manually creating emulators without the use of Android Studio. Example android sdk is <code>androidenv.androidPkgs_9_0.androidsdk</code>. They also include all of the SDK tools such as sdkmanager and avdmanager needed to create emulators.
 
The first link provides a guide for creating a custom android SDK, using a predefined SDK, and how to nixify an emulator. The second link is an extra guide that might have some helpful tips for improving your workflow.  


The first link provides a guide for creating a custom android SDK, using a predefined SDK, and how to manually create an emulator. The second link is an extra guide that might have some helpful tips for improving your workflow.


# [https://nixos.org/manual/nixpkgs/unstable/#android Official Android SDK guide from NixOS.org]  
# [https://nixos.org/manual/nixpkgs/unstable/#android Official Android SDK guide from NixOS.org]  
# [https://sandervanderburg.blogspot.de/2014/02/reproducing-android-app-deployments-or.html  Reproducing Android app deployments]
# [https://sandervanderburg.blogspot.de/2014/02/reproducing-android-app-deployments-or.html  Reproducing Android app deployments]


== Emulators without Nix ==
When creating emulators with Nix's emulateApp function as mentioned in the first link, your IDE should now be able to recognize the emulator and run your code within it.
 
== Creating emulators without Nix ==
If you don't want to nixify your emulators, you can use Android Studio and set up emulators there like a regular system.
If you don't want to nixify your emulators, you can use Android Studio and set up emulators there like a regular system.
Using sdkmanager and avdmanager from the Android SDK may not work given how Nix stores its files.


== adb setup ==
== adb setup ==