android-annotations

YouTubePlayerFragment lifecycle in a DialogFragment

霸气de小男生 提交于 2020-01-05 11:54:10
问题 I am trying to embed a YouTubePlayerFragment into a DialogFragment. I am able to start the dialog one time and show the YouTubePlayer in it, but the second time it always crashes (no matter what I do). I think it is a lifecycle problem, which I simply don't understand. I am using AndroidAnnotations and the problem is that the view of the DialogFragment is always created in the onCreateView method, which is generated by AndroidAnnotations. Does anyone know how to handle the lifecycle of a

YouTubePlayerFragment lifecycle in a DialogFragment

让人想犯罪 __ 提交于 2020-01-05 11:52:44
问题 I am trying to embed a YouTubePlayerFragment into a DialogFragment. I am able to start the dialog one time and show the YouTubePlayer in it, but the second time it always crashes (no matter what I do). I think it is a lifecycle problem, which I simply don't understand. I am using AndroidAnnotations and the problem is that the view of the DialogFragment is always created in the onCreateView method, which is generated by AndroidAnnotations. Does anyone know how to handle the lifecycle of a

YouTubePlayerFragment lifecycle in a DialogFragment

徘徊边缘 提交于 2020-01-05 11:52:42
问题 I am trying to embed a YouTubePlayerFragment into a DialogFragment. I am able to start the dialog one time and show the YouTubePlayer in it, but the second time it always crashes (no matter what I do). I think it is a lifecycle problem, which I simply don't understand. I am using AndroidAnnotations and the problem is that the view of the DialogFragment is always created in the onCreateView method, which is generated by AndroidAnnotations. Does anyone know how to handle the lifecycle of a

What its the first, the annotated class (egg) or used class (chicken)?

六眼飞鱼酱① 提交于 2020-01-05 10:02:10
问题 certainly I have not read something fundamental, and it seems very strange, but I wonder. Suppose you use @SharedPref public interface SharedPreferencesInterface { @DefaultBoolean(true) boolean showDeviceName(); I have the IDE (idea) configured with Gradle, and I generated the SharedPreferencesInterface_ class that I can use in another class as @Pref SharedPreferencesInterface_ prefs; But suppose someone now download the project, how can the use? Because the class where used

failed resolving googleplayservices

折月煮酒 提交于 2020-01-04 09:12:20
问题 I am trying to create an android application that is location aware using google play services as it seems that is the new recommended fashion for doing this. I have used the tutorial I found on the android developers site to setup my project. It seems correct and builds fine, however, when the activity just BEFORE the activity that has the google play services dependencies starts I see the following in log cat. 06-18 01:31:04.126: I/dalvikvm(30480): Failed resolving Lcom/example/activities

failed resolving googleplayservices

旧街凉风 提交于 2020-01-04 09:12:04
问题 I am trying to create an android application that is location aware using google play services as it seems that is the new recommended fashion for doing this. I have used the tutorial I found on the android developers site to setup my project. It seems correct and builds fine, however, when the activity just BEFORE the activity that has the google play services dependencies starts I see the following in log cat. 06-18 01:31:04.126: I/dalvikvm(30480): Failed resolving Lcom/example/activities

When I apply AspectJ to Android project with Androidannotations not work

依然范特西╮ 提交于 2020-01-03 17:17:24
问题 I'm using Androidstudio 0.8.9 and build with gradle. I was using Android-Annotations and works well. And I want use AspectJ also, so apply plugin(https://github.com/uPhyca/gradle-android-aspectj-plugin). But compile fail, and throw some error message :app:compileDebugJava Internal compiler error: java.lang.IllegalStateException: java.lang.IllegalArgumentException: Unknown location : SOURCE_OUTPUT at org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager

ClassNotFoundException using AndroidAnnotations

浪尽此生 提交于 2020-01-01 12:31:33
问题 I trying to use AndroidAnnotaions, but getting ClassNotFoundException error in my project. For testing purposes, I created a new project with one Activity and I still getting the error. My files: AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.rodrigora.testannotations" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /> <application

ClassNotFoundException on AndroidAnnotations generated classes since update to ADT 22

人走茶凉 提交于 2019-12-28 06:19:06
问题 This project worked wonders before updating to ADT22. I already lost a day because of not knowing I had to download build tools , and I'm afraid I'm going to loose another one because of this. When I try to build the same code that was working two days ago, I get this exception: com.cidaut.blueparking fatal error : Unable to instantiate activity \ ComponentInfo{com.cidaut.blueparking/com.cidaut.blueparking.SplashScreen_}: \ java.lang.ClassNotFoundException: \ Didn't find class "com.cidaut

Retrofit + Otto + AA, How to do simple get request?

时光怂恿深爱的人放手 提交于 2019-12-25 18:32:58
问题 I am using Android Annotation for boilerplate, and Retrofit for Api calls, While doing post requests through retrofit I discovered a Some problems: When i am calling asynchronous call to "GET" request using Retrofit, I need to do some operation just after my call gets finished, and I can't use "onResponse()" because I am using "Bean" annotation It doesn't make sense right? have a look on code Example Bean class: @EBean public class someClass{ /* Suppose api is getting RestClient reference