Is there a way of telling, within the application the spcific device model that the app is being run from. For example for it to be able to tell the difference if the app is running on a Nexus S or a HTC Desire or the Samsung Galaxy Tab?
This give name of overall product
android.os.Build.PRODUCT
You can also try others by Build.*
Related
I have developed a Flash Light app. but it does not turn on on high Android version. This app works perfectly on E5 Android 4.4.4 but dont turn on J7 Android 5.1.1 "Lollipop"
There can be many issues like till api 19 or 4.4.4 you dont need to ask for permissions or you did not have to worry too much about the device's battery but from the above that version google has fixed some criteria for some functionalities and you need to explicitly ask those permission to user in order to get them working.
So, If you havent already solved it put some code or give some error or log so i can help you more with it.
#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
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).
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
I am trying to integrate the multi window feature provided by Samsung Mobile SDK in my android app. I am following the MultiWindowSample given by Samsung. The sample independently works perfectly fine but when I integrate it in the app or call the same activity through the app, this call
SMultiWindowActivity.makeMultiWindowIntent(intent, SMultiWindowActivity.ZONE_A)
simply launches the chosen app (acquiring the full screen) without any MultiWindow view at all.
Is there anything that I am missing out or any constraint that I need to take care of? I am testing it with Samsung S4 which supports MultiWindow.