Click here to Skip to main content
11,645,889 members (67,791 online)
   

Mobile

 
QuestionSuggestions on Sensor API Pin
Nitin29057-May-13 21:07
memberNitin29057-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
memberMember 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
member0xr00t3r11-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
membermekalareddy13-May-13 4:37 
QuestionAndroid Orientation with Video Pin
keyur satyadev6-May-13 0:26
memberkeyur satyadev6-May-13 0:26 
AnswerRe: Android Orientation with Video Pin
Shruti Sruchika7-May-13 0:08
memberShruti Sruchika7-May-13 0:08 
GeneralRe: Android Orientation with Video Pin
keyur satyadev7-May-13 22:21
memberkeyur satyadev7-May-13 22:21 
QuestionAndroid activity inheritance Pin
shja884-May-13 4:23
membershja884-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':
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':
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
membershja884-May-13 3:59 
NewsMessage Automatically Removed Pin
22-Apr-13 14:02
memberStaceycook0322-Apr-13 14:02 
Questionhow to execute adb commands from dialog based application? Pin
Le@rner12-Apr-13 0:28
memberLe@rner12-Apr-13 0:28 
QuestionWindows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 8:11
memberTony Palumbo11-Apr-13 8:11 
AnswerRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon11-Apr-13 9:07
protectorPete O'Hanlon11-Apr-13 9:07 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 9:27
memberTony Palumbo11-Apr-13 9:27 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon11-Apr-13 9:28
protectorPete O'Hanlon11-Apr-13 9:28 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 10:02
memberTony Palumbo11-Apr-13 10:02 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo11-Apr-13 10:07
memberTony Palumbo11-Apr-13 10:07 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon11-Apr-13 10:31
protectorPete O'Hanlon11-Apr-13 10:31 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo12-Apr-13 2:01
memberTony Palumbo12-Apr-13 2:01 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon12-Apr-13 2:55
protectorPete O'Hanlon12-Apr-13 2:55 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo12-Apr-13 3:22
memberTony Palumbo12-Apr-13 3:22 
GeneralRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon12-Apr-13 3:25
protectorPete O'Hanlon12-Apr-13 3:25 
GeneralRe: Windows Phone 8 SQLite Question Pin
Sanjay22Tomar18-Apr-13 0:59
memberSanjay22Tomar18-Apr-13 0:59 
QuestionInvoke a secure web service from J2ME Pin
Eng.Fatima M10-Apr-13 22:20
memberEng.Fatima M10-Apr-13 22:20 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 22 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid