I have implemented the Picture-in-Picture feature in my project, but I need support for Android 6. Google says it's not supported in Android 6, but I have seen it supported in other applications. Can you help me fix this issue?
PiP did not exist until Android 8. So it is literally impossible to support on Android 6. It's possible that some OEM made a special library that enabled it on a small set of devices, but if so you'd need to find that library and figure out what models it works on. There is no way to do it generally in Android 6. Even the primitives that PiP_ uses didn't exist until Android 7. See https://developer.android.com/develop/ui/views/picture-in-picture
Related
I'm creating a flutter app that will be installed on a Samsung Galaxy 7-inch Tablet with Android KitKat (v4.4). It will be the only app on the tablet, and will be implemented such that it loads when the device is powered up, and the user will be unable to exit the application.
I've found this on the Android Developer docs, but it only applies for versions 5.0 and over.
https://developer.android.com/work/dpc/dedicated-devices/lock-task-mode#java
I have not been able to find any documentation/tutorials that could possibly assist with this, without using a 3rd party application such as Surelock and Kioware.
Is there a way to implement the above for older Android version (in my case for version 4.4)? Thank you.
As you are targeting an older Android version you will need to implement some workarounds, but luckily there is a very extensive tutorial on how to do just that for Android 4 which you can find here:
http://web.archive.org/web/20201101145703/https://www.andreasschrade.com/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/
As this is very platform specific you will need to develop directly for Android and then connect it to your Dart code with this tutorial.
If you control the devices your software will be installed on, you can also opt for the 'root' way of doing things which is described here:
Enabling KioskMode in Android 4.4.2 with Root
I would like to publish my app on the Android store but I can not get my app to work in the emulator. I cannot figure out why I cannot run my app when so many have published with the same tools as me in the past.
I have downloaded the lastest Android SDK and installed all the API's. There are alot of 2.3.3 devices and my app supposedly supports as far back and API level 3 so I am assuming my app should be working on API level 10. However my app complains that it has been built for ARM5TE and that the device supports ARM5T.
I cannot figure out what this implies and I am able to build with ARM5T but have no idea if that would then mean my app would not work on ARM5TE. I know that most devices are ARM based but I have no idea how many are ARM5TE and ARM5T. I wanted to support the 90% of devices that use the app store that support open GL 2.0.
To improve the ARM architecture for digital signal processing and multimedia applications, DSP instructions were added to the set.[30] These are signified by an "E" in the name of the ARMv5TE and ARMv5TEJ architectures. E-variants also imply T,D,M and I.
The new instructions are common in digital signal processor architectures. They include variations on signed multiply–accumulate, saturated add and subtract, and count leading zeros.
(source)
Most Android phones released in the last couple of years are based on ARMv7-A, which also supports these DSP instructions.
I can't find a clear list of what files needs developer's attention when i'm building a new Android image.
All the guides that i have found until now are way too generic or really old.
I'm supposing that i'm not interested on customize the platform, i just want a vanilla flavour but for my device only.
The answer is a bit complicated. You probably cannot build a vanilla Android for your device, unless your device is one of the google developer phones. Here is a list of the devices you can build Android for. The reason being that the manufactures usually does not publish all the parts needed to actually build Android for their devices.
But do have a look at the cyanogenmod project, and see if they support your device. They are kind of trying to make a "vanilla" android source for the devices which the manufactures themselves does not support. And they are doing quite a nice job, in my opinion. I have a custom build of Android 4.0 for my Galaxy SII running for months now, and it is working perfectly fine.
If you update your questions with the devices your are using, I can probably provide specifics on how you can build cyanogenmod for your specific device.
What are you trying to do ?
Declare some images or layout specific to only one device ?
You can't do it with a selector on a folder (-large, -fr, ...), but with some code. Check this out : http://developer.android.com/reference/android/os/Build.html#MODEL,
Should I use the latest 4.0 or 2.3? My phone has android 2.3.5 and it's a HTC Desire HD.
Does the runtime matter or will the applications work still?
First you should choose what device versions you'd like to target: http://developer.android.com/resources/dashboard/platform-versions.html
Based on those numbers it makes sense to currently support Android 2.1 and higher.
Also you should read about <uses-sdk> directive:
android:minSdkVersion and maxSdkVersion define the version range to which your app will be available. If device has Android version out of this range then app will not be visible for it.
targetSdkVersion is the vesrion that you are targeting and that you actually tested against. This attribute triggers Android's compatibility behavior: for instance targeting 2.3 will not show the new look on 4.0 devices.
I think this url will be helpful :
http://developer.android.com/resources/dashboard/platform-versions.html
All versions of android are backward compatible which means that an application designed to work with 2.0's api will work on 4.0 so it basically comes down to whats your target customers. there's still a vast majority that uses 2.x (unfortunately) so it is probably smart to develop for 2.1 and up..
but anyway this is a pretty common question and i'm sure google will produce a lot of useful information in the subject.
I'm trying to build an Augmented Reality application for androids. I just want it to show some 3d models when it recognizes my different markers.
I used this excellent SDK, https://ar.qualcomm.at/qdevnet/sdk and followed the steps, but unfortunately when I created the application and ran it on my android, it showed a message "Your device is not supported". That's probably because that guide is for 2.1 androids, and mine is 2.2
Is there any way to "convert" it? I just want to make it play on my phone.
Is there any way to "convert" it? I just want to make it play on my phone.
Not that I know of. The QCAR SDK actually checks for device compatibility based on explicit conditions (e.g. a snapdragon processor) and fails to initialize if the device is not supported. There's a list of supported devices available on their dev forum - https://ar.qualcomm.at/qdevnet/forums
Most Android (and iOS) devices are now supported by QCAR SDK.