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).
Related
#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 migrated from Eclipse to Android Studio when version 1.0 came out.
This automatically changed the google play services integration (which i use for admob and analytics) to an entry in the app gradle build file.
All my apps that use the play services now periodically crash. Apps that don't use it are working like before.
The crashing apps start up once normally. But when you close them (via recenty opened apps) and then reopen them at a later point, the screen turns black and the app will not respond.
Any idea what causes this?
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.
I recently downloaded the Android SDK (Linux, 64-bit version), and created a new AVD. I then launched the emulator from the command line, and watched my device spring to life. I then created a Gmail account, and tried to install a random (WebMD) free app from inside my emulator:
This popup is preventing me from being able to install the app. I don't see the "white shopping bag" icon that it is talking about. Any ideas as to what I have to do to get the app to properly install?
I believe the popup indicates that you should use the Play Store app, rather than attempting to download from a browser. The Play Store app launch icon is a shopping with a bluish-green arrow.
I use the Java Android SDK in Eclipse for mobile development, in which I have to choose different versions of Android.
Can I also develop for tablets that have android using the version already have for mobiles?
Eclipse is the standard IDE for developing all Android applications, including phones and tablets.
If you have an application designed for phones and run it without changes on the tablet via Eclipse, it will run fine, although the UI may not be appropriate for the bigger size (ie Android will attempt to stretch the layouts to fill the screen, which could look strange).
You can specify different layouts to use for different types of devices.
In addition you should investigate fragments. These allow you to manage lifecycles of child views independently of the parent activity, which is very helpful for tablet UIs.
Other than that development for tablets is just like development for phones.
Please see this document that addresses your needs.