java - How to set value in text view from other Android app -


i need set value in app instaled in devise other app or service or broadcast

is homework...

example first app package

com.example.example1 

second app package

com.example.example2 

my textview id in first app

r.id.textview 

in activity of application want should make textview this:

textview = (textview) findviewbyid(r.id.textview); 

then after in same application call:

textview.settext("text want"); 

if that's not you're looking please expand more on want do.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -