Click here to Skip to main content
15,884,739 members
Home / Discussions / Android
   

Android

 
GeneralRe: Access MySql using php script from Android app.. Pin
Member 1341654720-Sep-17 19:24
Member 1341654720-Sep-17 19:24 
SuggestionRe: Access MySql using php script from Android app.. Pin
David Crow20-Sep-17 16:52
David Crow20-Sep-17 16:52 
GeneralRe: Access MySql using php script from Android app.. Pin
Member 1341654723-Sep-17 15:03
Member 1341654723-Sep-17 15:03 
QuestionFCM notification Pin
Malashree Halade9-Sep-17 3:26
Malashree Halade9-Sep-17 3:26 
AnswerRe: FCM notification Pin
David Crow9-Sep-17 4:55
David Crow9-Sep-17 4:55 
GeneralRe: FCM notification Pin
Malashree Halade9-Sep-17 5:38
Malashree Halade9-Sep-17 5:38 
GeneralRe: FCM notification Pin
Malashree Halade9-Sep-17 5:41
Malashree Halade9-Sep-17 5:41 
QuestionRe: FCM notification Pin
David Crow9-Sep-17 14:31
David Crow9-Sep-17 14:31 
Generalfor googple map serach location Pin
Member 133938216-Sep-17 2:23
Member 133938216-Sep-17 2:23 
QuestionRe: for googple map serach location Pin
David Crow6-Sep-17 3:14
David Crow6-Sep-17 3:14 
QuestionRe: for googple map serach location Pin
Richard MacCutchan6-Sep-17 3:55
mveRichard MacCutchan6-Sep-17 3:55 
QuestionRe: for googple map serach location Pin
thatraja6-Sep-17 4:33
professionalthatraja6-Sep-17 4:33 
QuestionIssue navigating to a Fragment Pin
Vimalsoft(Pty) Ltd3-Sep-17 10:56
professionalVimalsoft(Pty) Ltd3-Sep-17 10:56 
Question(View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd30-Aug-17 7:22
professionalVimalsoft(Pty) Ltd30-Aug-17 7:22 
SuggestionRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow30-Aug-17 10:35
David Crow30-Aug-17 10:35 
GeneralRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd30-Aug-17 11:08
professionalVimalsoft(Pty) Ltd30-Aug-17 11:08 
Thanks for your reply David

"My first concern is that you are declaring the click handler twice: once in the layout file, and again in code. Use one or the other, but not both."

I thought we have to add the click event on the layout file and add hookup the event to the button also in the initialization of the Activity. i learned, thanks. i am coming from asp.net background

i have changed my function in my frament page to be like this

public void btn_details_saveClick(View  view)
        {

had
 //// set onclick listener here, by deleting some process
//btn_details_save.Click += delegate
//{
//    btn_details_saveClick();
//};

and i ran it and i got the Error

java.lang.IllegalStateException: Could not find a method btn_details_saveClick(View) in the activity class android.support.v7.widget.TintContextWrapper for onClick handler on view class android.support.v7.widget.AppCompatButton with id 'btn_details_save'

i have also have a example project( 9mb) on this link Example Project

To Reproduce the Error
1) Open the drawer

2) Click on loan application and click the button "Continue" and you will get an Error

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vimalsoft.com
vuyiswa[at]vimalsoft.com


modified 30-Aug-17 18:00pm.

QuestionRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow31-Aug-17 3:56
David Crow31-Aug-17 3:56 
AnswerRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd31-Aug-17 4:00
professionalVimalsoft(Pty) Ltd31-Aug-17 4:00 
AnswerRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow31-Aug-17 4:23
David Crow31-Aug-17 4:23 
GeneralRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd3-Sep-17 10:49
professionalVimalsoft(Pty) Ltd3-Sep-17 10:49 
SuggestionAndroid Notification by App Pin
Andy_Bell27-Aug-17 6:58
Andy_Bell27-Aug-17 6:58 
QuestionRe: Android Notification by App Pin
David Crow27-Aug-17 13:00
David Crow27-Aug-17 13:00 
AnswerRe: Android Notification by App Pin
Andy_Bell27-Aug-17 20:59
Andy_Bell27-Aug-17 20:59 
QuestionRe: Android Notification by App Pin
David Crow28-Aug-17 2:05
David Crow28-Aug-17 2:05 
AnswerRe: Android Notification by App Pin
Andy_Bell28-Aug-17 3:40
Andy_Bell28-Aug-17 3:40 

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.