Strange Issue with Facebook Android Example - android

I am trying to implement the Single-Sign-On (SSO) example given on http://developers.facebook.com/docs/guides/mobile/#android. I have followed all the steps as mentioned in the example.
But when the application runs on the emulator a dialog box with facebook title only comes and then disappears.
I have tried to implement this solution but nothing seems to work.
Please help me on this
Thanks,
Pankaj Khurana

Restarting the emulator fixed the problem for me.
And FYI, it would still work even if you do not change the default app id.

I have checked internet on my emulator it was not working. After configuring it the application worked perfectly.

Related

App isn't installed on your device error in very first program

There seem to be too many bugs which have not been properly documented, regarding android studio. I am trying to run a basic Hello world app, and this error is truly making me give up any more efforts.
What I did:
Open Android studio(also tried running as administrator) and tried to run the default Hello world app on an Android 10 device(Xiaomi). At the start it shows Failed to start monitoring 7D8XXCOJGQQCZLJV(device number). At first I ignored it being a beginner and clicked on the run button. The file was successfully built and the RUN section shows 'Install successfully finished'.
Now for clarity here are some screenshots that will display what happened on my android device after the above steps:
The app seemed to be installed correctly, but whenever I click on the app logo the response I get is really frustrating:
As per the this link I tried to go to the device manager and do some changes, by setting and enabling Xiaomi drivers for Portable devices.
But then windows shows:
If anybody knows how to solve this, please do help me in doing so. It is quite discouraging to experience so many errors, right at the beginning. If somebody could give a working solution then that would really help me in continuing my android journey.
There was just a tiny error that led to this entire problem. This was because I had set the value of android:exported="false" in the main activity, which had to be set to true. Hope that this may help anybody in the future!
set the value of android:exported="true" in the AndroidManifest

Place Autocomplete closes immediately after launch

i have implemented auto place search(autocomplete intent) in my apps . it was working well few days ago but now the popup search intent closing immediately after open. I have google it but found no answer. I have followed this answer but it did not work. What is the problem? can anyone help me to solve this please.
i have solved the problem by myself. The error occurred due to the update of android studio. after update, the SHA1 key was changed so i just adjust it to the google console and all works fine again.

Opening an Android App Link will cause Android System to Crash

I wanted to see if anyone else is running into this issue. I have Android App Links setup for my app and site. Things were working fine, but after I've updated the gradle wrapper and other libraries every time my I try my Android App Link it will cause Android to throw the modal that says...
"Unfortunately, Android System has stopped"
And it will not open my application. However it works when i try to open using the traditional URI scheme deeplink.
Any help will be greatly appreciated. Thank you.
Figured it out.
The issue was that my icon was too big for the device to render on the modal that pops up. Changing that to an appropriate size fixed it.

React Native Xiomi-Android 4.4 - MainActivity Permission Denied. Works Fine in Genymotion-4.4

The Problem: Please see this link DropBox Image Link
I have gone through almost all answers. First of all I want to tell what I have already tried -
Wifi issue - I think, this is not my problem but for considering issue My phone and My Mac both are in same Wi-Fi.
I have also gone through this Issue On Github and All links commented by people in this issue. Because That is the exact problem I have.
Finally I tried , The code which is working in my genymotion android 4.4, I took appdebug.apk, put into my mobile xaiomi with android-4.4 and installed it manually . And uhhh... same thing. just white screen nothing else.
So Last thing i thought there may be some permission issues, So I checked out in my phone that "pop-up are blocked". So I un-blocked it manually and whoaaaa.. finally I got this Image Link
Now Please if someone have any solution which is not in Internet, Please provide. If issue will be solved, I will order a Pizza for you :).

Eclipse LogCat showing system messages but not messages of testing my app

I know this may have been asked here before, but still didn't get any solution. I have closed logcat and reopened it, closed eclipse then restarted it, nothing helps. This was working perfectly before but suddenly I found out that logcat not showing messages of my apps anymore, it is showing device messages only. I use a spice mobile device instead of emulator, at first I thought it can be a problem related to device, but then tried the same with android emulator and same thing happened. What have gone wrong? What should I do now?
Create a filter for your app using the package name.
Eclipse do it automatically when you launch your app, but it fails sometimes.
Hope this helps.
Can u see these? Try Android Studio.
images to all messages!

Categories

Resources