Click here to Skip to main content
12,349,148 members (56,453 online)
   

Mobile

 
SuggestionRe: Real-time messaging application Pin
Prasad Khandekar16-May-13 5:21
professionalPrasad Khandekar16-May-13 5:21 
NewsGame Apps Pin
jalsonia8-May-13 9:23
memberjalsonia8-May-13 9:23 
GeneralRe: Game Apps Pin
Abhinav S15-May-13 8:17
mvpAbhinav S15-May-13 8:17 
GeneralRe: Game Apps Pin
jalsonia15-May-13 11:05
memberjalsonia15-May-13 11:05 
Question.NET Developer beginning to develop Mobile Apps which tool should I use? What do you use? Pin
Vixanna8-May-13 4:59
memberVixanna8-May-13 4:59 
SuggestionRe: .NET Developer beginning to develop Mobile Apps which tool should I use? What do you use? Pin
Prasad Khandekar16-May-13 5:30
professionalPrasad Khandekar16-May-13 5:30 
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 
AnswerRe: Invoke a secure web service from J2ME Pin
Prasad Khandekar30-Apr-13 4:03
memberPrasad Khandekar30-Apr-13 4:03 
GeneralRe: Invoke a secure web service from J2ME Pin
Eng.Fatima M10-May-13 1:57
memberEng.Fatima M10-May-13 1:57 
QuestionWindows Phone 8 SQLite Question Pin
Tony Palumbo10-Apr-13 6:43
memberTony Palumbo10-Apr-13 6:43 
AnswerRe: Windows Phone 8 SQLite Question Pin
Pete O'Hanlon10-Apr-13 6:49
protectorPete O'Hanlon10-Apr-13 6:49 
GeneralRe: Windows Phone 8 SQLite Question Pin
Tony Palumbo10-Apr-13 7:13
memberTony Palumbo10-Apr-13 7:13 
QuestionEmergency Pin
kakah100010-Apr-13 1:00
memberkakah100010-Apr-13 1:00 
AnswerRe: Emergency Pin
Kenneth Haugland10-Apr-13 1:06
professionalKenneth Haugland10-Apr-13 1:06 
GeneralRe: Emergency Pin
frazzle-me15-Apr-13 12:01
professionalfrazzle-me15-Apr-13 12:01 
AnswerRe: Emergency Pin
frazzle-me10-Apr-13 2:08
professionalfrazzle-me10-Apr-13 2:08 
AnswerRe: Emergency Pin
Nier Wong16-Apr-13 22:26
memberNier Wong16-Apr-13 22:26 
GeneralCrete a APK file for sencha Pin
Member 76840759-Apr-13 20:55
memberMember 76840759-Apr-13 20:55 
AnswerRe: Crete a APK file for sencha Pin
Prasad Khandekar30-Apr-13 4:10
memberPrasad Khandekar30-Apr-13 4:10 
Questionservice to get running application list Pin
prashant@maverick7-Apr-13 20:04
memberprashant@maverick7-Apr-13 20:04 
Questionhow to send gps data via tcp socket from android Client to a .net server and store it in a table of sql server database Pin
haidsai4-Apr-13 12:06
memberhaidsai4-Apr-13 12:06 
AnswerRe: how to send gps data via tcp socket from android Client to a .net server and store it in a table of sql server database Pin
Prasad Khandekar30-Apr-13 4:33
memberPrasad Khandekar30-Apr-13 4:33 
AnswerSolved! Convert apk to jar Pin
jojoba201130-Mar-13 4:21
memberjojoba201130-Mar-13 4:21 
AnswerRe: Convert apk to jar Pin
ProgramFOX30-Mar-13 4:47
member ProgramFOX30-Mar-13 4:47 
QuestionRe: Convert apk to jar Pin
jojoba201130-Mar-13 10:48
memberjojoba201130-Mar-13 10:48 
AnswerRe: Convert apk to jar Pin
ProgramFOX30-Mar-13 22:52
member ProgramFOX30-Mar-13 22:52 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 23 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid