Question

I'm kinda new to android, I've heard about a new interesting project called androidannotations tried it and it was great, and didn't effect the app performance as it is a preprocessing lib so you can simply do this:

@EActivity(R.layout.status)
public class StatusActivity extends Activity {  
    @ViewById(R.id.updateButton)
    Button updateButton;

    @ViewById(R.id.statusUpdateContent)
    EditText statusUpdateContent;

    @SystemService
    WindowManager windowManager;

    /** Called when the activity is first created. */
    @Override
    public void onCreate( Bundle savedInstanceState ) {
          //doSomething
    }

    @Override
    protected void onStop() {
         //doSomeStuff
    }

    @Click
    void updateButtonClicked() {
        //doSomething 
    }
}

but I've found nothing on how to create perference activity using androidannotations, any ideas?

Was it helpful?

Solution

Pretty straightforward really, AndroidAnnotations has nothing in it to create a preference activity directly. You're asking for something that isn't there. That said, it does have a few annotations to help with SharedPreferences in general.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top