[Q] (CODING) Need help coding a simple, lightweight application - General Questions and Answers

So, I need some help.
I want to develop a simple app for my Android phone that lets you input a text when accessing the phone's lockscreen, this text should then be saved in a log file containing not only the input text but also date and time of input registration. There should not be any way of avoiding the input either, entering no text and continueing should result in a log that only contains the date and time.
This should result in being able to check who accessed your device and when. For me this would be helpful. I'd then input a nickname for myself that nobody knows of and if someone tries entering the device using my real name, I'd know it wasn't me.
Now here is the problem, I haven't ever developed an application or anything of the sorts. My only experience in coding would be HTML. Does anybody feel like helping me out?
It's a complicated situation, so I'm not responding to the usual "Why don't you just do this or that". I want this specific method that works for me if at all possible.
Thank you for your consideration.
_Valkyr//

Anyone? ;-;
Sent from my GT-I9505 using XDA Free mobile app

Related

need help with very small program for myself.. plz help

im trying to get a very very small program runnint, however im very lost when it comes to programming windows mobile device, i have a database online, and i want a small dialog box to show up on my wm device and alow me to type something in , then it search the online database.. and return the information, or even just take me to where the online listing is, that's all no bells or whistles.. could someone help me with this please?
i have even added a search feature to my database, soo i just basically want this little program to relay text to that search feature, then take me to it.. so i don't have to go to all these links and whatnot
Well,
it is quite hard to advice you anything without actually knowing about the file structure / database format. Maybe the easiest way would be to simply set up a search option online as a WAP2.0 page - if you don't want others to access this section, simply password protect it.
If you really have a need to generate the 'search string' offline (which I just can't understand since you want to be taken to your DB online) then simply use something which generates the search string for you.
For example you could have a "results.php" online which simply needs the search terms 'attached' in order to list you all relevant records. Now, the question remains how the database is structured. If you have 2 fields in your database, containing firstname and lastname, then it would be simple. You would need only something that adds your search terms to the string and then navigates to your server. For example you search for SMITH as lastname, it would have to transfer the string as followed:
www.mysite.com/results.php?lastname=smith
For sure your results.php needs to be programmed first!
However,
this has nothing to do with your device, you better join a programmer forum - in this case I would suggest you look for web development forums since this can be done entirely on the server side!

Implementing a phone number search box, like in the SMS app

Hi XDA,
I'm writing my first Android app, an open source webtext client for Irish mobile networks. The current version of the project can be found here: https://code.google.com/p/webtextr
There's one thing I'm having trouble with though. I'd like to implement a ‘recipient’ text box, where the user can start typing the name of a contact, and after each letter is pressed, it searches their contacts database and provides a drop-down list of suggestions. Then the user could click on a name and it would insert their number into the text box. This would be just like the way it works in the stock SMS app when you go to compose a new message.
Does anyone know how to implement this? I've been looking through the source code of the stock SMS app here https://github.com/CyanogenMod/android_packages_apps_Mms/tree/froyo/src/com/android/mms/ui. But... it's *very* complicated and not especially well commented.
Any help would be massively appreciated. Once this is added, the app will be fully functional and perfectly usable.
Bump? Anyone?
I've figured that I should use an AutoCompleteTextView. But any examples I've found online have been broken in some way, and seem to use the deprecated People class.
Is this really as hard as it seems? I'm suprised Android doesn't provide an easy way of doing this...

[Q] Info on Database programming on Android

Ok, I'm trying to build my first app that interacts with a Database. Essentially I'm going to have a list of parts with a name, location, and serial number stored in a database. I would like to add, delete, and update rows. I tried following the Notepad example but I'm having trouble following. Not really understanding why and how they are using somethings. I have had database programing but its been a while and need a refresher. Anyone know where I could go to find more detail explanations of achieving my goal for this database?
Thank you in advance.
T.
TayOnG1 said:
Ok, I'm trying to build my first app that interacts with a Database. Essentially I'm going to have a list of parts with a name, location, and serial number stored in a database. I would like to add, delete, and update rows. I tried following the Notepad example but I'm having trouble following. Not really understanding why and how they are using somethings. I have had database programing but its been a while and need a refresher. Anyone know where I could go to find more detail explanations of achieving my goal for this database?
Thank you in advance.
T.
Click to expand...
Click to collapse
All major mobile O/S's include SQLite. You cann drive SQLite through C, Java or any scripting languages. You need to learn less than 10 SQL commands to survive. I bought a couple of books (recommend O'Reilly's Using SQLite), and now I get 95% of the commands correct first time.
Thank you I will check out that book.
Sent from my HTC Vision using XDA App

Programming Java in Android

In my college courses i'm assigned to build a program to decode caeser cipher. I just finished and was thinking after I get done with other types of ciphers , that it would be cool to have an app that could do it for me. Easy way to send and receive text messages securely then copy and paste into my decoder. Not even ciq could uderstand your messages nor could anyone else unless they knew the shift pattern.(caeser) other various forms of ciphers could be available too.
I can program java fairly well( not expert) but i'm unsure on how to build Android programs. Anyone know any good websites that teach step by step on installing tools to compiling and decompiling and building libraries and all that jazz? Or anyone have any write ups that they have made and are willing to share?
Thanks guys.
Tim
Sent from my SAMSUNG-SGH-I727 using xda premium
Now I know there are cipher apps out there but my idea was to be able to long press on a text message and send to cipher app. And vice versa...after encoding a message send to text message instead of copy and paste. Not sure if that type of functionality needed to be baked into system files. Seems like it would.
Sent from my SAMSUNG-SGH-I727 using xda premium
developer.android.com/ (i dont have enough posts to link anywhere) has tutorials on basic building of apps. i believe the easiest way you would be able to do this would be by just using the interface builder. im not sure if you can have permission to add things to the context menu... i know you can set your app to receive SMSs or to read them by default. probably can send too. if you add a flag somewhere in the messages it sends to be interpreted by your app and use the SMS reading permission, you would be able to do it. those are my thoughts on it at least.
mrtim8383 said:
In my college courses i'm assigned to build a program to decode caeser cipher. I just finished and was thinking after I get done with other types of ciphers , that it would be cool to have an app that could do it for me. Easy way to send and receive text messages securely then copy and paste into my decoder. Not even ciq could uderstand your messages nor could anyone else unless they knew the shift pattern.(caeser) other various forms of ciphers could be available too.
I can program java fairly well( not expert) but i'm unsure on how to build Android programs. Anyone know any good websites that teach step by step on installing tools to compiling and decompiling and building libraries and all that jazz? Or anyone have any write ups that they have made and are willing to share?
Thanks guys.
Tim
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
Check here:
http://mitmobilelearning.org/
and here:
http://appinventoredu.mit.edu/blog
Hope these help.

[Q] Total NOOB needs some help :)

Hi all,
My name is Fabian, and I have a strong background in C. (Done a CS course in C).
I want to do an Android app for my final project(nothing too fancy or complicated but I have to at least have some interface ) and I'm a little stuck with how to proceed from here.
I watched the Java essential course on Lynda and I did understand a little the difference between C in Java, however I don't know how to proceed from here to actual Android development.
If anyone can recommend me finding a crash course, a book or any other resource that could get me up and running as soon as possible, I would really appreciate it.
I don't mind spending money on it.
Thanks in advance.
Fabian
fabiansc said:
Hi all,
My name is Fabian, and I have a strong background in C. (Done a CS course in C).
I want to do an Android app for my final project(nothing too fancy or complicated but I have to at least have some interface ) and I'm a little stuck with how to proceed from here.
I watched the Java essential course on Lynda and I did understand a little the difference between C in Java, however I don't know how to proceed from here to actual Android development.
If anyone can recommend me finding a crash course, a book or any other resource that could get me up and running as soon as possible, I would really appreciate it.
I don't mind spending money on it.
Thanks in advance.
Fabian
Click to expand...
Click to collapse
A great resource for Android development is the official Android training documentation from Google, as well as these tutorials. Let me know if you still have questions I'll be happy to help.
thanks little question regrading databases
shimp208 said:
A great resource for Android development is the official Android training documentation from Google, as well as these tutorials. Let me know if you still have questions I'll be happy to help.
Click to expand...
Click to collapse
Hi,
Thanks for your help I learned a lot and I'm already planning my app
I just have one question that could really help.
I want to make an app where people on different devices can interact and send each other tasks. I guess I need a kind of SQL server that supports Android, right? Is there a better or at least more economic way to do it if I will have around 1000 users where each one can add people to send tasks to?
Many thanks,
Fabian
And one more question
Is there any way to do a phone number authentication (like Whatsapp) instead of user name and password which I think is a little to tedious for my planned app ?
Thanks in advance
Hola, for the task sending. Would you like to make all task public? Or should you send it like a message?
But when i need access to a server, i use php scripts. But we can take that later, when you have answered my last question
For the phone number authentication, you have to have a online database, with all phone numbers. User inserts their phone number, the first time they starts the app. Then you can retrieve it from the database. But we can also take that later.
I´m glad if i helped.
(Sorry for my bad english.. )
Hola
Well I want it to be like a manager that gives a task to his employee. I want the task to be between them and only they can close it.
Likewise, it would be a problem if I make a simple phone number insertion if there's no validation. I was thinking about a number verification (like whatsapp) to prevent other people from accessing the tasks.
Do you think it's possible or should I go with username and password?
Thanks
fabiansc said:
Hi,
Thanks for your help I learned a lot and I'm already planning my app
I just have one question that could really help.
I want to make an app where people on different devices can interact and send each other tasks. I guess I need a kind of SQL server that supports Android, right? Is there a better or at least more economic way to do it if I will have around 1000 users where each one can add people to send tasks to?
Many thanks,
Fabian
Click to expand...
Click to collapse
I am using OpenShift - https://www.openshift.com/developers - which is a open source cloud architecture in that they offer packages like NodeJS and DB's. They allow you to have 'gears' which I guess is their name for services running on their cloud. The free account has 3 gears.
I currently only have a NodeJS server running to deliver files however (as far as I understand it) you can have MySQL and others as a backend. I would think that whatever devices you develop on would simply log into the DB and look up messages/tasks etc. I would also think that your app could insert those things. The best part is it is free until you reach Enterprise level or so. I would check it out since free is good. Offhand, I do not know what DB's Android supports via java but MySQL is probably one of them.
Just some info for you to examine.
Good luck
Hola, of course its possible! But maybe Username and Password is easiest.
You can use e-mail validation.
I actually worked on a application, there store products in databases. So i have tried it before. Ask if you are confused
And Sum1nil, sqlite is implemented in android, so for local database, use sqlite.
But for online database access, i use php

Categories

Resources