java - App code design Problems -


so, i'm having 2 main code design problems in app...

my app consists in sending ssh commands remote host. right have separated thread (singleton) wich gets messages through handler wich specifies wich next command sent, or username/password/ip (kind of messy works...).

this approach works unidirectional commands, i'm planning make bidirectional wich don't know how implement. far know android doesn't allow change ui elements thread listener pattern wouldn't it.

also, read shouldn't save things in application object, wich i'm doing saving whether app running full or lite mode... don't know should save in order not make hackable (sqlite-sharedprefs editable...)

only general hint: there activity.runonuithread() execute code (later) on main thread.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -