I have several questions
- Do I need to call this line of code in each activity or those activities where I call the API
Backendless.initApp( getApplicationContext(), KEY.Defaults.APPLICATION_ID, KEY.Defaults.API_KEY );
- I am using this line of code to check if the user is log in or not
BackendlessUser user = Backendless.UserService.CurrentUser(); if (user == null){ Toast.makeText(this, "User Not Login", Toast.LENGTH_SHORT).show(); }else {
}
but it always returns null
- I am trying to create a relation I saw the documentation but still confused can I use this method to create a relation
class PhoneNumber { private String personName , personNumebr ; // declaring getters an }setters etc... }
BackendlessUser u = new BackendlessUser () ; PhoneNu pn = new PhoneNumber( > > pn.setPersonName("Saad"); pn.setPersonNumber("997"); u.setProperty ("userPhoneNumber" , pn) ;