I'm looking to create a simple app that just populates a list from a url displaying json.
Here's the source from the webpage.
PHP:
$json = array('one', 'two', 'three', 'four');
echo json_encode($json);
Obviously the final webpage will show different data but it will be very similar.
All i want is for the app to load that URL, get the data and populate it into a listactivity.
Nothing i've found so far seems to work. What should I look up to help me achieve this?
Related
I'm developing a mobile site that links to generic Marketplace search results pages, but I want to avoid adult content as much as possible. The only valid search URL parameters that I can find are "q=<query>" and "q=pub:<publisher_name>". Is there any way to invoke Safe Search? Google's web Marketplace supports it, and the base URL structure is identical to the app's.
I've listed some examples in the URL below. They all work on Google's web site, but only the last example works on both the web site and the Marketplace app.
xyzzy.t15.org
EDIT: The Marketplace app has a setting for content filtering (in four levels, just like Safe Search). Is it possible that the app parses all externally-called URIs and replaces any Safe Search parameters with its own? After all, I shouldn't be able to override the app's settings. This activity would most-likely take place on the client side (it almost has to), so packet sniffing via a WiFi connection may yield some clues.
So guys, i'm again working with tasker and i'm trying to get the source code of a web page, reachable only after logging in.
I tried to log in so far using HTTP post plugin (don't know if i can add link to market)
So, i post data to the login page, with 2 parameters and values (username and password). Notification says, "post succesful". I don't know why but in the %HTTPR variable i read "301" (HTML error i think, and i think it means Moved page o.o)
What am i doing wrong?
Hi,
I wish to find out the logical names of some activity pages of some of the stock apps. For example, the Device Administrators page under Settings->Security->Device Administrator, as well as the activity that gets called when an app requests for Device Administrator activation/deactivation.
I think the settings app is com.android.settings, correct me if I'm wrong, but does anyone know how to find out the names for the individual activities?
Thanks.
I am new to Android development, hence kindly forgive any unintentional mistakes, if made.
I have a native activity rendering using ES2.0. The app needs to start twitter authentication (it uses twitter4j).
I am starting a new activity with twitter auth url. It shows the login page. I give userId, password, the native browser says now it would be redirected to the previous page or something. Then I see a black screen which apparently is the default browser still on top of the application. If I go to home, and background processes, I see my app and the browser as separate activities which makes sense.
Now my question is , how do I code my app to return back to the application once the authentication ends?
Here is the code flow to start the new activity
1. Native code calls JNI function to start authorization
2. The Java function creates an AsyncTask, in doInBackground() it gets the request token using getOAuthRequestToken(URL) where URL = custom url "app1://callback".
3. in onPostExecute() , app starts new intent activity using this code
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(requestToken.getAuthenticationURL()));
BaseGameActivity.startActivity(intent);
Log.debug("authenticate task post ends");
The problem I am trying to solve:
When I tap on links that are in emails I receive from ebay, then I can only choose in which browser will these links will open and not ebay app itself (which is what I would prefer). Sometimes, instead of a browser opening, gmail app's built-in browser uses the link which automatically transfers me to the app, but that only happens a few times and without me changing any settings (I have only tried changing the WebView Implementation setting from Developer Options (my two options there are Chrome and Android System WebView) but that did not make any difference.
What I want to do:
A possible solution that I have found is an app called Open Link in App (play store link) which, as far as I understand, can be tweaked in order to open specific type of links with specific apps. Some instructions on how this can be done can be found in Github here (this link can also be found in the app's description in play store) but I am not techy enough to follow them. I suppose that the end result after following these instructions would be a modified apk, so could someone please do that for me? If the end result is not an apk but it is still possible for someone to help, that would still be welcome.
Ebay links that are included in the emails start with
Code:
https://rover.ebay.com/rover/
and somewhere in the address they include www.ebay.co.uk or www.ebay.com. Then, when they open in a browser, the address becomes
Code:
https://www.google.com/url?q=https://rover.ebay.com/rover/
and then just https://www.ebay.co.uk/ or https://www.ebay.com/
If you know any other way to achieve what I want, feel free to suggest it (although I have tried many things, including apps like Open Link With... and Better Open With and they did not work)
@k_o_t_s
Re-directing can be managed by editing Android's file /system/etc/hosts
For example, suppose you want to redirect your browser to www.google.com whenever someone types www.facebook.com in the browser address bar, then follows these steps :
Open hosts file.
Find out IP address of www.google.com - IP address is found out to be 74.125.53.100
Start editing at the end of the hosts file : Press Enter to start a new line.
Type 74.125.53.100, press TAB key once followed by facebook.com.
Save the hosts file.
Now whenever you (or someone else) types in your browser’s address bar www.facebook.com, he/she will be redirected to www.google.com. You can follow the same technique on any other websites.
@jwoegerbauer
Thank you for the reply. However, as far as I understand, this is in order to redirect an address to another address (that will still open in a browser). What I want to do is: whenever I tap on a link about an item within an ebay's email, I want ebay APP to open and show the listing of that item.