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!
Related
I am looking for a very specific app to assist me with interviews. What I need is an app that can open a Word or Excel style template page. The page will have a list of questions and the space to fill in answers just like any normal paper application form.
Name:.........................................................................
Address :.....................................................................
..................................................................................
..................................................................................
Tel:................................................
Etc.
Now this bit is easy I have seen many app's that can do this, the next is the difficult bit,. I need the app to allow me to use a stylus to handwrite the answers in the fields. It does not need to recognise what I have written just save the page as I have annotated it with the handwritten answers. I can then open the template again and conduct the next interview.
Is there such an app out there? If not would anyone be interested in creating one? If this is a new idea then whoever wants it can use it. Thanks all.
Sounds like a good idea that can easily be accomplished using the Google App Inventor.
If I have a few spare cycles I'll see if I can throw it together.
Nice idea, would be a handy little app for many i'm sure.
Would be nice for it to have a "done and save" button so it auto went to the next form, and have an edit mode to edit the forms themselves (making it applicable for any survey, data collect use).
I'll have a look at the app maker today and see if a noob like me could knock something up (allthough its probably best left to those with experience).
Definately a good idea though ^^
EDIT: Oeer, think i may need to readup on the Appmaker for a week before i start ...Spose have to start somewhere. Consider me outof the dev picture for a mo ...allthough need any art/buttons i can help anytime xD
Hello,
I would like to get a list of database names in code. I'm not looking for databases outside my application/package, just those in my /data/data/<my_package>/database folder.
I can easily locate them on the file system and open them using adb and sqlite3,
but I need to dynamically get a list of databases so that I can open and manage them in code.
I currently use a separate database to keep track of database names as they get created/deleted through my application, but I imagine there is a way to get a list of databases directly via SQL query or some sqlite library call.
Can anyone help me with this?
Thanks,
-dj
This should be in the "Android Development" forum.
BTW, I tried to post this question in a more topical "Android Development" forum, but I'm an XDA newb and don't have permissions to post in there.
Maybe these links can help you? I don't do much droid programming anymore and I never worked with databases in droid. Also welcome to XDA
http://www.devx.com/wireless/Article/40842
http://developer.android.com/reference/android/database/sqlite/package-summary.html
solution
The solution turned out to be very simple.
The main application context has a databaseList() function that, conveniently, returns a list of database names associated with the application.
String[] dbList = getApplicationContext().databaseList();
Thanks for the links dbzfanatic. devx looks like a good resource... it's going on my bookmark bar for sure.
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
database names
dbzfanatic said:
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
Click to expand...
Click to collapse
Correct, just a list of the database names.
I need a few more posts before I'm permitted to post a link, but this is the approximate reference link:
developer.android.com/reference/android/content/Context.html#databaseList()
hi I'm very very (very, very) inexperienced in WP7 app development, but so far I've used some tutorials to program simple WP7 apps.
I'm busy with a project now, the UI is quite done but I have a few questions, sorry if they are already asked, did search for answers, but im pretty stuck.
1) How can the time update automatically?
I used this code to display the time in 173x173 'tiles' (textBlock) but they only show the time the app loads.
Code:
timeBlock1.Text = DateTime.Now.ToString("hh");
timeBlock2.Text = DateTime.Now.ToString("mm");
2) Is it possible to filter certain calendars from the WP7 api to my app?
3) How can i use the Visual Studio tools to fill a form (textBox, checkBox, listPicker etc) on a website and to retrieve the results in a textBlock (if not, just show the webpage)?
These are just a few of the questions i have, but I'm not that far with coding and stuff.
Any help would be highly appreciated!!!
1) It doesn't update because the code is only called once, you need to use a timer to update the textBlocks on an interval.
Example:
Code:
//create the timer
DispatcherTimer timer = new DispatcherTimer();
//1 second interval, can be any valid TimeSpan
timer.Interval = TimeSpan.FromSeconds(1);
//method that gets run
timer.Tick += new EventHandler(timer_Tick);
//start the timer
timer.Start();
The Tick method:
Code:
private void timer_Tick(object sender, EventArgs e)
{
//can probably just use DateTime.Now.ToShortTimeString() instead.
timeBlock1.Text = DateTime.Now.ToString("hh");
timeBlock2.Text = DateTime.Now.ToString("mm");
}
2) I don't think there's an api for accessing calendar data for now.
3) U can't really do that from the VS tools directly, u would have to do in code either via the WebClient/WCF service. To display a webpage directly u can use the WebBrowser control.
I'd suggest running through some of the guides on AppHub. Or even picking a more general book on C# if your not already familiar with the language and then moving on to more WP7 specific stuff.
Thanks a million, yeah I'll have a look at C# code in general.
I only used some tutorials - which were very good to introduce in WP7 app development - but they were not enough to build full functional apps.
Gmic1000 said:
Thanks a million, yeah I'll have a look at C# code in general.
I only used some tutorials - which were very good to introduce in WP7 app development - but they were not enough to build full functional apps.
Click to expand...
Click to collapse
Yeah even though you're not going to understand everything at the start, it's very important to take the time to actually write the code yourself to get the fundamentals down.
As for keeping motivated, there's a free e-book Programming Windows Phone 7 by Charles Petzold which covers a lot of the basics regarding Silverlight/WP7 development that u could take a look at.
And there's also a ton of resources on the net like stackoverflow, AppHub forums and other .net/silverlight sites.
In addition to what was said before, you can also use MSDN
On this webpage you will not only find examples but if you actually navigate the page (or google search for some keywords) you will actually find detailed descriptions of all availble methods, namespaces etc with example code like here:
http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.sharelinktask.linkuri(v=VS.92).aspx
Maybe not so useful for an absolute beginner but at some point this website will be really helpful because it documents more or less everything available in C#/WP7 SDK.
slimshady322 said:
In addition to what was said before, you can also use MSDN
On this webpage you will not only find examples but if you actually navigate the page (or google search for some keywords) you will actually find detailed descriptions of all availble methods, namespaces etc with example code like here:
http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.sharelinktask.linkuri(v=VS.92).aspx
Maybe not so useful for an absolute beginner but at some point this website will be really helpful because it documents more or less everything available in C#/WP7 SDK.
Click to expand...
Click to collapse
Thanks, its kinda complicated that way, but its good to know the namespaces and classes.
I googled the webclient, man it's complicated...
Any advice for understanding the WP7 webclient?
Hey guys,
I'm really new to this app development and would like to ask one of you experienced developers a question.
Basically I have recently been creating mobile websites from a set of css files which are just a basic template. The template files have individual files for some of the most common pages that a small business would need, google map, contact us with form, menu, opening hours and so on.
What happens is you simply upload the company logo and such into the images folder, update the css style sheet for colours, then simply edit one of the relevant pages e.g place the food items in the menu page.
When the whole set of files gets uploaded it creates a personalised functional business mobile website.
What I would like to know is, would it be possible to set something like this up for an android app? Whereby the user could simply change the details as above and then compile the apk file which will create the app?
Your input is much appreciated, also have any of you got any idea where I could get someone to code something like this?
Regards,
Stephen
Hello world,
yes, I used the search function.
Background: (you may wish to skip to the question)
I'm a multitasker and I don't like Android killing my browser if I use one or two other applications for a minute or so, because I lose all my tabs content that way. While that isn't bad having a good network connection, it is real bad in subway train where I usally read news by phone and the internet connection is very bad.
So I tried many different things in order to prevent android from killing my browser, and finally I found a solution in the opera forum:
(I really would like to link you there, but: "To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!")
knumsole wrote in Opera forum:
Here, take this: (sorry, can't post link, see above)
This is Opera Mobile 11.5.3, (...). I repackaged it with a dummy service which increases the OOM priority of the application. This will very effectively prevent Android from killing it.
Click to expand...
Click to collapse
(google for the complete sentences in that quote will lead you there.)
Adding this dummy service changed the applications oom priority from about 7 to 10 (--> gets killed soon to first) to an oom priority of 2 (which is totally stable for me).
[ooms read by auto memory manager.]
Question:
Is there a relative easy way to add a dummy service to an existing application? Such as "knumsole" did described before? (I tried contacting him, but wasn't successful)
I'd like to be able to do that myself, e.g. if I need a newer version of the browser. With "easy", I mean: I'm not an application developer, and I don't intend to become one. But I am able to extract an .apk file and modify text files in there and so. And if it is necessary, I would also compile that, too.
I use Android 4.1.2 on a rooted Samsung Galaxy S2.
Thank you!
* (more than) 24h bump *
24h bump
*bump*