In app download manager - Android Studio

So I've got my app up and running but would like to know if anyone has any insight on setting up a download manager inside of my app?

I'm assuming that you're planning to just download files, with your own UI, instead of implementing your own download manager that handles the raw connections.
You could use Android's built in download manager. Google's Developer page contains the documentation for it. It's good and has great pause and resume support, along with the ability to decide by itself when to queue download requests and when to download concurrently. However, it's very flexible, and thus needs a lot of boilerplate code.
If your requirements are simple, you could try a library like Medescope. It's easy to implement, and also creates notifications by itself, so that's one less thing to worry about. Medescope uses Android's Download Manager internally.

Related

MyEpisodes Viewer Available

Hi Guys
Don’t miss your favourite TV programs, let MyEpisodes viewer show you when it’s on.
MyEpisodes Viewer is an easy to use viewer that extends www.myepisodes.com website to your mobile phone.
All the viewer requires is your MyEpisodes username and password to fetch the listings you have already configured on the MyEpisodes site,
The viewer also allows you to update listed episodes to watched status with one click.
Caveats
1.) Due to MyEpisodes not having a standard API, the Viewer uses a API Helper site (api.madmouse.co.uk) to handle the data.
2.) MyEpisodes has the right to change permissions and there site without notice, which could cause the application to stop working.
3.) To allow api.madmouse.co.uk to enable advanced caching some information that identifies the device will be transmitted to the site
a. These details are hashed and erased 20 minutes after last call to the site.
b. No data is record to disk.
c. No data will be passed onto 3rd Party vendors.
Have Fun
I will put this into the Market place, when teh development team sort out a few issues that prevent me from uploading the application.
Such as?? If I may inquire.
Hi flcl
I have to admit when I am wrong, please ignore or learn from the unjustified comment, as it turned out to be a flaw in the build process.
If developers have the following problem in the future , here's how to solve it.
After building/signing an application, when you publish it get this message
"The new apk's versionCode (x) in AndroidManifest.xml must be higher
than the old apk's versionCode (x)."
If you have set the android:versionCode to a higher number than x, it means your application manifest file has not been updated correctly.
These are the steps I took to correct the problem.
Make sure you have increased the android:versionCode.
close all applications that don't need to be built in the Eclipse editor.
Delete the APK if it already exists (Optional)
Run Project -> clean , select your application hit ok
Rebuild - Export unsigned Package/sign then publish
I have now published the applicaton in the marketplace.

Means of automatically posting images/videos?

I was wondering if there are any apps that would automatically post (via any blogging script, I'm willing to install and setup anything free) a picture or video using the 'share' feature in android. Alternatively, an app that will upload it via FTP would work as well, and I'd just use a script that generates a blog-like posting sequence from a directory of media. Does such an app exist? If not, and if this is something people would be interested in, I may try to develop it myself, seems like a simple first project.
'Qik' is supposed to allow you to post videos onto youtube, twitter or facebook. (I haven't tried it.)
http://qik.com/blog/332/qik-on-android-early-alpha-now-available
After further research, there seems to be a service called pixelpipe that sort of does what I'd like. The problem is that it has very limited support for self-hosted solutions. All the APIs it supports for self-hosting support pictures only, and remain stored on the pixelpipe server.
HOWEVER, there is an option to upload straight to an FTP server, so I'm going to pursue that for now.
Pixelpipe has a twitvid app that works for twitter.. but the volume is very low on the vid.. i need to find a way 2 turn up my mic

[Q] music app uploading

Because I have such a large library, and a 60 GB max per month, I started uploading my library manually. I think next month I can switch it to use my iTunes library to finish off the rest. Does anyone know if the service is smart enough to know that the stuff I uploaded manually is the same as what I have in iTunes??
Why not just stream directly from your PC, with Audio Galaxy, or similar?
Well, I don't love the idea of leaving my desktop on all the time, and I like how you can manage your entire library from anywhere. I have used audiogalaxy so I know it has many of the similar capabilities. Also, I just like to try out new services, and I would imagine Google will only get better and better, and I am interested in getting started now. I have really come to prefer cloud based services over server based, I see more potential in this than audiogalaxy (personally).
I can respect that - I'm giving Googles music cloud a try at the moment also, but there are drawbacks with the file management.
For example:
If I notice an error in one of the file names on my PC and correct it, Google appears to think it's a new file, and uploads a new copy - keeping the old file, also...
If I notice an error in the id3 tags and correct that, Google thinks it's the same file, and does nothing...
Either way, I have to manually track all changes. It would be nice if there was a more intelligent interface...
Yeah, I haven't experienced that, but that's what I was afraid of. I have enough faith that Google will fix and improve all those things, and probably fairly quickly since it's Android related.
Would making some of those changes on the web interface help?

how to create task that will monitor system wide app installation...

so basically i want to monitor system wide app installation and uninstallation, including sideloading with dates? if possible to have it create a log and store it in a specific folder that is locked or can't be accessed or deleted without code. and to do a daily or weekly check to see if any changes were made.
also is there a task to block all installations including sideloading?
any help would be appreciated.
@ktmom
So tracking installed and uninstalled apps is straightforward.
I'm not aware of a way to lock the resulting file per se. Encrypt it, probably. But to prevent any other app from accessing it, I don't know how to do that. It could be uploaded to the cloud, e.g. Google drive. Then the local copy deleted. That's kinda fussy. Saving it as a variable array is doable, then Tasker can be locked.
If on every install / uninstall, the log is updated, why does there need to be a daily/weekly check?
I would have to test and see if the package manager can be "locked".
Is the device in question rooted?
This kinda sounds like something I might do to my kids phone [emoji6]. If this is actually the case, the file could be sent to your device or email on update. It wouldn't matter if the local copy was edited. You also could know immediately if an app had changed.
I asked in the other thread, do you have any familiarity with tasker?
@ktmom
device is non rooted,
file sent to email would be fine if that will get rid of daily/weekly checks. (<--- this was just something I wanted that maybe i'll just use in notepad++ to highlight the differences for a quick way of seeing changes.)
i have dabbled in tasker many years ago, only to enable/disable wifi and turn on vpn in geo fenced locations.
I haven't forgotten you. I should post a solution by the weekend. I'm just spending some time to make sure the kinks are out. You will need the MailTask plugin. I personally use a script in termux (requires cURL) to send via Google servers, but that is harder to setup, particularly with OATH. The plugin makes life much easier.
ktmom said:
I haven't forgotten you. I should post a solution by the weekend. I'm just spending some time to make sure the kinks are out. You will need the MailTask plugin. I personally use a script in termux (requires cURL) to send via Google servers, but that is harder to setup, particularly with OATH. The plugin makes life much easier.
Click to expand...
Click to collapse
ok great, thank you!
@BobMcGeez
Finally, I think I have this stable and able to handle multiple consecutive app installations and removals. I am working under the assumption that the use for this project is to monitor possible dangerous activity on a child’s device. I do not condone the use of this for monitoring a device without adult consent.
This project will send an email notification when a new app is installed or an existing app is removed. The email will include a CSV file with the remaining still installed apps. It should ignore apps that are being updated (they remove then install). The emails are sent silently and there should not be any indication to the user this is happening in the background. The CSV file is saved in the {storage}/Tasker/tasks/ directory. Each time an email is sent, the stored file is also updated. One instance of the previous file is saved as well.
First, you need MailTask installed. Please ensure that the MailTask plugin is fully configured and tested before installing this project. We are using OAuth Gmail authentication, so ignore SMTP stuffs.
Also, IMHO, I would use a GMail account maybe even created for this purpose, but at least one not setup to routinely access by the device user. This way, the user’s account will not reflect the sent messages.
To configure and test MailTask
Open MailTask from the app drawer on your device
Perform “Authorize Gmail Access” Use the account for the “from” you want to use in this project
Perform “Grant access to primary storage”
If your device has an SDcard, perform “Grant access to Sd card”
Now if you want, you can create a task in your Tasker installation to test the MailTask plugin
Create a test task
Add a MailTask action (Plugin -> MailTask -. send email)
Configuration:
From = Account used to Authorize Gmail Access above
To = Account where to send email
Subject = Testing MailTask
Body = Some text to take up space
Attachments = choose a basic file using the paperclip icon just for there to be an attachment
Test plugin by manually running the task.
If all is good, you can delete this test
Now install the project (taskernet link). On install, accept enabling the profiles. If you do, then the Installation task should run automatically. If you prefer not to, or if you need to re-run the installation, manually run the “Initial Setup” task.
This project may be shared under GNU v2. You may share, modify and use it provide you don't charge, the code is open and credit is provided.

Looking for help on a large Android project... VaporUX

What is it?​VaporUX (user experience) will be a set of open source apps for Android. The plan is for it to use an flashable zip file the way you would install GApps. This means we won't have to worry about building an entire ROM, just the apps and services required for any device. The goal is to have a lightweight, fast set of apps, completely free of bloat. However, I don't want to sacrifice features and customization options just to be lightweight. I'm not sure exactly what specific app features there will be, but here are the basics for the project as a whole.
Spoiler: Features
F-Droid app store. It's a relatively complete app store and everything is open source, which makes it fit in with the rest of the VaporUX apps.
A simple themes system for all VaporUX apps and any other apps that support it.
Open source Chromium based browser.
Media player and YouTube client with support for casting to TV.
Possibly an app for syncing the device with a PC (Windows and Linux).
If you're interested in helping, let me know.

Categories

Resources