- Forum posts: 1
Nov 21, 2014, 10:57:25 AM via Website
Nov 21, 2014 10:57:25 AM via Website
im new with in this Forum and with android coding and want first to say hello to everyone here
(sry for my poor english)
I use eclipse with the sdk, because android studio haves now to many bugs and hangover to do something. To start android i am trying to build an app with can control a admin gui (Website) from my hoster. I build this using get and post to the httpserver and an http Parser, Login and some parts are already done.
Now im seeing that my acitivitys are growing for each Change or Infosite of the Website. Is it normal that some applications haves 15+ Activitys or maybe is there a better solution (show/hide Containers of gui elements?), generate it by the programm code?
The Secound Question is i use asynctask and i try to build a new class for asynctask for the get and post methodes i use in nearly every activity. So ican save sourcecode in each Activity. I havent find a good solution how i can update the ui when asynctasc is complete and i want to start a function from the ui thread.
I have trial to use globalvariable and a broadcast reciver but this just work in non-threated classes. I am searching now over 2 days goolge to find a good solution, without to intigread asynctask in every activity and use onPostExecute Methode.
hope my english is understandable