android - Error with extends Fragment -


i trying working don't can. want login facebook don't now. example?

public class login extends fragment {  @override public view oncreateview(layoutinflater inflater, viewgroup container,     bundle savestancestate){      view view = inflater.inflate(r.layout.activity_login, container, false);      loginbutton = (loginbutton) view.findviewbyid(r.id.login_button);     loginbutton.setreadpermissions("user_friends");     loginbutton.setfragment(this);       // callback registration     loginbutton.registercallback(callbackmanager, new facebookcallback<loginresult>() {      });     return inflater.inflate(r.layout.activity_login, container, false); } 

your return purposed new inflated view, code should this:

view view = inflater.inflate(r.layout.activity_login, container, false); ... return view; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -