Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open VK app using a contact ID ? #84

Closed
AndroidDeveloperLB opened this issue Nov 26, 2014 · 17 comments
Closed

How to open VK app using a contact ID ? #84

AndroidDeveloperLB opened this issue Nov 26, 2014 · 17 comments

Comments

@AndroidDeveloperLB
Copy link

For Facebook I can use this:
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("fb://profile/%s", friendId)));

For LinkedIn I can use this:
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("linkedin://profile/%s", friendId)));

What can I do in order to open VK app for the page of the chosen VK-user ?

@grishka
Copy link

grishka commented Nov 26, 2014

Yes, it's done the same way:
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("vkontakte://profile/%d", friendId)));
If you need to open a community, use the same URL but add the minus sign to the community ID.

@AndroidDeveloperLB
Copy link
Author

@grishka Hey it works !
Thank you. You should visit StackOverflow and put this answer.
I've written a question there about this too, and if you wish, I can mark yours as the correct one:
http://stackoverflow.com/q/27043676/
Thank you for helping me.
Can you please point to the website you've searched for it? I've searched for it in a lot of places...

@RomanTruba
Copy link
Contributor

@AndroidDeveloperLB he found the answer in his sources

@AndroidDeveloperLB
Copy link
Author

@Dreddik What sources? in the VK app? or here in the SDK ?

@RomanTruba
Copy link
Contributor

@AndroidDeveloperLB yes, VK app sources. He looks like VK app developer, I guess ;)

@grishka
Copy link

grishka commented Nov 26, 2014

@AndroidDeveloperLB I'm a developer of this app.

@AndroidDeveloperLB
Copy link
Author

@grishka Cool. Thank you.

@illarionov
Copy link

Так вот что за Гриша там в комментариях!

@AndroidDeveloperLB
Copy link
Author

@illarionov I don't speak Russian. Google translate says you wrote "So what kind of Grisha there in the comments!" .
I'm not sure what it means. Maybe a complement for Grishka?
Anyway, if you wish to know, this is an app I'm working at, which is why I've asked this question:
https://play.google.com/store/apps/details?id=com.syncme.syncmeapp
And this is something I've made on my spare time: https://play.google.com/store/apps/details?id=com.lb.app_manager

@grishka
Copy link

grishka commented Nov 26, 2014

@AndroidDeveloperLB more accurate translation would be "that's Grisha from those comments". :)
Didn't know somebody committed comments referencing me to a public repository, though.

@AndroidDeveloperLB
Copy link
Author

@grishka Grisha Or Grishka? and what comments?
and what public repository?
I'm very confused right now.

@grishka
Copy link

grishka commented Nov 26, 2014

@AndroidDeveloperLB lol, okay, let me explain. My real name in Russian is Григорий (Grigoriy), Gregory in English. Grishka (Гришка) and Grisha (Гриша) are some of its alternate forms. This comment:
//Что-то пришло от Гриши
is translated as
//We've got something from Grisha

@AndroidDeveloperLB
Copy link
Author

@grishka So you've published your name on the code ?
(:

@grishka
Copy link

grishka commented Nov 26, 2014

@AndroidDeveloperLB not me, Roman who developed the SDK :)

@illarionov
Copy link

@AndroidDeveloperLB great app.
My comment was off-topic. Sorry for this.
The comment line VKSdk.java#L270 in the source code of the Vkontakte SDK was mysterious and unclear, even for Russian-speaking people.

@AndroidDeveloperLB
Copy link
Author

@illarionov Which app ?
Anyway, thank you all. May I ask here other questions about VK when and if they appear?

@jespertheend
Copy link

Is there any way to open the app with a share intent similar to https://vk.com/share.php?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants