Is there a combined achievements / leaderboard Intent - google-play-services

I incorporated both achievements and leaderboards into my game, but I can't find a way to show them both with a single button press. I know there is
Games.Leaderboards.getAllLeaderboardsIntent(getApiClient());
to show a leaderboard UI and there is
Games.Achievements.getAchievementsIntent(getApiClient())
But is there also an intent where the user can see her full record of both leaderboards and achievements?

No there is not. It is not possible. But you can make your own custom UI. Be aware if you do so that you can't really retrieve scores and rankings for all your leadeboards, so you would only be able to display leaderboards metadata, like name, picture, etc.

You can't do this within your own app, however if the user has the Play Games app installed he/she can see a unified view of Leaderboards and Achievements in that app.

Related

Can you launch the camera app for both photo and video recording?

I'm currently working on an application. I have a button that says "Take Photo or Video", and when the user presses it, I'd like the default camera on either iOS or Android to open. After which, the user would be able to take a single photo or take a single video before confirming they'd like to send it.
I've been looking and testing through packages like react-native-image-picker and react-native-image-crop-picker but they all seem to have a similar problem. I can choose to open the camera so that it will only take a photo, or open the camera to only take a video. Upon closer inspection of the documentation, these packages do not support both. Does anyone know of any packages/methods that will allow the user to choose between the two. E.G when I open the camera on my Samsung phone, I can tap the capture button to take a photo, or I can hold it down to record a video. I would like that functionality for the user if possible so that I do not need separate "take a photo" and "take a video" buttons in my application.

Save Button Pushes and Location

I am making an app where I need to know
every button that was ever pushed by the user in the app, and when it was pushed, and
where the iPhone has gone (using gps), but there are no cell towers in the area so I can't use that significant location changes method everyone uses.
It seems to me like the Plist method for data saving won't work because I don't want the app to start where it left off, I want it to start at the beginning every time.
Also, if any of you have any idea how I can make my app wake up at certain specific times, and/or how I can make it impossible to exit, that would be awesome. This is for an experiment with the University of Queensland St. Lucio Psych Department and the Grute Eylandt Aborigines.
You can know everything the user does in your app if you want. You could use your own solution with an SQLite database for example, and dispatch the data to a server every once in a while.
The GPS is also easy, you could just track the user with the Core Location framework.
You can't make the app wake at specific times, the best you can do is implement push notifications but it's up to the user to open the app via the notification or by themselves by tapping the app icon on the iPhone home screen.
Otherwise you could set up a local notification just before exiting the application, this is faster and easier to implement then setting up push notifications.
There is also no way to stop the app being closed, that is until iOS 6 comes along with it's accessibility features, you can disable the home button then. But not now.

How do you put Game Center Achievements into your iPhone app?

I am very new to Xcode and Objective C. So I need help with the Game Center achievements. I have already set it up on the iTunes connect but don't know how to make them work in my game.
Also, I want to make it so if the user presses a button they get an achievement on Game Center. I have done nothing so far with Gamekit except for import the framework.
Thanks,Kevin
Apple has numerous videos and documentation you can look through to get this done...
https://developer.apple.com/devcenter/ios/gamecenter/
I don't recall the exact API call you will need but you can find it on the Apple developer portal.

Transition between multiple views

In my app I want to show multiple views one after another to show multiple values when the user slides his finger on the screen, just like photo album. I want the same animation. Can anyone explain how I can achieve this?
You can store the images in an array... By using the UISwipeGestureRecognizer you can able to do the photo album.... if you have any doubt communicate with me...
I suggest looking at one of the WWDC 2010 sessions, I believe it was called "Designing apps with scroll views", it basically builds the exact thing your looking for with UIScrollViews. Take a look at the video and the sample code - https://developer.apple.com/videos/wwdc/2010/?id=104 and the sample code should be here http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?code=y&source=x&bundleID=20645
PS! You have to be a iPhone Developer to access this content.

Choose Music from iPhone app? - iPhone SDK

Can anyone give me a head starters on this question. How would I be able to make an app that searches through your music contents that are already synced on your phone and play them. I don't want to do a scroll view, where the user just presses on the options. Instead I want the user to type the song name and if the song is found it will play it.
thanks,
kevin
The class you are looking for is MPMusicPlayerController. It's only available in iPhone 3.0 and above.
Get the instance for your app ([MPMusicPlayerController applicationMusicPlayer]) rather than the iPod instance. You can use this to play the songs once you've located them.
In order to do your own search rather than presenting the typical interface check out MPMediaQuery.
I found this article helpful. It's mostly about iPod player integration, but it touches on these other topics too.