Click here to Skip to main content
15,889,200 members
Home / Discussions / Mobile
   

Mobile

 
QuestionSuggestions on Sensor API Pin
Nitin29057-May-13 21:07
Nitin29057-May-13 21:07 
Questionthis my friends question on android application which i am not able to solve please let help my friend Pin
Member 97729226-May-13 3:47
Member 97729226-May-13 3:47 
AnswerRe: this my friends question on android application which i am not able to solve please let help my friend Pin
0xr00t3r11-May-13 16:16
professional0xr00t3r11-May-13 16:16 
AnswerRe: this my friends question on android application which i am not able to solve please let help my friend Pin
mekalareddy13-May-13 4:37
mekalareddy13-May-13 4:37 
QuestionAndroid Orientation with Video Pin
keyur satyadev6-May-13 0:26
keyur satyadev6-May-13 0:26 
AnswerRe: Android Orientation with Video Pin
Shruti Sruchika7-May-13 0:08
Shruti Sruchika7-May-13 0:08 
GeneralRe: Android Orientation with Video Pin
keyur satyadev7-May-13 22:21
keyur satyadev7-May-13 22:21 
QuestionAndroid activity inheritance Pin
shja884-May-13 4:23
shja884-May-13 4:23 
Hello,
I've been trying to make my first Android app.
I created a library project that cointain an activity called 'Reader':
Java
public class Reader extends Activity {
    private String ID;
    public void setID(String id) {
	ID = id;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_reader);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
	getMenuInflater().inflate(R.menu.activity_reader, menu);
	return true;
    }
}


also i created a (test) project that contain another activity called 'MainActivity':
Java
public class MainActivity extends Reader {
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setID("bla_bla_bla");
    }
}


when it comes to the GUI the inheritance is working well, i can see everything I placed in 'Reader' on 'MainActivity', but when it comes to using inherited methods such as 'setID(String)' i get a compilation error
Eclipse Quote:
The method setID(String) is undefined for the type MainActivity


How can it be?

thank you very much!!!
SuggestionRe: Android activity inheritance Pin
Prasad Khandekar30-May-13 6:31
professionalPrasad Khandekar30-May-13 6:31 
Questionandroid activity inheritance Pin
shja884-May-13 3:59
shja884-May-13 3:59 
Questionhow to execute adb commands from dialog based application? Pin
Le@rner12-Apr-13 0:28
Le@rner12-Apr-13 0:28 
QuestionWindows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 8:11
Tony Palumbo11-Apr-13 8:11 
AnswerRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon11-Apr-13 9:07
mvePete O'Hanlon11-Apr-13 9:07 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 9:27
Tony Palumbo11-Apr-13 9:27 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon11-Apr-13 9:28
mvePete O'Hanlon11-Apr-13 9:28 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 10:02
Tony Palumbo11-Apr-13 10:02 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 10:07
Tony Palumbo11-Apr-13 10:07 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon11-Apr-13 10:31
mvePete O'Hanlon11-Apr-13 10:31 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo12-Apr-13 2:01
Tony Palumbo12-Apr-13 2:01 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon12-Apr-13 2:55
mvePete O'Hanlon12-Apr-13 2:55 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo12-Apr-13 3:22
Tony Palumbo12-Apr-13 3:22 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon12-Apr-13 3:25
mvePete O'Hanlon12-Apr-13 3:25 
GeneralRe: Windows Phone 8 SQLite Question Pin
Sanjay22Tomar18-Apr-13 0:59
Sanjay22Tomar18-Apr-13 0:59 
QuestionInvoke a secure web service from J2ME Pin
Eng.Fatima M10-Apr-13 22:20
Eng.Fatima M10-Apr-13 22:20 
AnswerRe: Invoke a secure web service from J2ME Pin
Prasad Khandekar30-Apr-13 4:03
professionalPrasad Khandekar30-Apr-13 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.