First of all, let me emphasize that we are not looking for a specific code snippets for a solution. We believe that this problem of ours started with some design flaws. So we are looking for a general direction with which we can start looking for specific methods to solve this issue.
We have an app that has an notice board where admins and users can create threads.
However, we made a thread where people can download our excel template. We posted our link to this excel file like so:
(I apologize for non-English thread as we are located in Korea)
So in this thread page, the image in the middle is the link.
When you tap(click) on this image, a more detailed download page shows up.
When you press the download button, nothing happens. It is supposed to automatically lead to downloading process but it does not.
I suspect that the problem resides in our application structure where whatever a user does in the thread stays in the webview and webview only. Is there any way to make this download take place? The only workaround we found is to press and hold the link button until some options show up and press "open in the browser". However, this is quite inconvenient for normal users and we need to fix this.
Thanks a lot!
Related
I'd like to offer an app to modify images. In order to have the user give an easy access to the that feature, it would be the easiest solution to just let him directly take a screenshot to have the source picture taken or respond to a screenshot event and access the latest screenshot.
Unfortunately it seems to be a problem, since an app or even a service from the app runs in background cannot easily react to events and I haven't found any solution that would go only little close to that kind of thing.
So my questions are (lets assume all necessary permissions are given from the user):
Is there a possibility to register my app as kind of standard screenshot app (or additional screenshot app triggered by another key combination of the device) and how ;-)
Can an app stay in a state to notice if a screenshot is taken and
can access it?
If not: Any ideas for an workaround other than let the user select a taken picture, which is rather kind of roundabout and annoying?
Any hints are very welcome! Thank you in advance!
(Since I had a misleading headline, I reposted this question - sorry!)
I am new on android, but i want to try to write an app for my friend. He is asking for something, who would let him record a sequence of hyperlinks and repeat it. So far i did a webview program, which shows desired web page ( actually it's wap game ) and i know how to do almost everything, except one thing.
So, i want to ask if it is possible to designate what for should program search in webview and if app find it - press on it, for example:
Webview shows a page of game with list of possible actions :
Cut tree,
Dig
and etc.
so, I want to know how i can tell program to press on "Cut tree" and then it should automaticly do it and go to pressed webpage.
I hope that someone understood me.
P.S. sorry for my bad English.
Your webview should allow for standard in-page loading of links. If you need data from the link passed to the app, then you need a javascript bridge:
Android WebView Java-Javascript bridge
Good morning, first of all sorry if this have been asked before, i've found no answer yet and i've been looking for it for a long time.
The problem: there's links to external websites in my app. This links always open inside my app. I want them to open like the following image, asking me what app i want to use to open the link:
Click to see image
http://blog.laptopmag.com/wpress/wp-content/uploads/2013/03/complete-action-i.jpg
Another problem is that i have some files i want to download from the app. They have the same problem. I would like the requested file to download automatically but it does nothing.
Wish you could help me, i am new in this and i'm a little (or too much) lost. Appreciate your help¡¡¡ Thanks
I'm pretty sure that you can do this with the InAppBrowser plugin: http://cordova.apache.org/docs/en/3.0.0/cordova_inappbrowser_inappbrowser.md.html#window.open
If you set the target=_system, it will "Opens in the system's web browser." I think if you have set a default web browser already on your device, it will probably use that web browser and not give you the prompt in your screen shot. I don't think there is a way to force the system to ask you which app to use, unless the user somehow clears that association/setting.
I'm interested in writing a generic frontend app for Android. I'm thinking along the lines of a media center like XBMC.
This frontend app would (hopefully) be able to read files on a sd card and load those files into a 2nd app (which it would then launch).
Ideally - I would like the frontend to lie dormant once the 2nd app is launched. I would then like some tiny, low-overhead listener app to run in the background and wait for a specific button press (probably the back button). Said button press would then close the 2nd app and force the frontend app to appear again in place of it.
Has anyone tried anything like this? Some code snippets or tutorial links would be hugely appreciated.
I am developing an activity that on the press of a button, downloads a text file from a remote server via FTP containing several numbers. On the press of another button, a text file is created with various stats depending on the numbers (CPU useage, SD card free space etc) and FTP'd back to the same server.
All this is working fine, but the next stage of development is to make the app do all this at timed intervals, all in the background without showing the GUI (which will only be used for setup).
I've never done this before, so I had a dig around on the web, it seems I will need to use Alarm Manager, but I don't have a clue where to start.
Can someone point me in the right direction please? It would be helpful if someone could give me an answer that ties in with my particular problem rather than saying "go and look on so-and-so Android website".
For background things read:
http://developer.android.com/reference/android/app/Service.html
If you want to do this with intervals you can use: http://developer.android.com/reference/android/app/AlarmManager.html