UdhayaBalaji / androidannotations

Automatically exported from code.google.com/p/androidannotations
0 stars 0 forks source link

How to get instance to MyPref_ #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create Simple preferance interface myPref.  
2. Add Scope unique.
3. Add private field MyPref _ prefs; to acitivity class. 
4. Try to retrieve pref member inside some method. 

What is the expected output? What do you see instead?
I got null. I would like to have some documenation/example how to use it. 
Functional tests class is not enough descriptive to know how to use it. 

What version of AndroidAnnotations are you using? On what operating system?
2.1.2 MacOS Lion

Please provide any additional information below, such as the Eclipse "Error
Log" view content if you use Eclipse

Original issue reported on code.google.com by rudolf.m...@gmail.com on 9 Nov 2011 at 9:49

GoogleCodeExporter commented 8 years ago
It seems that you are using it the right way, but I think you just found issue 
118 :-) . We fixed it, but this will be released in 2.2.

Could you try with the latest snapshot build : 
http://repository.excilys.com/content/repositories/snapshots/com/googlecode/andr
oidannotations/androidannotations/2.2-SNAPSHOT/androidannotations-2.2-20111103.1
80525-19.zip

And tell us if you still have issues ?

Original comment by py.ricau on 9 Nov 2011 at 10:04

GoogleCodeExporter commented 8 years ago
I'm making it a duplicate of issue 118, and therefore closing it, unless you 
still have problems (if yes, then tell me ;-) ).

Original comment by py.ricau on 21 Nov 2011 at 9:54