Git Product home page Git Product logo

user-interface-samples's Introduction

Warning We are in the process of migrating these samples into the new platform-samples repository.

You can find the list of migrated samples here

Android user interface samples

A collection of Android projects to help you start building Android user interface features.

Installation

Clone the repository, then open the samples as projects in Android Studio.

Support

Stack Overflow: http://stackoverflow.com/questions/tagged/android

If you find an error in the samples, please file an issue at https://github.com/android/user-interface-samples.

Patches and contributions

We encourage patches and contributions to this project. Fork the project and submit a pull request through GitHub. Please see CONTRIBUTING.md for more details.

License

Copyright 2022 Google, LLC

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

user-interface-samples's People

Contributors

alabiaga avatar alexvanyo avatar astamato avatar chrisbanes avatar cmoijulien avatar codingjeremy avatar corneliusratsch avatar dstd avatar emilieroberts avatar eugeneogongo avatar florina-muntenescu avatar ggfan avatar hossain-khan avatar jmylen avatar jolandaverhoef avatar joneckenrode avatar kford55 avatar marcelpinto avatar neelanshsahai avatar nickbutcher avatar owahltinez avatar pflammertsma avatar pfmaggi avatar pranavpandey avatar romanofranz avatar siyamed avatar slavkoder avatar thagikura avatar tiwiz avatar yaraki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

user-interface-samples's Issues

android.view.InflateException: Error inflating class android.support.text.emoji.widget.EmojiTextView

Hi,
I am receiving the named crash on some devices on crashlytics. I can't understand how this is happening as I am initiating the EmojiCompat in the Application class via font request download.
In the XML layouts of my app, I am using the EmojiTextView.
The only idea I have is that a user may open the app for the first time without any internet connection so that the EmojiCompat initialization fails. Therefore it can't inflate the EmojiTextView?
Does the EmojiTextView have a fallback mechanism if the initialization has failed?
If not, is the only possible way to work around this issues by using regular TextViews and use the EmojiCompat#process() method if initialization has been successful?

I am using support library version 27.1.1

happy to hear from you!

Question about NotificationCompat.WearableExtender().setDismissalId()

I use NotificationCompat.WearableExtender().setDismissalId() to dismiss notfification on other devices after I dismiss on one device. However, when the notification is dimissed, I can not show notification with that id again. How can I use setDismissalId with one ID to show multiple times?

Google Fonts Certificates

Is there another way to obtain the certificates to use this new feature?. Right now, I can only get them using the Android Studio Preview and following the steps in the documentation. My current development environment is Android Studio 2.3.

Other source than Google Noto?

How can I use other emojis than Google Noto? Is there a list of source I can decide from, with urls, certificates, etc.?

Default URL 'http://...' doesn't highlight retrieval of favicon

Problem Description: ShortcutHelper sets the shortcut's icon to the URLs favicon, but since URLConnection doesn't follow cross-protocol (http -> https) redirects by default, the default URL 'http://www.android.com' doesn't show off this neat feature.

Solution: Change the default url from 'http' to 'https'.

Items:

  • Change default URL in Main.java
  • Update screenshot to show example with favicon.

how to request a Noto CJK font?

Hello

I download this example and run it on Nexus 5X(Google Play Services version 11.5.09)). When I request the fonts that defined in

R.array.family_names

everything working fine,
But if I put

<item>Noto Sans CJK JP</item>

into R.array.family_names, and request this Noto Sans CJK font(check this: Noto CJK) then it giving me the error message:

Font request failed with reason code: -1.

so please suggest me to how to solve this or anything missing on it ?

can‘t build projection successfully

Hi, I got a problem which application can not be build . I have download Android Studio 3.0 and Android O sdk . and add code
maven {
url "https://maven.google.com"
}

in build.gradle ,but I just can't also build application successfully . here is my code in build.gradle ,is there something error ?

android {
compileSdkVersion 'android-O'
buildToolsVersion '26.0.0-rc2'
defaultConfig {
applicationId "com.example.javris.myapplication"
minSdkVersion 'O'
targetSdkVersion 'O'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:26.+'
compile "com.android.support:support-emoji:26.0.0-beta1"
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}

Error information :
Error:Failed to resolve: Could not resolve com.android.support:support-emoji:26.0.0-beta1.

I found when I try to rely on other library such as :
compile "com.android.support:support-dynamic-animation:26.0.0-beta1" ,it will be error either .

I think I just can't connect to 'https://maven.google.com' . I got 404 when visited by website . by the way I have to use VPN visite google website.

Is there any solution? Looking forward to your reply,thanks !

Font Style and weight

Currently I have three styles of font as normal medium and bold of Montserrat font.
When I create downloadable font from studio,it gives only two options normal and bold.
How can we add other weight/style of font.

Instant Apps - Emoji Compat compatibility query

Hi,

Just wanted to check if EmojiCompat works with Instant Apps or might have limitations due to the FontProvider content provider?

Intermittently, I get the following crash but after relaunch app, it is successfully loaded!

    EmojiCompat initialization failed
    java.lang.RuntimeException: provider not found
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.retrieveFontInfo(FontRequestEmojiCompatConfig.java:229)
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.createMetadata(FontRequestEmojiCompatConfig.java:290)
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.access$100(FontRequestEmojiCompatConfig.java:164)
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader$1.run(FontRequestEmojiCompatConfig.java:218)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.os.HandlerThread.run(HandlerThread.java:65)
    Caused by: android.content.pm.PackageManager$NameNotFoundException: No package found for authority: com.google.android.gms.fonts
    at android.support.v4.provider.FontsContractCompat.getProvider(FontsContractCompat.java:735)
    at android.support.v4.provider.FontsContractCompat.fetchFonts(FontsContractCompat.java:715)
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontProviderHelper.fetchFonts(FontRequestEmojiCompatConfig.java:334)
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.retrieveFontInfo(FontRequestEmojiCompatConfig.java:227)
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.createMetadata(FontRequestEmojiCompatConfig.java:290) 
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.access$100(FontRequestEmojiCompatConfig.java:164) 
    at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader$1.run(FontRequestEmojiCompatConfig.java:218) 
    at android.os.Handler.handleCallback(Handler.java:790) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:164) 
    at android.os.HandlerThread.run(HandlerThread.java:65) 

activity finish animation is not effect

when i start activity b with intent flag FLAG_ACTIVITY_NEW_DOCUMENT, it works fine, but when i finish activity b and add code overridePendingTransition(R.anim.fake_anim, R.anim.push_down_out) on finish() method,it was no effect

Emoji overlapping

Hi, I'm working in a chat library, I implemented EmojiCompat and this works very well in my sample app, but once I export my library and import as a dependency The emojis doesn't display well on the android.support.text.emoji.widget.EmojiAppCompatTextView and show the emojis overlapping. Does someone have some idea how fix this issue?
[
issue 1
issue 2

](url)

The Jack toolchain is deprecated

As the Jack toolchain is deprecated we don't need this option anymore

 jackOptions {
    enabled true
    }

These options are enough :

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

Confused: Does Android O already have Noto font?

"You need the beta version of Google Play Services to use this feature. Join Google Play Services Public Beta Program and make sure you have v11 installed on your device running Android O Developer Preview 2."

I tried without the bundle font version and it seems to work although the logcat said:

08-02 19:11:23.117 5297-5368/? I/FontsContentProvider: Received query Noto Color Emoji Compat, URI content://com.google.android.gms.fonts
08-02 19:11:23.120 5297-5368/? I/FontsContentProvider: Query [Noto Color Emoji Compat] resolved to {Noto Color Emoji Compat, wdth 100.0, wght 400, ital 0.0, bestEffort false}
08-02 19:11:23.134 5297-5368/? I/FontsContentProvider: Fetch {Noto Color Emoji Compat, wdth 100.0, wght 400, ital 0.0, bestEffort false} end status Status{statusCode=SUCCESS, resolution=null}
08-02 19:11:23.144 5297-5308/? I/FontsContentProvider: Pulling font file for id = 3, cache size = 2

Does it mean the Android O already have the font installed, it is not downloading the font? If so, how can I test the download flow?

supported android 7.0?

hi,i m a android user(but not developer). i want the immersive mode for my android device.
and its working at android 7.0 ?

Error Grandle Sync

Hello, I'm trying to run this sample App but the error bellow is shown (Messages Gradle Sync):

Gradle 'android-DownloadableFonts' project refresh failed
Error:Cause: https://downloads.gradle.org/distributions-snapshots/gradle-4.0-20170406000015+0000-all.zip

I cloned the git repository and imported the project using Android Studio as specified. What am I doing wrong? Thanks in advance.

Also Confused: downloadable fonts vs bundled

A bundled font uses multiple megabytes but does not need to download anything. Would that mean that with the downloadable font the app does download multiple megabytes during the first app start? Or how does that exactly work.

Typo in build.gradle

applicationId specified in app/build.gradle differs from the actual name of the package. For this reason, the shortcut "Add New Website" does not work.

NullPointerException FontsContractCompat

We are experiencing a crash on some devices.
android.support.v4.provider.FontsContractCompat$2.onReply (SourceFile:277)
android.support.v4.provider.FontsContractCompat$2.onReply (SourceFile:274)
android.support.v4.provider.FontsContractCompat$3.onReply (SourceFile:312)
android.support.v4.provider.FontsContractCompat$3.onReply (SourceFile:300)
android.support.v4.provider.SelfDestructiveThread$2$1.run (SourceFile:149)
android.os.Handler.handleCallback (Handler.java:815)
android.os.Handler.dispatchMessage (Handler.java:104)
android.os.Looper.loop (Looper.java:194)
android.app.ActivityThread.main (ActivityThread.java:5624)
java.lang.reflect.Method.invoke (Method.java)
java.lang.reflect.Method.invoke (Method.java:372)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:959)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:754)

Wrong links

Hello!
Readme file contains wrong links
https://developer.android.com/reference/android/support/text/emoji/widget/EmojiCompatViewHelper.html
https://github.com/googlesamples/android-EmojiCompat/blog/master/app/src/main/java/com/example/android/emojicompat/CustomTextView.java

at this text:

With custom TextViews
If you want to use EmojiCompat in your custom TextView, you can create an instance of EmojiTextViewHelper and use it in some overridden methods, namely setFilters and setAllCaps. CustomTextView.java shows what to do inside them.

Does not make links clickable

When I get a string by converting it from html, the link is highlighted blue. However, nothing would happen on clicking it.
Example: String--> "Text Text Text Text Text Text Text Text https://youtube.com Text Text Text Text
The link is getting highlighted but isn't responsive

how did you generate family_names.xml ?

this sample app has a type-ahead text input which requires a resource array of all the available family names. This means any newly introduced family will not be covered by the type-ahead control. How did you generate this list ? does the google font API support listing family names ?

Android Studio 3 build.gradle issues

Importing this project as a Kotlin code sample in Android Studio 3.0.1, I get the following warnings relating to build.gradle:

  1. AS3 warns about a superfluous buildToolsVersion in build.gradle
  2. AS3 recommends updating targetSdkVersion, supportLibVersion, kotlinVersion to the latest one
  3. gradle recommends replacing deprecated 'compile' dependencies with 'implementation'

The same issues affect the Emoji Compat Kotlin project.
I'll submit a PR.

Gradle Build Tools Update needed

When I clone the repo and try to build it I get the following error:
Gradle sync failed: Failed to find Build Tools revision 27.0.2

Also the Gradle plugin needs to be updated.

Not able to display emoji on regular textview

Getting the below error when i set USE_BUNDLED_EMOJI = false to use a downloadable font for EmojiCompat

EmojiCompat initialization failed
java.io.IOException: Cannot read metadata.
at android.support.text.emoji.MetadataListReader.findOffsetInfo(MetadataListReader.java:161)
at android.support.text.emoji.MetadataListReader.read(MetadataListReader.java:91)
at android.support.text.emoji.MetadataRepo.create(MetadataRepo.java:116)
at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.createMetadata(FontRequestEmojiCompatConfig.java:316)
at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.access$100(FontRequestEmojiCompatConfig.java:164)
at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader$1.run(FontRequestEmojiCompatConfig.java:218)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

Font certificates

From where do I get the fonts certificates?
Can I use the certificates from this project sample?

App crashed with EmojiCompat of Notification

Error: Couldn't expand RemoteViews for: StatusBarNotification
(It works well with Activities, but the app crashed when using EmojiTextView at RemoteViews.)

Could you support EmojiCompat at RemoteViews? or Is there any way to resolve it?

android.content.res.Resources$NotFoundException

Just modify the minSdkVersion to 19
Like this:

`apply plugin: 'com.android.application'

ext {
    supportLibVersion = '26.0.0-beta2'
}
android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0-rc2"
    defaultConfig {
        applicationId "com.example.android.emojicompat"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    configurations.all {
        resolutionStrategy.force "com.android.support:support-annotations:$supportLibVersion"
    }
}
dependencies {
    // Support Libraries
    compile "com.android.support:appcompat-v7:$supportLibVersion"
    compile "com.android.support:support-emoji:$supportLibVersion"
    compile "com.android.support:support-emoji-appcompat:$supportLibVersion"
    compile "com.android.support:support-emoji-bundled:$supportLibVersion"
    // Test
    testCompile 'junit:junit:4.12'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
}`

Run on HUAWEI PE-TL10(Android 4.4.2 API 19)
Got:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.emojicompat/com.example.android.emojicompat.MainActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f070052 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345) at android.app.ActivityThread.access$1100(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5315) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680) at dalvik.system.NativeStart.main(Native Method) Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f070052 at android.content.res.Resources.getValue(Resources.java:1164) at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:330) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:195) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188) at android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:755) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:193) at android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:88) at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:128) at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:149) at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:29) at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:54) at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:202) at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:183) at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:520) at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:71) at com.example.android.emojicompat.MainActivity.onCreate(MainActivity.java:38) at android.app.Activity.performCreate(Activity.java:5301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345)  at android.app.ActivityThread.access$1100(ActivityThread.java:139)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5315)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)  at dalvik.system.NativeStart.main(Native Method)

Only available on devices running API26?

Toolbar + immersive mode

Would be useful to provide examples referring to latest/suggested guidelines like having material Toolbar in place with immersive mode!

After adding more than 4 websites, the application crashes

Caught Exception
java.lang.IllegalArgumentException: Max number of dynamic shortcuts exceeded
at android.os.Parcel.readException(Parcel.java:1688)
at android.os.Parcel.readException(Parcel.java:1637)
at android.content.pm.IShortcutService$Stub$Proxy.addDynamicShortcuts(IShortcutService.java:430)
at android.content.pm.ShortcutManager.addDynamicShortcuts(ShortcutManager.java:547)
at com.example.android.appshortcuts.ShortcutHelper.lambda$-com_example_android_appshortcuts_ShortcutHelper_lambda$2(ShortcutHelper.java:208)
at com.example.android.appshortcuts.-$Lambda$2.$m$0(Unknown Source)
at com.example.android.appshortcuts.-$Lambda$2.getAsBoolean(Unknown Source)
at com.example.android.appshortcuts.ShortcutHelper.callShortcutManager(ShortcutHelper.java:76)
at com.example.android.appshortcuts.ShortcutHelper.addWebSiteShortcut(ShortcutHelper.java:206)
at com.example.android.appshortcuts.Main$1.doInBackground(Main.java:112)
at com.example.android.appshortcuts.Main$1.doInBackground(Main.java:110)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)

can't build

Error:Failed to resolve: com.android.support:support-emoji-bundled:26.0.0-beta1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/futabooo/dev/src/github.com/googlesamples/android-EmojiCompat/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:Failed to resolve: com.android.support:support-annotations:26.0.0-beta1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/futabooo/dev/src/github.com/googlesamples/android-EmojiCompat/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:Failed to resolve: com.android.support:support-emoji-appcompat:26.0.0-beta1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/futabooo/dev/src/github.com/googlesamples/android-EmojiCompat/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:Failed to resolve: com.android.support:appcompat-v7:26.0.0-beta1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/futabooo/dev/src/github.com/googlesamples/android-EmojiCompat/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:Failed to resolve: com.android.support:support-emoji:26.0.0-beta1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/futabooo/dev/src/github.com/googlesamples/android-EmojiCompat/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Sample app crashing on LG device

App crashing on LG device

Please find the device spec here

### E/AndroidRuntime: FATAL EXCEPTION: fonts
                                                                                 Process: com.rahuljanagouda.playstorepoc, PID: 10873
                                                                                 java.lang.NullPointerException
                                                                                     at android.os.Parcel.readException(Parcel.java:1478)
                                                                                     at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
                                                                                     at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
                                                                                     at android.content.ContentProviderProxy.query(ContentProviderNative.java:413)
                                                                                     at android.content.ContentResolver.query(ContentResolver.java:464)
                                                                                     at android.support.v4.provider.FontsContractCompat.getFontFromProvider(FontsContractCompat.java:770)
                                                                                     at android.support.v4.provider.FontsContractCompat.fetchFonts(FontsContractCompat.java:668)
                                                                                     at android.support.v4.provider.FontsContractCompat$4.run(FontsContractCompat.java:483)
                                                                                     at android.os.Handler.handleCallback(Handler.java:733)
                                                                                     at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                     at android.os.Looper.loop(Looper.java:136)
                                                                                     at android.os.HandlerThread.run(HandlerThread.java:61)

Crash on API v21

java.lang.RuntimeException: fetchFonts result is not OK. (1)
at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.createMetadata(FontRequestEmojiCompatConfig.java:307)
at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader.access$100(FontRequestEmojiCompatConfig.java:164)
at android.support.text.emoji.FontRequestEmojiCompatConfig$FontRequestMetadataLoader$1.run(FontRequestEmojiCompatConfig.java:218)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

Crashed on emulator.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.