Android studio start project without emulator - java

#English isn't my first language.
So many questions..
Can I launch my project without emulator on android studio? Something like in libgdx?
Or how I can change emulator? (need low requirements)

You can set up your phone in order to display the app you are developing withoup needing the android emulator itself. You must enlable developer options and maybe install some drivers. Check this links:
https://developer.android.com/studio/debug/dev-options?hl=en-419
https://developer.android.com/studio/run/device
When everytihing is done you should be able to run the app in your phone

Related

It's possible to uninstall another apps from my android application?

I want to ask about native app development. My client asking me for making application where the app can easily remove another app on the device (I mean Uninstall another app programmatically) with a spesific shortcut (for example maybe by shake device etc). It's possible to make this app on newest android OS?
if possible, can you give me a reference? or example code to remove another app? thank you!

Create Phonegap app with "kiosk mode"

I am trying to create Phonegap app that runs in a "kiosk mode" that won't allow the user to either leave or close the app, have acces to the notification bar or use anything else than the app we created.
The idea is that we incorporate a tablet (samsung galaxy tab 4 10.1) in an endcap which will then be placed in certain stores. Whether or tot the physical buttons on the tablet will accessible to the user has not be defined yet.
I do have experience with Phonegap but i have no idea on how to accomplish this.
So far i have tried several guides and resources, i.e. this one: http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/ or solutions as SureLock but without succes.
The tablet we want to use: samsung galaxy tab 4 10.1 (SM-T533)
Android version: 4.4.4
Phonegap version: 5.1.1
Cordova Kiosk Mode - Cordova plugin to create Cordova application with
"kiosk mode". App with this plugin can be set as Android launcher. If
app starts as launcher, it blocks hardware buttons and statusbar, so
the user cannot close the app until the app request it.
https://github.com/honza889/cordova-plugin-kiosk
Kiosk mode is highly platform specific. I'd recommend building a native app instead of using phonegap.
If you absolutely want to use phonegap you'd have to implement these hacks inside a plugin (which is in fact native code, so you don't gain anything).

Trouble running android wear app on emulator

I cannot seem to run this application which is supposedly ready to go to run on the Android Wear emulator.
Appreciate if someone can help me as to why this app does not actually get deployed to Watch emulator. I can see that the unaligned APK gets generated though.
I am following this guide:
http://toastdroid.com/2014/07/18/developing-watchfaces-for-android-wear/
Code is available at:
https://github.com/twotoasters/watchface-template
To install watchface you need to generate signed APK and push it to phone that is connected to that emulator, and install it there. After 1-2 minutes watchface should appear on the Wear device - if doesn't sync apps by companion app.
Also make sure that package for phone contains 'wear' part.
The key here is that you're using the emulator. If you run WatchfaceActivity.java from the Wear module on the emulator, you will see the watch appear on screen, but as an activity that can be dismissed.
If you then try to select it as the default watch face, you will be met with a black screen. I have only seen the emulator display the custom watch face (as a watch face, not a running activity) once and it seemed to have been a fluke.
The best way to develop custom watch faces is to run them as stand alone activities until it appears to be done, then go through the trouble of exporting a signed APK and run it on a real device connected to a real watch. At that point you can fix any small issues that remain.
please run you application on phone which has 4.3 or above platform.
install Android wear launcher apk on phone .
then connect wear emulator and phone using adb command.
adb -d forward tcp:5601 tcp:5601

How to use Computer Camera in Android Emulator

I want to use my laptop camera in the Android Emulator, but the app crashes when I try to do so. Moreover, the emulator itself can't use the camera. Is there any software or SDK version that supports webcams. Currently I am using the Android Froyo 2.2 SDK.
Thanks!
I haven't tried that yet, although it sounds rather useful. You might wann check this
How to use web camera in android emulator to capture a live image?
and
Using Camera in the Android emulator
One answer says, this is only supported in the emulator starting with android ICS (4.0), but no further information is provided, so you might want to invest a little more research on this version.

Android Applications Development without device

This question might be silly...but still:
I would like to learn the Android SDK, now I dont have an Android based phone,Can I still develop for it even if I dont own an android phone?
thanks
Yes. The Android SDK comes with an emulator, so you can run your apps on that.
Get Eclipse and Download the Android SDK through eclipse. This will allow you to debug your apps on the emulator right from your IDE. Also allows for Android App projects and code highlighting.
Yes. There is an (essentially) fully functional emulator.

Categories

Resources