I have a super simple php script that runs successfully when I paste the url into a browser (windows, chrome).
My php code has values hardcoded in it and these values are successfully inserted into mySql database (running on a WAMP).
At this point EVERYTHING is hardcoded in the php.
I appreciate any help, I think I am missing something fundamental (new to android development).
I can not access/run this same script from my andoroid app. Do I need to run it async? I simply have the below code in a function that is run when the button is clicked on the phone (using an emulator so phone displays app while I am in debug mode in Android.)
It bombs out on the last line. Strangely debug (IOException) value is blank.
Notification messages are only received in onMessageReceived() when the app is in the foreground. When the app is in the background, an automatically generated notification is displayed. When the user taps on the notification they are returned to the app.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Thanks for reply.
But actually I want to update one value in sqlite after getting a notification. I had done code with this in message received method but problem is that, when app is in background, then I will get notification but can't update value in sqlite.
So tell me any solution.
and when one of my drawer item is selected i have this code
// Create a new fragment and a transaction.
FragmentTransaction fragmentTx = this.FragmentManager.BeginTransaction();
Fragment1 aDifferentDetailsFrag = new Fragment1();
// The fragment will have the ID of Resource.Id.fragment_container.
// Commit the transaction.
Toast.MakeText(this, "Home:", ToastLength.Long).Show();</pre>
as you can see i have a click event that is triggered when the button is clicked. The code to handle the event of the button is defined in the fragment class file like this
//Find Controls to hook
Button btn_details_save = FindViewById<Button>(Resource.Id.btn_details_save);
// set onclick listener here, by deleting some process
btn_details_save.Click += delegate
and he function itself is defined like this
Now when i run the application, the button is click the button the following error occurs
AndroidRuntime(19059): java.lang.IllegalStateException: Could not find method btn_details_saveClick(View) in a parent or ancestor Context for android:onClick attribute defined on view class Button with id 'btn_details_save'
Please note that this is C# code , which means i am using xamarin ,but the error is Android related not Xamarin.
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.