[Q] Playing a video on lock screen - Java for Android App Development

Hello guys,
I'd like to modify my Xperia Z1's lock screen so that it plays a video when a wrong PIN code is entered. Any ideas how I can do that?
I've also attached the lock screen apk, just in case it would help.
Forgive me, if I'm posting in a wrong section, I'm new to the forum.

bump

I don't really know how to achieve this, but do you have an idea / requirements about the video format that you would like to play? That might be necessary for the others reading this to give hints.
On StackOverflow, I've found a question which might be relevant for you: http://stackoverflow.com/questions/20438426/running-an-android-application-on-top-of-the-lock-screen

Mr Dovis said:
Hello guys,
I'd like to modify my Xperia Z1's lock screen so that it plays a video when a wrong PIN code is entered. Any ideas how I can do that?
I've also attached the lock screen apk, just in case it would help.
Forgive me, if I'm posting in a wrong section, I'm new to the forum.
Click to expand...
Click to collapse
Basically in AOSP the screen locking is handled by keyguard which is built into the framework and the static java library is accessed at SystemUI. So you would need to include your changes there.
Let's say you need to display "why you do this?" In the logcat , When you type a wrong password. Your method which returns the boolean isThePasswordIsCorrect() when evaluated to false you would log the output.
Sent from my Moto G using XDA Free mobile app

MasterAwesome said:
Basically in AOSP the screen locking is handled by keyguard which is built into the framework and the static java library is accessed at SystemUI. So you would need to include your changes there.
Let's say you need to display "why you do this?" In the logcat , When you type a wrong password. Your method which returns the boolean isThePasswordIsCorrect() when evaluated to false you would log the output.
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
Thanks! I'll take a look there.

djscorchio said:
I don't really know how to achieve this, but do you have an idea / requirements about the video format that you would like to play? That might be necessary for the others reading this to give hints.
On StackOverflow, I've found a question which might be relevant for you: http :// stackoverflow . com /questions/20438426/running-an-android-application-on-top-of-the-lock-screen
Click to expand...
Click to collapse
I'm not sure about the format, but I think I'll start off with MP4. I'll probably have to do a lot of experimenting.
Thanks for your post! That StackOverflow post looks promising.

Related

[Q] Pin Code Kepper app like this, is there one?

I used to live in Denmark where the banks provide you with a coloured wallet card on which you write a load of numbers including your 4 digit pin however, only you know the location of the four numbers you need.
I have seen an iphone app or two that do the same thing:
http://www.mochasoft.dk/iphone_pin.htm
or
the HideYourPin app on this page http://bragoszewski.com/iphone/
Basically I would love to know if there is a similar app for the Android platform.
Regards
David P
If this isn't already available, if someone can make it (preferably like the top link in the post above) I would be eternally grateful and you never know, it could make you a few bucks on the market as well
Cheers
David P
I agree, that would be a nice app.
good idea... i think it's not very hard to implement... i will try it this weekend
troedi said:
good idea... i think it's not very hard to implement... i will try it this weekend
Click to expand...
Click to collapse
Fabulous and thanks in advance for trying
did you get my PN last friday? i have a first version that needs to be tested, an translated to correct english
just seen the message and am grabbing it now. Will test and get back to you by tomorrow
Thanks again
David P
@troedi,
It looks great and I wouldn't even change the english within the instructions very much. I will send you via PM later on today any changes I think would be benefificial regarding the wording.
How difficult would it be to have multiple patterns? So you would start the program and then have a list of your saved PINS, one per pattern, and selecting the required PIN opens up the appropriate pattern for viewing or editing?
Regards
David P
An absolutely brilliant idea!
And, could you possibly make this an 'open' beta? I would love to start using this.
Thanks.
beartiger said:
@troedi,
It looks great and I wouldn't even change the english within the instructions very much. I will send you via PM later on today any changes I think would be benefificial regarding the wording.
How difficult would it be to have multiple patterns? So you would start the program and then have a list of your saved PINS, one per pattern, and selecting the required PIN opens up the appropriate pattern for viewing or editing?
Regards
David P
Click to expand...
Click to collapse
thanks for your comments! i think it isn't very difficult to manage more than one pattern. should be realisable in a few hours! as far as i can remeber i've coded the app well-structured enough.
@LukeHandle: i will send you a pn in the next minutes
Why didn't you post it here, so we can all be beta-testers and thus the app will be out sooner?
ok... you've convinced me
http://dl.dropbox.com/u/2817943/Pin%20Code%20Keeper_beta.apk
Let me know when you have the multi pattern version up and i'll give that a test too and well done, looking great so far
David P
ok, gonna give it a try and post back
Any news on a multi pattern version of this app? I couldn't find fault with your help text so far hence not sent any PM with verbiage.
Looking forward to testing the latest version once it's ready
David P
the multi-pattern version is nearly complete, but there are little bugs when saving a pattern! but i can't spend much time on the app the next two days. I think the app will be ready for testing on friday evening!!
oooo nearly time for more testing
>>> Here it is <<<<
Enjoy testing my app and please tell mi if you think it's ready for the app market
_________________________________________
Edit: download link removed -> use market to download. Look for "Pin Code Keeper"
Downloading and installing now
Thanks again and will feed back shortly
David P
Instructions are great.
2 things to mention though:
1. It wouldn't install over the top of the previous version even though it identified that it was an updated version so I had to uninstall the old and install the new.
2. Might I recommend that on each patter, net to the Pin Code Kepper in the title bar, you also add the pattern name given when a user edits the words "New Pattern" to something to better remind themselves?
So the title bar Might look like this (see attachment)
Kind Regards
David P

Need Help-Vault android app

I need help to make an Android application. The application i want to develop is like a vault. The vault should be able to store files such as text documents,images and videos. The files present in the vault should be encrypted in the sd card. Basically they must be secure.
Also i'd like the app to have a 3 level of security to open the application. For example the first level of security could be a 4 digit code,followed by a pattern,and then followed by a question.
Can anyone point me to a similar app with an open source code? Or if possible for anyone,can anyone take this up as a challenge and develop this project for me. I want to develop this application for my mini project. I have no intention to put this in the play store or gain any profit from this application.
Can anyone please please help me?I'm desperate....
Do YOU want to code it or do you want that OTHER people code it?
Can you program? Have you ever code an android app?
Regards
EmptinessFiller said:
Do YOU want to code it or do you want that OTHER people code it?
Can you program? Have you ever code an android app?
Regards
Click to expand...
Click to collapse
Thanks for the reply.
I haven't coded an app from scratch, but i know how to modify the source code of the app. So if possible, if there exists an app with similar features and is open source, could you point me towards such an app?
If not, then maybe if possible, people on xda developers could code it for me?
Need help...
SufiyanSadiq said:
Thanks for the reply.
I haven't coded an app from scratch, but i know how to modify the source code of the app. So if possible, if there exists an app with similar features and is open source, could you point me towards such an app?
If not, then maybe if possible, people on xda developers could code it for me?
Need help...
Click to expand...
Click to collapse
I do understand that you need it for your project. But to be frank I dont think anyone would code that for you people here can only guide you in right direction.
Rest its a whole project in itself, if anyone would code he/she would put it in Play Store itself.
Sorry
coolbud012 said:
I do understand that you need it for your project. But to be frank I dont think anyone would code that for you people here can only guide you in right direction.
Rest its a whole project in itself, if anyone would code he/she would put it in Play Store itself.
Sorry
Click to expand...
Click to collapse
Thanks for the reply. Yes i do understand what iam asking is unrational. But still, i thought i'd try. Can you guide me to any open source applications of this type? That would be of great help

[Q] Finding right place to mod an app

I hope this is the right place to post a question about modifying an existing app. In the long run, I want to create a Xposed module to do the modification, but to get started I work with modding the decompiled app. The app in question is de.zeit.diezeit.epaper.android, which is a German newspaper reader app (I am not expecting anyone to know it). What I want to do is to get rid of the scrolling animation when reading an article, because I am using this app on an eInk device (Icarus Illumina).
Now my problem is, I don't find a starting point. I have to say I don't have much (read: almost none) experience with writing Android apps (although I have a lot of programming experience otherwise). Thus I have no idea how such an animation would be implemented. I searched for references to the Scroller class and replaced the duration argument of the startScrolling method by 5ms, but this didn't change anything.
Is there any way to run the app in some kind of debug mode to see which methods are called at which time? Another idea how to find the right spot might be the trigger of the scroll: I am using the hardware page turn buttons of the device to scroll down exactly one page. How would this be implemented, what should I search for to find the code that reacts on these buttons? (Also: how can I press these buttons in the emulator?)
I am sorry if I am asking too many noob questions. If there is relevant documentation I have obviously missed, please point me to it. Thank you very much for any help!
Try looking under res/anim*
mhier said:
I hope this is the right place to post a question about modifying an existing app. In the long run, I want to create a Xposed module to do the modification, but to get started I work with modding the decompiled app. The app in question is de.zeit.diezeit.epaper.android, which is a German newspaper reader app (I am not expecting anyone to know it). What I want to do is to get rid of the scrolling animation when reading an article, because I am using this app on an eInk device (Icarus Illumina).
Now my problem is, I don't find a starting point. I have to say I don't have much (read: almost none) experience with writing Android apps (although I have a lot of programming experience otherwise). Thus I have no idea how such an animation would be implemented. I searched for references to the Scroller class and replaced the duration argument of the startScrolling method by 5ms, but this didn't change anything.
Is there any way to run the app in some kind of debug mode to see which methods are called at which time? Another idea how to find the right spot might be the trigger of the scroll: I am using the hardware page turn buttons of the device to scroll down exactly one page. How would this be implemented, what should I search for to find the code that reacts on these buttons? (Also: how can I press these buttons in the emulator?)
I am sorry if I am asking too many noob questions. If there is relevant documentation I have obviously missed, please point me to it. Thank you very much for any help!
Click to expand...
Click to collapse
Hi, very late after the question, but I am considering buying an Illumina XL HD e-reader in order to have e-ink to read newspapers. What has been your experience with your device (which model in particular is it?)? Also, I would like to root it. Do you know if that is possible? Finally, did you manage to modify the app? If so, was it difficult?
Hi, hope you found the solution

Adding intro.mp4 into apk

Like the title says how can I put a video into apk and let it play after someone opened the app
No one helps me ? I thought this is a forum
It is a forum. What you are asking for though isn't java help, its smali help so you're asking in the wrong forum. I would recommend doing some serious research into the decompilation process of apks. Additionally to me this looks like you are trying to make a spam version of a normal app (won't ever work btw because of the apk signing process) so its not really any wonder why no one has offered any help.
Jonny said:
It is a forum. What you are asking for though isn't java help, its smali help so you're asking in the wrong forum. I would recommend doing some serious research into the decompilation process of apks. Additionally to me this looks like you are trying to make a spam version of a normal app (won't ever work btw because of the apk signing process) so its not really any wonder why no one has offered any help.
Click to expand...
Click to collapse
I dont want to make a spam version its for private use
I saw modded apks which have toast frame messages and even a splash screen so I tought it would be possible to add a video too
PaulRichter said:
I dont want to make a spam version its for private use
I saw modded apks which have toast frame messages and even a splash screen so I tought it would be possible to add a video too
Click to expand...
Click to collapse
It is, its just a lot of work and I doubt anyone in this forum would be bothered enough to do it in smali, besides the developers that actually know smali properly enough to do this are very few and far between.
Jonny said:
It is, its just a lot of work and I doubt anyone in this forum would be bothered enough to do it in smali, besides the developers that actually know smali properly enough to do this are very few and far between.
Click to expand...
Click to collapse
Can you move the thread to proper forum ?
And btw maybe its possible to just make a splash screen but use an animated gif that would be awsome

Android app selenium/webpages

So i coded a while ago in python to make a little project with selenium drivers
what if i want an android app that if i put in the username and password, it will put that in the website and login retrieve a string and print that on the screen without opening a browser? and seeing all of that? it that effecient to do with selenium? i want something i can use in android studio so that i can put in and retrieve information from web pages from and to and variable...
how would i do this?
thanks in advance! :
asimo_1 said:
So i coded a while ago in python to make a little project with selenium drivers
what if i want an android app that if i put in the username and password, it will put that in the website and login retrieve a string and print that on the screen without opening a browser? and seeing all of that? it that effecient to do with selenium? i want something i can use in android studio so that i can put in and retrieve information from web pages from and to and variable...
how would i do this?
thanks in advance! :
Click to expand...
Click to collapse
Hey,
my first idea to this Problem would be old plain manual parsing. So you would have to reverse engineer the structure of the requests the website needs. Then you can submit 6our values and must be able to get the values out of the http Response.
Greetings from Germany
P.S. Not many people look in this forum for help. So maybe you get not much help here. Sorry.
P.P.S. I never worked with Selenium, so I'm unsure if you can use it directly in Android Apps
pbeckmann said:
Hey,
my first idea to this Problem would be old plain manual parsing. So you would have to reverse engineer the structure of the requests the website needs. Then you can submit 6our values and must be able to get the values out of the http Response.
Greetings from Germany
P.S. Not many people look in this forum for help. So maybe you get not much help here. Sorry.
P.P.S. I never worked with Selenium, so I'm unsure if you can use it directly in Android Apps
Click to expand...
Click to collapse
Thank you very much!

Categories

Resources