We are simply trying to set up a link from an Android app to open the ebay android app with our affiliate ID.
This may not be the most appropriate place to ask this question, so we appreciate any advice on where to look or post the question.
Using the following java code, we can open an affiliate link in the mobile browser on android. The URLString is just a generated link with our affil ID searching for keywords in categories.
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData( Uri.parse(URLString));
startActivity(i);
However, the mobile site is not ideal as many ebay users on android are logged in via ebay's app! This would be the best experience for the user.
Using the following code, we can open the ebay app, and search for our keywords...
Intent i = new Intent(Intent.ACTION_MAIN);
i.putExtra(SearchManager.QUERY, keywords[1]);
i.setData( Uri.parse(URLString));
i.setPackage("com.ebay.mobile");
startActivity(i);
This is great, but now our money making affiliate info is lost in the mix. (note this needs to catch the exception if ebay app is not installed)
We are able to pass the keywords via searchManager, but not the affil info.
There is an example of how passing that info might work here, if ebay supported it:
http://developer.7digital.com/7digitalonMobile
If anyone can help us solve this problem or meet our goal we would be most appreciative..