Gesture Builder in API 27 - android

I try to learn Gesture Handling in Android and I tried this tutorial: www.techotopia.com/index.php/Implementing_Android_Custom_Gesture_Recognition_with_Android_Studio
My problem is, that I can not download Samples for SDK in my Android Studio 3.0.1 because there is just no option called like that:
So I tried this App on Appstore: https://play.google.com/store/apps/details?id=pack.GestureApp
But when I try to read the file like this:
gLibrary = GestureLibraries.fromRawResource(this, R.raw.gesture);
the gLibrary is always empty.
So I tried to find the official Gesture Builder Application here: https://developer.android.com/samples/index.html and in Android Studio: File/New/Import Sample:
as u can see, nothing there too.
I also tried to get a old (API 17) version running: https://github.com/Miserlou/Android-SDK-Samples
but I just got errors over and over again.
So lets get to my question. How to build a gesture file today with API 26/27 or how to get the old Gesture Builder (running).

I solve this problem by downloading all API 27 package

Related

Android: PlaybackOverlayFragment not working

I am working on an Android TV app and when I have started working on the project code it throws an error for PlaybackOverlayFragment, stating it cannot resolve symbol PlaybackOverlayFragment
public class PlaybackOverlayFragment extends android.support.v17.leanback.app.PlaybackOverlayFragment
currently in my gradle file it reads :
compile 'com.android.support:leanback-v17:27.1.1'
The original project was in compile sdk version 26 and I upgraded it to 27, is this throwing error because of it?
PlaybackOverlayFragment was deprecated some time ago and then completely removed in v27.
You should move away from deprecated API as soon as possible because they may be removed any time in the future.
The doc says you shoud use PlaybackFragment instead which was also deprecated in 27.1.0... So now you should use PlaybackSupportFragment
Source: https://developer.android.com/reference/android/support/v17/leanback/app/PlaybackFragment

Android Studio Rendering: "high_quality" in attribute "breakStrategy" is not a valid integer

Rendering Problems
"high_quality" in attribute "breakStrategy" is not a valid integer
([N] similar errors not shown)
Tip: Try to refresh the layout.
([N] is a variable number.)
This message was produced after I restarted Android Studio, for all activities and any other design-able files (such xml/pref_XXX.xml files)!
I searched all project files (Ctrl+Shift+F) for "high_quality" and "breakStrategy" but found nothing!
The interesting note is no problem in designing! Just show this message.
Also, I tried Clean Project, Rebuild Project, Synchronize (Ctrl+Alt+Y), Synchronize app, pressing the refresh hyperlink inside the mentioned message, restarting Android Studio again, ... But no avail!
I have updated the android sdk build-tools, platfom-tools, API 25 and works.

Phonegap Cordova 5.x looking for working Android QR-Code-Scanner Plugin (Google API 23)

i am looking for a working barcode-scanner plugin..
i´ve already found this one:
https://github.com/phonegap/phonegap-plugin-barcodescanner
..but unfortunately it doesn´t work with the Google API 23 (there are errors occurring by the bookmarkcolumns plugin included).. as far as i know it works with api 22 or less
so the errors ocurr in the CaptureActivity (src folder) > com.google.zxing.client.android.share
files:
AppPickerActivity.java
BookmarkPickerActivity.java
ShareActivity.java
Error: BookmarkColumns cannot be resolved or is not a field
so my question is, is there any other barcode-scanner-solution for phonegap or is there a way to fix these errors?
any help would be appreciated!
thanks!
BarCode Scanner :
Click on the below link you will find multiple numbers of barcode scanner plugin. Please add which ever shoots your API level.
Barcode Scanner plugins

Context.MEDIA_PROJECTION_SERVICE error while using MediaProjectionManager

I am trying to use Media projection API to enable screen capturing ability in my app. I am not able to call getsystemservice in Android Studio. I am getting an error on Context.MEDIA_PROJECTION_SERVICE :Must be one of the context.power_service,context.window_service error. Any suggestions to get it working?? or why am I getting this error??
It is a wrong warning and it's okay to ignore. This was fixed in a later update, as I no longer get that warning (I used to).
Either:
Update Android Studio
Update your compileSdkVersion and buildToolsVersion in your build.gradle file (Make sure you update in the SDK Manager also.)

Integrate GeckoView in Android

I'm facing problem in file upload in webview in Kitkat(4.4).
As per https://code.google.com/p/android/issues/detail?id=62220 it can't be done in 4.4 due to missing method in new version of webview.
Hence searched and found GeckoView(https://wiki.mozilla.org/Mobile/GeckoView) as alternative for webview.
I followed all steps specified at https://wiki.mozilla.org/Mobile/GeckoView, still project is not running in emulator as well as android device.
I tried downloading and importing sample project Geckobrowser in https://wiki.mozilla.org/Mobile/GeckoView, but it gives compile time error for getCurrentBrowser() method.
I'm using Windows OS. Can anyone please guide me through, not able to know what i'm missing. I'll really great-full for any lead in correct direction.
You must check cpu abi version, and change geckoview_library and geckoview_asset to match the abi.
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/
From the link, you can download several kinds of geckoview library.
This is a sample.
[DIR] latest-mozilla-central-android-armv6/ 12-Dec-2013 11:50 -
[DIR] latest-mozilla-central-android-r7/ 12-Dec-2013 11:56 -
[DIR] latest-mozilla-central-android-x86/ 12-Dec-2013 11:56 -
[DIR] latest-mozilla-central-android/ 12-Dec-2013 11:56 -
In each folder, download geckoview_library and geckoview_asset.

Categories

Resources