android - Does anyone know how to get Edittext value in service? -


i want access edittext value in service don't no exact way of doing that. have done code.

context context = getapplicationcontext;  edittext et = (edittext)context.findviewbyid; 

but doesn't give me findviewbyid method.

can give me hint how can access edittext value in service.

following code may edittext in service

context = getapplicationcontext(); activity a=(activity)context; edittext edittext = (edittext)a.findviewbyid(r.id.edittext1); 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -