android-annotations

Using AndroidAnnotations with Scala and Gradle

守給你的承諾、 提交于 2019-12-21 10:46:11
问题 Is it possible to use AndroidAnnotations with the Scala programming language and the Gradle build system? When I try to integrate AndroidAnnotations into my existing Android/Scala/Gradle project, then compilation fails because the generated underscore classes (e.g. MyActivity_) cannot be found. Here are some useful starting points and references: http://www.scala-lang.org/node/4773 (2010-01-06) http://www.scala-lang.org/sid/5 (2010-01-27) http://code.google.com/p/androidannotations/wiki

AndroidAnnotations + Android Studio - The generated null.R class cannot be found

ぐ巨炮叔叔 提交于 2019-12-21 05:21:31
问题 I have setup ActiveAndroid as per the wiki instructions using latest version of AndroidStudio. I am using product Flavours. This is my gradle build file: apply plugin: 'android' apply plugin: 'android-apt' apt { arguments { androidManifestFile variant.processResources.manifestFile resourcePackageName android.defaultConfig.packageName } } android { compileSdkVersion 19 buildToolsVersion "19.0.3" defaultConfig { minSdkVersion 8 targetSdkVersion 19 versionCode 1 versionName "1.0" } buildTypes {

Is “AndroidAnnotaions” reliable?

大憨熊 提交于 2019-12-21 03:48:46
问题 Is "AndroidAnnotations" reliable? I've searched it but couldn't find many articles on it(reviews or tutorials). I've been considering using this library in my project which already has quite lots of users. Before adopting it, I need a good reputation on it. So my concerns mainly are, Are there famous products using this library? Can I say it's stable enough to adopt it for my big project? Will it be maintained well? (bug fixes, etc) Thanks in advance. 回答1: I am the lead developer of

Android Eclipse - Cannot see annotation processing option

雨燕双飞 提交于 2019-12-18 10:55:28
问题 I am unable to fine the option to set annotation processing in my Eclipse preferences. Not sure since when am I getting this problem but surely it has started to occur after I updated eclipse last. I also tried pasting the annotations.jar file in tools/support folder but to no good. Kindly help. TIA 回答1: Installing Programming Languages > Eclipse Java Development Tools may enable it again. 回答2: It seems Google removed the Annotation Processor option from project properties in the ADT bundle.

Is it possible to dynamically add AndroidAnnotation @EViewGroups instead of using the traditional inflate directly?

不打扰是莪最后的温柔 提交于 2019-12-13 06:19:01
问题 I'm trying to use Android Annotations and dynamically add layout components when my createNewRow button is clicked. The app runs and displays the default rows defined in activity_main.xml and, after clicking createNewButton I see children attached to my dynamicTable in the debugger but the new children are not displayed. Here is my main activity XML: activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"

AndroidAnnotations: how to access View on @ItemClick

时光总嘲笑我的痴心妄想 提交于 2019-12-13 03:55:07
问题 I use AndroidAnnotations to build Android application. But I have no idea how to refactor this below to use @ItemClick because @ItemClick doesn't accept View parameter. By the way, I use View to get tag of selected GridView . gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { String url = (String) view.getTag(); intents.put("image", url); DetailActivity_.launch(HomeActivity.this,

android annotations @background NetworkOnMainThreadException

柔情痞子 提交于 2019-12-13 00:39:54
问题 Why I get this error? Shouldn't android annotations take care of threading? Any help will be appreciated :). Thank you @EActivity(R.layout.activity_main) public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); tradingHistory(); } void myMethod() { tradingHistory(); } @Background void tradingHistory (){ Helper helper = new Helper(); try { helper.TradeHistory tradeHistory = helper.getTradeHistory(); System

Why The value for annotation attribute Rest.rootUrl must be a constant expression?

醉酒当歌 提交于 2019-12-12 14:16:15
问题 Im using Android Annotations Framework, specially for Rest Integration. I have the following code. An interface for Host configuration public interface Host { public String URL = "http://192.168.2.137"; } And the annotated Interface for Rest communication. @Rest(rootUrl = Host.URL, converters = { MappingJacksonHttpMessageConverter.class }) public interface RestClient { @Get("/entities.json") Entity[] allEntities(); } and my question is, Why the value for annotation attribute Rest.rootUrl must

Gradle + Android Annotations + Merged Manifest = “Could not find the AndroidManifest”

我怕爱的太早我们不能终老 提交于 2019-12-12 13:24:55
问题 I seem to be running into a problem with Android Annotations finding my Android Manifest when I'm using different manifests for different buildTypes. The error I get is: java: error: Unexpected error. Please report an issue on AndroidAnnotations, with the following content: java.lang.IllegalStateException: Could not find the AndroidManifest.xml file, going up from path [/Users/jabdulius/Documents/Dropbox/workspace/<app-name>/aa-gen] found using dummy file [file:///Users/jabdulius/Documents

Android Annotations and MonkeyTalk?

依然范特西╮ 提交于 2019-12-12 13:07:08
问题 I just tried to update my project which uses Android Annotations to include the MonkeyTalk agent. However, as soon as I switch the project to an AspectJ project, all my Android Annotations references are not recognized. Has anybody successfully used MonkeyTalk in an Android Annotations project? I'm using Eclipse 4.2 SR2. It looks like this issue has been raised on the Android Annotations FAQ: https://github.com/excilys/androidannotations/wiki/FAQ#wiki-aspectj In order to "fix" it, you have to