Add SIP Account Programmatically - android

In my app, SIP registration was successfully done,but when i am checking in my phone weather account is added or not, account is added but when i am clicking on that then popup appears with two option:
1.Close Profile
2.Cancel
So there may be account not successfully added.So please suggest me to solve this issue.Thank you.

Have a look at this post and this post if you're okay w/launching the native sip-settings dialog and then reading the settings out afterwards. You could also do as another user suggested and use a service.
See the official Android SIP API for the latest, in case such an option has become available.

Related

How to include my app as account in android settings

I want to register/include my app account as 'Account' in android settings. What does this feature called or how to do it?
I recommend reading this link. It'll answer all your questions on AccountManager that is used for this.
If you want to move ahead with AccountManager, this link provides more details on how to set up a custom account type.

App not setup: This app is still in development mode

I have followed the instructions here:
The developers of this app have not set up this app properly for Facebook Login?
Made my app public and the circle is green so the app is public.
But when I try to login, I go to the Facebook app, it asks me to login which I do and then I get this message:
App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.
BTW: I am the admin
Any help is much appreciated. I am using SeattleClouds and this happens on both iOS and Android.
STEP 1:
In Settings -> Basic -> Contact Email. (Give your/any email)
STEP 2:
in 'App Review' Tab : change
Do you want to make this app and all its live features available to the general public? Yes
This is an answer I haven't seen much around (this it was in a comment somewhere) although yes taking the app off development mode will work this can be bad for security or really annoying if the app isn't ready yet but you need to submit the app for review on account of needing access to special permissions (e.g. user_birthday).
What I did instead to fix the error was go to https://developers.facebook.com/sa/apps/{appId}/roles/ or from the app dashboard click roles on the left side
Then add the user account(s) to either developer or tester. Developers will need to be verified by mobile and will get access to the app to make changes but a tester will only need to be verified by email (not sure if even this is necessary but it probably is) and will only be able to use the API instead of make changes to settings.
If the app is ready for the public, obviously just take the app off development mode.
Issue Log: App Not Setup. This app is still in development mode. and you dont have access to it. register test user or ask an app admin for permission
The app are not in Live Mode
You are not listed as admin or a tester in https://developers.facebook.com/app/yourapp
Your App Hashkey are not set. if Facebook app cant be on Live Mode you need a hashkey to test it. because the app are not yet Live. Facebook wont allow an access.
HOW TO CHANGE TO LIVE MODE
1. go to : https://developers.facebook.com
2. select your app on "My Apps" List
3. toggle the switch from OFF to ON
HOW TO ADD AS TEST OR ADMIN
1. go to : https://developers.facebook.com
2. select your app on "My Apps" List
3. go to : Roles > Roles > Press Add for example administrator
4. Search your new admin/tester Facebook account.
5. admin must enter facebook password to confirm.then submit
the new admin must go to developer.facebook page and accept the request
6. go to : https://developers.facebook.com
7. Profile > Requests > Confirm
8. Congratulation you have been assign as new Admin
HOW TO GET AND SET HASHKEY FOR DEVELOPMENT
as Refer to Facebook Login Documentation
https://developers.facebook.com/docs/android/getting-started/#create_hash
The most preferable solution by me is by code ( Troubleshooting Sample Apps )
it will print out the hash key. you can update it on
https://developers.facebook.com/apps/yourFacebookappID/settings/basic/
on Android > Key Hashes section
a step by step process on how to get the hashKey.
Firstly Add the code to any oncreate method
Run The app and Search the KeyHash at Logcat
step by step process on how Update on Facebook Developer.
Open Facebook Developer Page. You need access as to update the Facebook Developer page.https://developers.facebook.com
Follow the step as follow.
2021 UPDATE
I have done successfully Login with Facebook by doing below things. Now it is working fine.
As per described by George Mano
Visit Facebook Apps Page and select your application.
Go to Settings -> Basic.
Add a 1 Contact Email, 2 Privacy Policy URL, 3 User Data Deletion and choose 4 Category and Last 5. Live your application
The Privacy Policy URL should be a webpage where you have hosted the terms and conditions of your application and data used.
The General Data Protection Regulation (GDPR) requires developers to provide a way for people to request that their data be deleted. To be compliant with these requirements, you must provide either a data deletion request callback or instructions to inform people how to delete their data from your app or website
Toggle the button in the top of the screen, as seen below, in order to switch from Development to Live.
captain_a is right that your app needs to be public with a developer email address. But if you are still getting the error then make sure that your website is using an SSL certificate.
For more detailed information and workarounds please checkout my answer at Facebook app is Public, but gives error "App not setup" when logging in
I had the same problem and it took me around one hour to figure out where i went wrong only to note that i had used a wrong app id....just go to your code and used a correct id here
window.fbAsyncInit = function() {
FB.init({
appId : '1740077446229063',//your app id
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
version : 'v2.5' // use graph api version 2.5
});
2020 UPDATE
Visit https://developers.facebook.com/apps/ and select your application.
Go to Settings -> Basic. Add a Contact Email and a Privacy Policy URL. The Privacy Policy URL should be a webpage where you have hosted the terms and conditions of your application and data used.
Toggle the button in the top of the screen, as seen below, in order to switch from Development to Live.
I did what is written in this answer and still had the same problem, then I downloaded the facebook app, logged into my facebook admin account from my phone. TADAA! it worked.
When app is release some time that case
https://developers.facebook.com/apps/{$appid}/alerts/
"Your app has been placed into development mode due to an invalid Privacy Policy."
can change you app from release mode to development mode
so check the Privacy Policy
Go to Settings->Basic, on top you will find a Switch button which will say App is in development mode.
Click on in development switch button, it will ask you to make app live, and after providing all necessary things, it will become live.
Facebook and Instagram apis were perfectly working fine but they suddenly stopped working due to invalid privacy policy statement. Facebook deactivated api access.

App registration to access Uber api

I have been trying to link Uber api to my app.
The User registration is successful but when i tried to create an app it says "Before you can create an application, we need to confirm your phone number."
How do i confirm my number to proceed further ?
Any input ?
To confirm your mobile number, just text the word go to 827-222.
If you don’t get a reply saying that your number was confirmed or the response is "Message blocking is active," your mobile service provider may be blocking you from texting our number. Give your provider a call to see if they will let you text 827-222.
Google Voice users may have to login to http://google.com/voice in order to text the word go to 827-222.
Still having trouble confirming your mobile number? We can help you at t.uber.com/support
If after doing this, and you still cannot create an application, please try to logout of the developer portal by visiting:
https://developer.uber.com/apps/logout
There was a caching issue where the developer portal didn't recognize when a mobile number was successfully confirmed.
Go to this link on uber Help page and enter your mobile number. Somebody from their support will get back to you over email. Explain the issue to them and they will resolve it for you from their internal tool/backend system. This is how I resolved it for myself.

Loggin with G+ only for a comunity

I want to start a project where to use the app you need to be in a comunnity of G+.
SO I thought in different ways to do it:
Send registration and wait until and "admin" gives you permission
Use Loggin with G+, and then ask for validation
USe Loggin with G+, and see if you are in a concrete community, and let you log in or not.--> That solution will be perfect, but I don't know if is it possible to do.
So my question is:
Taking care that first 2 options are possible, I want to know if the third one can be done. And if is it possible, where can I find info? (I didn't see anything)
Thanks for all
There is not currently an API to identify what communities a Google+ user is in. There is an open feature request.

"Error retrieving information from server RPC S-7 AEC-0" while testing Google in-app billing

I am trying to implement Google in app billing to my Application. I created SKU product id and implemented the billing process in code. While I am trying to test the in-app billind after I enter all the test account details, location, phone no etc and clicking save button it gives the error "Error retrieving information from server RPC S-7 AEC-0". I too published the app created the test account and signed in to the device with test account.
Can any one please help me to fix this. I am totally messed up....
I got the same problem while implementing the in app billing version 3 into my project. It is very awkward issue.we have tried to resolve it and tried to find out the solution but we can not found any solution to resolve it, searched on Google or Stack Over Flow and many other sites but no luck.Have try to remove account account from the phone and clear cache of play store but not getting success.
I think this is fault on previous sample code and that is solved in the new sample code.
what you should do to get solution?
I believe you just have to get the updated code the the in-app billing classes and you shouldn't run into the same problem again.
Google hasn't pushed out the changes to the SDK Manager yet as far as I know. Just copy/paste the new classes into yours and you shouldn't run into the problem any longer.
and also remove your code of purchase product activity(MainActivity in the sample code).
Get the new code changes here:
https://code.google.com/p/marketbilling/source/detail?r=7ec85a9b619fc5f85023bc8125e7e6b1ab4dd69f&path=/v3/src/com/example/android/trivialdrivesample/MainActivity.java
Hope it will help you.
If other ways didn't help, try to make sure that no apps have made any changes to your system settings, for example, disabling the permissions of google play services, something like this.
Note that only cards with a US billing address can be added on the Wallet app.
Go to Settings and tap Credit and debit cards.
Tap the + sign, on the top-right corner, and enter your card's information. If you see a camera icon in the "Card number" field, you can take a picture of your card's number instead of entering it manually.
Tap Add credit or debit card.
Reference:
https://support.google.com/wallet/troubleshooter/3222463?hl=en&ref_topic=3209985#ts=2896139,2896157

Categories

Resources