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
Post a Comment