Espinosa4 Active Member Licensed User Longtime User May 13, 2016 #1 Hi, I am trying to connecting to MySQL database using a service and if there're a new reg I'd like to show an easy notification in notification bar. I am a bit lost. The service Crashes and I am a beginner programmer and I can't fix it by myself Can you help me please? Thanks. Attachments L4Pro Notificaciones.zip 13.7 KB · Views: 120
Hi, I am trying to connecting to MySQL database using a service and if there're a new reg I'd like to show an easy notification in notification bar. I am a bit lost. The service Crashes and I am a beginner programmer and I can't fix it by myself Can you help me please? Thanks.
Erel B4X founder Staff member Licensed User Longtime User May 13, 2016 #2 Why do you need to disable StrictMode? Which error do you get? You should update your code to use HttpUtils2: https://www.b4x.com/android/forum/threads/8339/#content Upvote 0
Why do you need to disable StrictMode? Which error do you get? You should update your code to use HttpUtils2: https://www.b4x.com/android/forum/threads/8339/#content
Espinosa4 Active Member Licensed User Longtime User May 13, 2016 #3 Erel said: Why do you need to disable StrictMode? Which error do you get? You should update your code to use HttpUtils2: https://www.b4x.com/android/forum/threads/8339/#content Click to expand... Because in other program that I use the same code it crashes very often and the app give me an error. Network on main threat. Upvote 0
Erel said: Why do you need to disable StrictMode? Which error do you get? You should update your code to use HttpUtils2: https://www.b4x.com/android/forum/threads/8339/#content Click to expand... Because in other program that I use the same code it crashes very often and the app give me an error. Network on main threat.
Erel B4X founder Staff member Licensed User Longtime User May 13, 2016 #4 Switch to HttpUtils2 and you will never encounter this error. Upvote 0
Espinosa4 Active Member Licensed User Longtime User May 13, 2016 #5 Erel said: Switch to HttpUtils2 and you will never encounter this error. Click to expand... Thank you so much Erel! Your help is very very appreciated for us. But, how can I show and message or text line in notify bar when there're new records? Is it correct more or less my code? Thanks Upvote 0
Erel said: Switch to HttpUtils2 and you will never encounter this error. Click to expand... Thank you so much Erel! Your help is very very appreciated for us. But, how can I show and message or text line in notify bar when there're new records? Is it correct more or less my code? Thanks
Erel B4X founder Staff member Licensed User Longtime User May 15, 2016 #6 I don't see any call to Notification.Notify. Upvote 0
Espinosa4 Active Member Licensed User Longtime User May 15, 2016 #7 Erel said: I don't see any call to Notification.Notify. Click to expand... Yes. You're right. I am still learning how I have to change the call using HttpUtils2. Sorry but with the component help I am still lost. I am a great dummie. Cheers. Upvote 0
Erel said: I don't see any call to Notification.Notify. Click to expand... Yes. You're right. I am still learning how I have to change the call using HttpUtils2. Sorry but with the component help I am still lost. I am a great dummie. Cheers.