Related
This is my first app for WinCE so please be nice!
Rant
It seems I'm part of a minority of users who understand that mobile devices and PDA's are not designed to run multiple apps at once. You can, but anyone with a decent sense of quality will agree that it's a rubbish experience once you get under 50% free memory. In fact the iPhone by default design doesn't let you multi-task apps (jailbreak changes this) which may be one of the reasons peeps think its a faster device. I say I'm part of a minority because most apps around are coded so that when you hit the 'x' close button they minimize instead of close (even by holding x). Also Windows has no inbuilt mechanisms for keeping your apps closed, and none of the roms I've tried (cooked or otherwise) seem to have these types of tools included.
Disclaimer
Firstly I hope I haven't reinvented the wheel or stolen anyone else's idea. I didn't research for months but didn't find anything like this around so apologize in advance if I upset anyone. Also I provide this tool "as-is" in BETA form - so it could damage your device - so use at your own risk.
Kill****?! What is it?
It is a simple app that kills running processes.
Why would I want it - what's wrong with Task Manager?
A common example is you open up Calc to do divide a dinner bill, lookup how to get home in Google maps, send an SMS to a friend and hit Home key. Then you wonder why the thing is running like a dog. You open task manager and notice you have these 3 freakin apps are open still and taking up your memory. So you're expected to open Task Manager after every time you're finished with an app?...no I dont think so..because you've got Kill****! You manage an exemption file, assign the app to one of your softkeys (or events) and it will quickly, quietly kill all other **** running for you.
How Does It Work?
It stores a text file on disk with names of processes that you wish to exempt. You can manage this via the included config tool. When you run the app (which is a console app) it just kills every running process other than the ones on your exclude list. The exclusion file is stored in your default MyDocuments folder and is called something like "NoofnyKill****.settings". Real simple.
What Do I Need To Run It?
Microsoft Windows Mobile (4 and above)
Microsoft .NET Compact Framework 3.5
How Do I Install It?
Simply run the attached CAB and everything is installed for you. 2 icons are added to your Start Menu (the config tool and the console app itself). The app is installed in the default Programs folder.
How Do I Use It?
If the exceptions file does not exist it will be created new and will contain all of the running process at the time the app ran.
The best instructions are;
1) Have your device in your preferred state with only your basic apps running.
2) Open the config tool from the start menu (Kill**** Config).
3) All of the running processes will list with a check next to them (which 4) means they will be exempted).
4) Click Menu -> Save Exceptions and close the config tool.
5) Assign the console app (KilL****.exe) to one of your softkeys or other buttons using your favorite tweak tool.
What Else Do I Need To Know?
I am not responsible for anything negative or positive this app will do to you, your device or life. Use at your own risk. I have not tested this app well and can only guarantee that I have fundamentally screwed something up. If anyone does use it and wants help I will do my best but try to help by giving as much detailed info as possible when reporting any bugs. I'm open to suggestions and are planning to put the source code up here if anyone shows interest.
That's about it - hope it makes someone's life a little brighter.
Hi!
This looks interesting. Is there anyway to cook this into a ROM properly? I dont like to have users make a file in their my documents folder.
Cheers
Epiphany
EpiphanyNL said:
Is there anyway to cook this into a ROM properly? I dont like to have users make a file in their my documents folder.
Click to expand...
Click to collapse
Thanks...i can have the file live anywhere really, I just chose MyDocuments cause its easy and accessible. It's easy to even have them define in the config tool where they want to save the settings. I'm new to mobile dev and the whole rom cooking thing, so could you expand about what would be needed to cook this app into a rom?
actually after giving it more thought it would be more practical to store this in the registry. I chose to use a text file at first because I was not going to bother have a config app and you could modify it using notepad or something.
In registry would be the most preferred method yes.
Looking around the IMGFS, I found some undocumented capabilities that can be used in building an app (in addition to the standard ones mentioned in the WMAppManifest.xml file).
These are the extra ones I found, in case anyone is interested (from BasePolicy.xml):
ID_CAP_RINGTONE_ADD:Allows ringtone-marketplace applications to read/write into the Ringtones directory
ID_CAP_MEDIALIB:Access to the media library - read, play-back, etc.
ID_CAP_INTEROPSERVICES:Temporary Interop Service Capability.. To be removed by feature team
ID_CAP_SIMrovides access to SIM manager API
ID_CAP_SMSrovides access to SMS API
ID_CAP_WAProvides access to WAP API
ID_CAP_IDENTITY_USER:Allow an application to use a phone.info.dll to retrieve user properties
ID_CAP_TESTPUBLIC1:Small public test capability
ID_CAP_LOADUNSIGNEDMANAGEDDLL:Capability to load unsigned managed dll into chamber's process space
ID_CAP_LOADUNSIGNEDNATIVEDLL:Capability to load unsigned native dll into chamber's process space
ID_CAP_DEBUG:Allow an application to run in debugging enviorment.
---Edit---
I've tested each of these individually, and some work, and others don't.
ID_CAP_INTEROPSERVICES works
ID_CAP_RINGTONE_ADD works
ID_CAP_MEDIALIB works
ID_CAP_IDENTITY_USER works
ID_CAP_TESTPUBLIC1 works
ID_CAP_SIM ID doesn't work
CAP_SMS doesn't work
ID_CAP_WAP doesn't work
ID_CAP_LOADUNSIGNEDNATIVEDLL doesn't work
ID_CAP_LOADUNSIGNEDMANAGEDDLL doesn't work.
Note that even for the ones that work, Microsoft may still reject them in the app store.
I tested these by entering them in the WMAppManifest.xml in the XAP, and loading them on a windows phone device. This guy suggests that if it loads on the device, you have the permission: http://www.drdobbs.com/windows/227701092 and I think he's right. If you don't have permission, it doesn't actually load, and in every case, if it loaded it ran.
ID_CAP_RINGTONE_ADD - So i guess with next update we will get Custom ringtones that can b installed from an app
off topic can some one create utility that will do something about tuch sensetive buttons, when using camera if u tuch any of then by accident it exit camera, so u have to hold phone very carefully.
also, app to lock screen rotation would be nice.... any of thous features undocumented anywhere
P.S sorry for unrelated message
I think the ID_CAP_RINGTONE_ADD feature will only be enabled for the carriers (who knows what Microsoft really has in mind, though). The Windows Phone has done a good job (or lousy job, compared to what I desire) managing permissions so they can choose what capability to give whom.
Disabling other buttons shouldn't be hard if you can get to the native API. So once the phone is jailbroken......
Actually, Microsofts own Q&A on Windows Phone 7 states to look in the Marketplace for additional ringtones. Here is an excerpt and a link:
To find a ringtone in Marketplace
1
On Start, tap the arrow to go to the App list, then tap Marketplace .
2
Press the Search button.
3
Do one of the following:
•
To browse a variety of ringtones, type ringtones, then tap Enter .
•
To look for a more particular type of ringtone, type something more specific, like Halloween ringtones.
Tip
To hear what a ringtone or alert sounds like, tap Play .
Note
Marketplace may not be available in your country or region.
Click to expand...
Click to collapse
http://www.microsoft.com/windowsphone/en-us/howto/wp7/start/ringtones-and-sounds.aspx
All well and good having that, but why should we purchase a ring tone?
TheDisneyMagic said:
All well and good having that, but why should we purchase a ring tone?
Click to expand...
Click to collapse
Well, I don't see myself buying any, but this means an app could be made to create/add ringtones.
Long press on a song in Zune won't let you set it as the ringtone?
Iridox said:
Long press on a song in Zune won't let you set it as the ringtone?
Click to expand...
Click to collapse
Nope, I asumed this would be how it worked but no option in the list to do so.
Ah, that's a PITA >_>
naplesbill said:
Well, I don't see myself buying any, but this means an app could be made to create/add ringtones.
Click to expand...
Click to collapse
A whole app just to add a ringtone!?
naplesbill said:
Actually, Microsofts own Q&A on Windows Phone 7 states to look in the Marketplace for additional ringtones. Here is an excerpt and a link:
http://www.microsoft.com/windowsphone/en-us/howto/wp7/start/ringtones-and-sounds.aspx
Click to expand...
Click to collapse
To me that excerpt looks like you can download ringtones from the store, not that you can create an app to download ringtones. It would appear that Microsoft has an internal application that can add ringtones (which makes sense). These permissions are enforced by the OS, not the app store (maybe the app store does too). So if they want to be able to install ringtones, they need to give their own app permission to do so.
athompson said:
Looking around the IMGFS, I found some undocumented capabilities that can be used in building an app (in addition to the standard ones mentioned in the WMAppManifest.xml file).
These are the extra ones I found, in case anyone is interested (from BasePolicy.xml):
ID_CAP_RINGTONE_ADD:Allows ringtone-marketplace applications to read/write into the Ringtones directory
ID_CAP_MEDIALIB:Access to the media library - read, play-back, etc.
ID_CAP_INTEROPSERVICES:Temporary Interop Service Capability.. To be removed by feature team
ID_CAP_SIMrovides access to SIM manager API
ID_CAP_SMSrovides access to SMS API
ID_CAP_WAProvides access to WAP API
ID_CAP_IDENTITY_USER:Allow an application to use a phone.info.dll to retrieve user properties
ID_CAP_TESTPUBLIC1:Small public test capability
ID_CAP_LOADUNSIGNEDMANAGEDDLL:Capability to load unsigned managed dll into chamber's process space
ID_CAP_LOADUNSIGNEDNATIVEDLL:Capability to load unsigned native dll into chamber's process space
ID_CAP_DEBUG:Allow an application to run in debugging enviorment.
Visual Studio won't let you add all of them directly, but uncompress your .xap in the build directory, and add it manually.
If anyone is thinking of doing this, the phone rejected my attempts to do so. I tried to give myself ID_CAP_LOADUNSIGNEDNATIVEDLL, but it wouldn't even load on the phone. Oh well.
Click to expand...
Click to collapse
But if someone use these things in an application , I think microsoft doesn`t approve it in the market place!
amir_rafie said:
But if someone use these things in an application , I think microsoft doesn`t approve it in the market place!
Click to expand...
Click to collapse
Ya, not only that, they probably automatically check to make sure you don't try to use them. The phone automatically checks, too.
The main reason I put them here is because I couldn't find them documented anywhere on the web, and I thought it would be good to save someone the time if they started down the same path I did.
hopefully once there is a jailbreak that turns of security/cert checking we can add these capabilities to our apps. Im particularly interested in the p/invoke capability.
indiekiduk said:
Im particularly interested in the p/invoke capability.
Click to expand...
Click to collapse
YES! It would make the world beautiful and skies turn blue.
So I set up VS 2010 and tried debugging an app that had a simple DLLImport in it and ID_CAP_INTEROPSERVICES in the manifest, however it still crashed with a MethodAccessException. It was def a valid dll and method name because I took it from one of the DLLImports in the system.location .net dll decompiled with Reflector.
indiekiduk said:
So I set up VS 2010 and tried debugging an app that had a simple DLLImport in it and ID_CAP_INTEROPSERVICES in the manifest, however it still crashed with a MethodAccessException. It was def a valid dll and method name because I took it from one of the DLLImports in the system.location .net dll decompiled with Reflector.
Click to expand...
Click to collapse
Interesting. If your app installed, it means you were able to get the ID_CAP_INTEROPSERVICES permission, because if the phone rejects your permission, it rejects it at install time. Maybe the DLL path was wrong, like you need to do ..\DLLNAME.dll or something.
indiekiduk said:
So I set up VS 2010 and tried debugging an app that had a simple DLLImport in it and ID_CAP_INTEROPSERVICES in the manifest, however it still crashed with a MethodAccessException. It was def a valid dll and method name because I took it from one of the DLLImports in the system.location .net dll decompiled with Reflector.
Click to expand...
Click to collapse
Try a relative URI path. ./DLLName.dll
On the subject of Native Applications on Windows Phone 7:
A few days ago, an Application called "Network Profile" appeared in the Samsung Zone of my Omnia 7's Marketplace.
This app is the first external app that uses native code - The Marketplace says that it "Requires access to your interop services", and on opening the XAP on my PC, I found it to contain three native COM DLLs, alongside two .NET DLLs and a further native DLL with MUIs that appear to only serve to hold resources.
I'm not sure whether this can be linked to here, so I'm going to describe the interesting parts.
It has not one, but three XMLs - the typical WMAppManifest.xml (pastebin.com/uEJWdTuA), a WMAppPRHeader.xml (pastebin.com/AVcv7JUX) which seems to have something to do with PlayReady DRM, and most interestingly WMInteropManifest.xml (pastebin.com/NCVKP6kM).
There is also the AppManifest.xaml (pastebin.com/rRrB090h).
The NetworkProfile.dll has a number of COM Imports like so:
Code:
[ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("F1113B13-AAB8-45E9-91A5-CBE568C29612")]
internal interface INwProfInterface
The Constructor for the class containing all the COM Interfaces:
Code:
ComBridge.RegisterComDll("NwProfDLL.dll", new Guid("4A2580BA-11A3-49AB-AC98-C30B5E72D381"));
this.NwInterface = (INwProfInterface) new CNwProfClass();
ComBridge.RegisterComDll("SecVersion.dll", new Guid("DFE52822-B526-4913-807A-D2AABC7BF911"));
this.SecVerInterface = (ISecVersionInterface) new SecVersionClass();
ComBridge.RegisterComDll("COMRilClient.dll", new Guid("A18F6B1A-924E-4787-AA82-19F98B49CF5D"));
this.SecRILControlInterface = (ISecRilControl) new COSecRilControl();
Happy to answer any questions, and if allowed, either guide people to getting it themselves, or providing a download link to the XAP.
Sweet, good find! I downloaded that app. How did you get it off your phone? If you have a download link to the XAP no one will complain, either.
is there any hope of us getting a official File Manager? they said they werent going to allow a file manager but they said the same thing about multitasking and now they're allowing that has any thing been said about the possibility of them adding a file manager? and downloading mp3's and things from the web? they can limit the access to the file system if they wanted so i dont see the big deal about allowing us to have a file explorer
i know touch xplorer is out there but will there be a official one from microsoft? has anybody used touch xplorer? how is it compared to the old windows mobile file explorer?
I doubt it. And it isn't a task manager per se...more of an app switcher, so far as I can tell you can't kill the app from there. And I believe the multi-tasking is still iOS-esque in the sense that it tombstones still (except some apps are allowed to petition for run in the background [i.e. music apps]) and just restarts the app, but it does it much faster now.
I really don't understand this. If you want all that, go get an Android device. Wp7 is good because it's so lean and -easy-. Not that I mean that file managers aret hard to use. But I don't care to look at my files in a big list in a folder. Honestly, what's the point? I use my phone quickly, I put it back in my pocket. There are no apps taking up battery life or memory. For f**k's sake, stop with this ****.
deadwrong03 said:
is there any hope of us getting a official File Manager? they said they werent going to allow a file manager but they said the same thing about multitasking and now they're allowing that has any thing been said about the possibility of them adding a file manager? and downloading mp3's and things from the web? they can limit the access to the file system if they wanted so i dont see the big deal about allowing us to have a file explorer
i know touch xplorer is out there but will there be a official one from microsoft? has anybody used touch xplorer? how is it compared to the old windows mobile file explorer?
Click to expand...
Click to collapse
Not likely at all. A file explorer would open up the system to manipulation and allow things to be added that could compromise the integrity of the system. The multi-task'er won't harm the system and will be one of the best there is.
MartyLK said:
Not likely at all. A file explorer would open up the system to manipulation and allow things to be added that could compromise the integrity of the system. The multi-task'er won't harm the system and will be one of the best there is.
Click to expand...
Click to collapse
I agree, that is the best reason why file managers would not be implemented. However, I think with Nokia's entrance in WP7 scene and considering their stance on closed & limited use of phones, we are likely to see a few things "enabled" at least on the developer side.
They never said there wouldn't be multitasking, they merely said they hadn't worked out a way to do it they were happy with. It's always been a 'coming soon' feature.
I doubt we'll get a 'File Explorer' in the way you want it, but I can see in future more freedom in adding/removing music, photos and videos. I can see you being able to download things through the web browser to the appropriate hub (provided the phone recognises the content type). I also think at some point they will allow you to load files into 3rd party apps storage areas, for example the Adobe Reader.
sure haven't said:
I really don't understand this. If you want all that, go get an Android device. Wp7 is good because it's so lean and -easy-. Not that I mean that file managers aret hard to use. But I don't care to look at my files in a big list in a folder. Honestly, what's the point? I use my phone quickly, I put it back in my pocket. There are no apps taking up battery life or memory. For f**k's sake, stop with this ****.
Click to expand...
Click to collapse
if that's all you use your phone for why are you even on xda?
MartyLK said:
Not likely at all. A file explorer would open up the system to manipulation and allow things to be added that could compromise the integrity of the system. The multi-task'er won't harm the system and will be one of the best there is.
Click to expand...
Click to collapse
compromise the integrity of the system, how ? by adding, moving, deleting .... files ? crap man, that's what computers are for is file manipulation !
a task manager will harm the system (or battery life mostly) more than a filer would ever dream. messing with already -really- nicely done scheduling is osmething that doesn't need to be done. ever.
my 2 cents
Good grief. Look people if you don't understand what files are you shouldn't be posting about them.
Files store information in a structured way.
Sometimes this information is intended for use with only one program. E.g. files storing user settings. It is best for these files to be isolated for use only by this program.
Sometimes this information is in a standard format, usable by any program. E.g. mp3, jpeg, rtf, html, wmv or most files you know about. These files should be usable to any program, with restrictions by user only.
WP7 is an irredemably flawed system until it has this ability.
Once it is there anyone can write a file manager. Microsoft doesn't need to provide one.
Once you have a file browser, you need to have assoiations so you can open files with applications. This opens a whole new world.
Personally, I would love have a section of the memory on WP7 device to use as a USB drive, just so you can view your files on the device (music, Videos, word/execl docs, etc) and have a explorer just for those files. The OS would not get touched and everyone is happy.
MS did not say they are not going to allow Multi-tasking, it's just not added yet.
orangekid said:
if that's all you use your phone for why are you even on xda?
Click to expand...
Click to collapse
Well that's not all I use it for. I also use it for company email, hotmail, games, music/radio apps, etc. But the point is I like it's simplicity and ease of use. You put it away and it's good to go. There's no making sure you have to close apps, etc.
As for why I'm on here, I joined a long time ago for windows mobile, and of course got awesome awesome apps and tweaks here. And when I got a wp7, I just came here to talk about it, since I love it. I don't think being a genius developer is a prerequisite of being here?
I think personally that the people who are clamouring for a file manager have completely missed the whole point of Windows Phone.
The point is, you don't NEED a file manager, because your files are managed for you.
If your life is incomplete without a file manager,
A) Get out more
or
B) Get an Android phone
Jim Coleman said:
I think personally that the people who are clamouring for a file manager have completely missed the whole point of Windows Phone.
The point is, you don't NEED a file manager, because your files are managed for you.
If your life is incomplete without a file manager,
A) Get out more
or
B) Get an Android phone
Click to expand...
Click to collapse
but if your downloading something like a .rar file or a zip file u cant move it where u want or anything. On my windows mobile i download music and other files in rar and zip folders all the time, and add it to my library and update it all the time without the use of a computer and this is what worries me the most about wp7
deadwrong03 said:
but if your downloading something like a .rar file or a zip file u cant move it where u want or anything. On my windows mobile i download music and other files in rar and zip folders all the time, and add it to my library and update it all the time without the use of a computer and this is what worries me the most about wp7
Click to expand...
Click to collapse
His point is that you shouldn't need to move it. A file should be associated with a program and it should reside in that program's memory space.
The whole File Manager aspect is archaic in a lot of respects. You shouldn't need to move it, you shouldn't need to extract the zip, you shouldn't need to add it to your library - it should be done for you.
I think the a appropriate request would be for Microsoft to allow 3rd parties to associate file types to their software - although this opens the system up to malicious softwares, it would allow developers to be much more creative.
Don't complain just because it isn't done the way you're used to - remember, this is no longer Windows Mobile
....is this what you are looking for?
http://www.1800pocketpc.com/2011/03/01/windows-phone-device-manager-video-preview.html#more-18329
FTC
deadwrong03 said:
but if your downloading something like a .rar file or a zip file u cant move it where u want or anything. On my windows mobile i download music and other files in rar and zip folders all the time, and add it to my library and update it all the time without the use of a computer and this is what worries me the most about wp7
Click to expand...
Click to collapse
Such a scenario is not supported with WP7 now and probably never will be if MS sticks to their design principles with WP7. If such functionality is vital to you its probably best to consider another smartphone OS as WP7 will not be suitable for your needs.
Blade0rz said:
His point is that you shouldn't need to move it. A file should be associated with a program and it should reside in that program's memory space.
Click to expand...
Click to collapse
And it's completely wrong. Only internal files that are understandable only to that application should reside in the applications isolated storage.
Actually his point was that Big Brother is looking after your files, and has chosen how they should be accessed; anyone who wants to do things differently should question whether he is a normal person.
The whole File Manager aspect is archaic in a lot of respects. You shouldn't need to move it, you shouldn't need to extract the zip, you shouldn't need to add it to your library - it should be done for you.
Click to expand...
Click to collapse
One reason is that folders are used for organization.
I think the a appropriate request would be for Microsoft to allow 3rd parties to associate file types to their software
Click to expand...
Click to collapse
That is great, and it assumes that there are files independent of applications. That is the key point and it's what I'm arguing for.
although this opens the system up to malicious softwares, it would allow developers to be much more creative.
Click to expand...
Click to collapse
Yes, it allows more things. There is no security risk however as only applications do things. Files don't do things. Applications can still be sandboxed (within silverlight) and access files. Of course a malicious application might delete files in common storage, but there are various ways of protecting against this, and it's an infinitessimal risk in practice.
DavidinCT said:
Once you have a file browser, you need to have assoiations so you can open files with applications. This opens a whole new world.
Personally, I would love have a section of the memory on WP7 device to use as a USB drive, just so you can view your files on the device (music, Videos, word/execl docs, etc) and have a explorer just for those files. The OS would not get touched and everyone is happy.
Click to expand...
Click to collapse
Agreed.
Emailing Documents is a pain in the arse.
Blade0rz said:
His point is that you shouldn't need to move it. A file should be associated with a program and it should reside in that program's memory space.
The whole File Manager aspect is archaic in a lot of respects. You shouldn't need to move it, you shouldn't need to extract the zip, you shouldn't need to add it to your library - it should be done for you.
I think the a appropriate request would be for Microsoft to allow 3rd parties to associate file types to their software - although this opens the system up to malicious softwares, it would allow developers to be much more creative.
Don't complain just because it isn't done the way you're used to - remember, this is no longer Windows Mobile
Click to expand...
Click to collapse
so by this logic then they should be able to make a pocketrar app and have it available in the marketplace then correct? is it too far fetched for a app like that to be made?
hi,
i am looking for an app that can encrypt folders on my sgs2
i tried "gallery lock" but that just changes the extension.
it seems hard to find a android app for that, any suggestions?
thx
Tasker can do that if you buy the non-market version direct from their website.
http://tasker.dinglisch.net/userguide/en/encryption.html
i just installed it, its not that user friendly but ill give it a try. thx for the suggestion
True, there is a learning curve, but it's well worth the time. You can manually encrypt files/dirs, create a widget to encypt files/dirs, or you can even have Tasker encypt files/dirs if you send a SMS to your phone with certain keywords. However, encyrption is just one of many many things Tasker can do. It's ultra-powerful if you spend the time to learn it.
Good luck.
RR File Locker
RR File Locker in the app market
works just like creating a truecrypt volume, it even erases temp files created to show encrypted info... love it.
wish it worked faster and the encryption was stronger but whatev we are on mobile phone chips not full sized PCs
colonels said:
RR File Locker in the app market
works just like creating a truecrypt volume, it even erases temp files created to show encrypted info... love it.
wish it worked faster and the encryption was stronger but whatev we are on mobile phone chips not full sized PCs
Click to expand...
Click to collapse
cant seem to find it in market
lector007 said:
cant seem to find it in market
Click to expand...
Click to collapse
It probably has something to do with the export restrictions for encryption. I can see it in the market. I know there is a way/app to spoof your location so it looks like you're from the US, but I can remember what it's called. Hope that helps.
By the way, the app I was thinking of is called Market Enabler:
https://market.android.com/details?id=com.notenking.mf
Additionally for apps you could try the free and open-source:
ht tps://f-droid.org/repository/browse/?fdfilter=lock&fdid=com.gueei.applocker
I use this: https://play.google.com/store/apps/details?id=com.mwgo.filelocker&hl=it
Simple, fast and works
Hello,
I am developing an App, which should provide some NFC functionality. This app will run on an Android device with Android 4.2, with an NFC-Reader attached via USB. (Link - ACR 1252U Usb NFC Reader) The NFC-Reader comes with an Android-Library, that gives me access to it. (Link - ACS Android library).
The goal is, that every Android User can hold his phone to this reader, and then gets a small file on his device. That is the functionality, that the app should do. Just send a little file to the smartphone.
The connection to the reader works fine. I also can use the libraries classes to provide some basic functionality like information whether an NFC Card is attached or not, or getting the Cards ATR.
But unfortunately thats about it...
For the desired functionality I need "P2P-mode" or "Card Emulation-Mode". But I could not find any example on how to do this with this library. Is this library even capable of these functionalities?
Has anybody ever used this library for something like this?
Is it somehow possible to use the Android-Builtin NFC-functions together with the USB Reader?
Has anybody any tips for me?
Thank you in advance.
Hi,
I'm in the same point as You, I'm too use Android 4.2, I'm to use ACR1252U, and I'm stuck at same functionality problem yesterday/friday
belfegore said:
Hi,
I'm in the same point as You, I'm too use Android 4.2, I'm to use ACR1252U, and I'm stuck at same functionality problem yesterday/friday
Click to expand...
Click to collapse
Well, if you find something out, please report it here. I will do the same!
I'm not sure exactly what you are are trying to do. But you could use and nfc tag to programmed to a url to download a file. When the tag is brought within range of the nfc enabled phone the tag will send the url activating a web browser and download the file.
H3xxEdit said:
I'm not sure exactly what you are are trying to do. But you could use and nfc tag to programmed to a url to download a file. When the tag is brought within range of the nfc enabled phone the tag will send the url activating a web browser and download the file.
Click to expand...
Click to collapse
I'm trying to read/write data to nfc tag-card. But I'm have a problem with implement sending any command to my nfc adapter - ACR1252. Found interesting project created by Guru of NFC in Android @skjolber github.com/skjolber/ndef-tools-for-android but tries of implement additional adapter outgrows me or I'm doing it wrong
H3xxEdit said:
I'm not sure exactly what you are are trying to do. But you could use and nfc tag to programmed to a url to download a file. When the tag is brought within range of the nfc enabled phone the tag will send the url activating a web browser and download the file.
Click to expand...
Click to collapse
Hi,
that is exactly what I have done so far. I put the reader in card-emulation mode, and stored a URL on it.
The browser of the phone than successfully opens, when approaching the (emulated) tag.
Do you know if there is a possibility, that the image-link (e.g. "https://www.google.de/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"), that is stored on the tag, gets opened in the image-viewer-app ("Gallery"), instead of the browser?
Maikell84 said:
Hi,
that is exactly what I have done so far. I put the reader in card-emulation mode, and stored a URL on it.
The browser of the phone than successfully opens, when approaching the (emulated) tag.
Do you know if there is a possibility, that the image-link that is stored on the tag, gets opened in the image-viewer-app ("Gallery"), instead of the browser?
Click to expand...
Click to collapse
I think you might have a conflict there, I have been only working with the tags for a few months, but your passing in a URL, the default handler will process that as a browser based request and thus open up in the browser. If you have an application, other than the browser that can open pictures from a URL you may be able to do that
I went around the problem:
- On the Tag I am storing a link to an HTML-Site.
- This HTML shows the picture, and prompts the user, if he wants to download that image (via JavaScript)
- If he confirms, the image is saved in his gallery, like I wanted.
Still the basic question remains:
Can I send this image to the user without the detour over the internet? Meaning just sending him the image via peer-to-peer?
Maikell84 said:
I went around the problem:
- On the Tag I am storing a link to an HTML-Site.
- This HTML shows the picture, and prompts the user, if he wants to download that image (via JavaScript)
- If he confirms, the image is saved in his gallery, like I wanted.
Still the basic question remains:
Can I send this image to the user without the detour over the internet? Meaning just sending him the image via peer-to-peer?
Click to expand...
Click to collapse
Unless you were to chain alot of PC's up over a long distance in which could be used they would be acting as hosting servers for the files, then no. Also, if you are asking if that NFC could potentially transmit the file to other phones without the use of a connection, then technically, yes it is possible, yet the plausibility of the idea sufficing is low. NFC has a very limited connection span, and in order to transmit files over a long distance using NFC would require that everyone would act as a hosting server, and that if a user would request for the file download, then the rest of the phones would act as the sender, sending chunks of the file.
Nice idea
Sent from my HUAWEI MT7-TL10 using XDA-Developers mobile app