android-5.0-lollipop

Glitch when animating nested views in a shared element Activity transition?

久未见 提交于 2020-01-10 10:17:05
问题 I've been messing around with the new APIs in Android 5.0 and have been trying to figure out whether or not it is possible to animate both a ViewGroup and one of its children separately as shared elements during an Activity transition. The screenshots below gives a simplified example of what I am trying to achieve: In the first activity, the dark gray box is a ViewGroup centered in the screen and the red box is its child View (the layout XML code I am using can be found here). When the user

Lollipop capitalizes Buttons' text in my app

冷暖自知 提交于 2020-01-10 04:22:04
问题 I am expreiencing a strange problem with my application. When I am testing it on a real device (with Android 4.4.4) all my Buttons' text fields look how I wanted (lower case letters). But when I launch my application on an emulator (Android 5.0.1) all Button texts fields are capitalized. What is the reason of such behaviour? Some example Buttons from my app: Example Button 1: <Button android:id="@+id/button5" android:layout_width="match_parent" style="?android:attr/borderlessButtonStyle"

android 5 and onClick in xml layout

走远了吗. 提交于 2020-01-09 11:07:32
问题 i have set android:onclick in xml for an imageButton and put that method in my activity. in android s below 5 it works fine but in android 5 it give me Error. my imageButton code: <ImageButton android:id="@+id/photo_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/detail_icon" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:background="@drawable/image_background" android:onClick="photoDetailButtonMethod"

Android takes more time on application start up during first time launch

蓝咒 提交于 2020-01-09 10:02:43
问题 In my project, I have used libraries which require multidex support. Based on the research I did, I came to know that it causes delay during app start up. I have enabled multidex feature in gradle. defaultConfig { multiDexEnabled true } I used to get NoClassDefFound Exception for kitkat devices so I added the following: I have added application name in manifest as android:name="android.support.multidex.MultiDexApplication" and extended my application class with MultiDexApplication. I know any

Android takes more time on application start up during first time launch

我的未来我决定 提交于 2020-01-09 10:01:07
问题 In my project, I have used libraries which require multidex support. Based on the research I did, I came to know that it causes delay during app start up. I have enabled multidex feature in gradle. defaultConfig { multiDexEnabled true } I used to get NoClassDefFound Exception for kitkat devices so I added the following: I have added application name in manifest as android:name="android.support.multidex.MultiDexApplication" and extended my application class with MultiDexApplication. I know any

how to use 32bit native libraries on 64 bit Android-L platform

丶灬走出姿态 提交于 2020-01-09 03:19:23
问题 I have a Android application which i compiled with AOSP(Kitkat) as android system application and it was running fine. My application is dependent on native code compiled with Android-NDK as 32 bit libraries. I am copying native libraries inside my android applications libs/armeabi folder and then building my android application in AOSP(I have also modified device.mk to copy my libs in the /system/lib folder). Everything is working fine on Android Kitkat. When i ported my application on

how to read from a zipfile in a folder which was selected by the ACTION_OPEN_DOCUMENT_TREE Intent?

落爺英雄遲暮 提交于 2020-01-07 04:44:25
问题 how to read from a zipfile in a folder which was selected by the ACTION_OPEN_DOCUMENT_TREE Intent ? My app let the user choose a folder through the ACTION_OPEN_DOCUMENT_TREE Intent. In that folder i will have a Zipfile with a specific name. Goal is to read that Zipfile with java.util.zip.ZipFile. How do I instantiate a ZipFile with this specific Zipfilename from the provided URI (Folderinfo) in onActivityResult ? protected void onActivityResult(int requestCode, int resultCode, Intent data) {

Android L Developer Preview packages missing?

雨燕双飞 提交于 2020-01-07 02:29:10
问题 I'm trying to use the Android L Developer Preview SDK, specifically the Bluetooth Low Energy classes. I set compileSdkVersion 'android-L' , minSdkVersion 'L' , and targetSdkVersion 'L' . I can see the L platform SDK under "External Libraries", but when I go to see what is inside the android.jar, the android.bluetooth.le package is missing. Thus, I cannot use any of the Bluetooth LE classes such as BluetoothLeScanner and ScanCallback. Does anyone know how to fix this? 回答1: I would guess this

Unable to create file on removeable sdcard in Android 5.0.1

时光总嘲笑我的痴心妄想 提交于 2020-01-06 15:10:22
问题 I am working on an application that needs the ability to create files on the removable sd card in the Samsung S4 i9295 device. I am running a stock Samsung ROM 5.0.1 that has been rooted. For test purposes, I have been trying to create these files by hardcoding the paths for this specific device, but have been unable to create files on the removable card. The code below creates files as expected on the internal sd card but not on the removable card. //creates directory on internal sdcard

Now Playing Card

♀尐吖头ヾ 提交于 2020-01-05 20:31:14
问题 I need help about displaying the Now Playing Card in the Recommendations row. I read the post about it in the Android developers site, but that did not help me much. I have a service that streams the MP3 data without problems. I added the following code, but there's no Now Playing Card... @Override public void onCreate() { Log.i(TAG, "onCreate called"); mSession = new MediaSession(this, "MusicService"); mSession.setCallback(new MediaSessionCallback()); mSession.setFlags(MediaSession.FLAG