Andrew Tyrer

Greenhorn
+ Follow
since Feb 17, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Andrew Tyrer

I've created an application which shares to facebook, twitter etc. But I want to perform different functions dependent on who the user is sharing to, for instance if the user is sharing to Facebook do one thing but if the user shares to twitter do another.

How do I do this?

My code so far is below:

11 years ago
So far in Android I know how to wall post to the user's wall via the web but I'd like, the app to detect whether the user has the facebook application installed and if so post via that. Does anyone know how to do this?


My code so far is below:


11 years ago

Irina Goble wrote:Have you tried to set the shared history file to null? Something like:

Your activity implements the OnShareTargetSelectedListener interface. Shouldn't you use it as a listener instead of creating an anonymous inner class.



I tried that, couldn't get it to work...

Have you had any luck??

What changes would you make to the above code?
11 years ago
I created a share button on the action bar and although I like the fact it allows me to share to communication components like messaging. I wanted to remove the recently shared button that appears after you've shared to for instance messaging.

I simply can't get the code for this to work.

My code and a link to my project files are below:


Link to project files:

https://www.mediafire.com/?qjysm9suvj1lvjc

**MainActivity


Menu.xml


11 years ago
Sure, I sound silly right now, but I still don't understand. Are you able to explain via an example, thanks
11 years ago
Stuck on how to set up a minimum and maximum date with the DatePicker, so for instance the user can't set the date pass the current date. Similarly the user won't be able select a date before 1960, so far I've been able to set up the DatePicker my code is below:

11 years ago
More than likely. When I use it with a minimum SDK set to 11, the described error occurs



What is the fix for this? Is there another method which actually works?
11 years ago
I'm trying to download a web page source within android using Java, but elsewhere in my program the minimum requirement for SDK within the Android manifest needs to be set at 11 but the below code (to download source) will only work when the minimum SDK version is set to 3.

Is there any changes you would suggest I make to the below code



Code above requires minimum SDK version 3

Rest of code requires minimum SDK version 1


When I change the minimum SDK in android manifest to 11 above code won't work


(By won't work, I mean I get the error "Unfortunately Test has stopped" and then the app closes)
11 years ago