[Q] How can implement google custom search in android - G1 Android Development

I intend to make an application which allow user to input a search string, then I will query data from google, using google custom search, then display in the screen. Can you give me some hint to do that?

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!

Is it possible to intergrate Classic Google search into the browser?

I don't know if this is a big issue to anyone else but, I don't like to use google mobile search at all. I have my homepage set to google classic, I like and I am used to the desktop search results not the mobile version, especially for images. I was wondering is there a way to switch the search qwery, so that when I search google with the integrated search I can always receive google classic results?
Thanks in advance !
Not really an answer to your question, but as an alternative...I use steel with user agent set to desktop and get classic search results that way.​

[Q] Search widget code

Hi all,
Hopefully this is the right place for my question. I am new to programming for android and I am trying to find a copy of the source code for the google search widget or a way of unpacking the apk. I need this in order to see how some of the items in my first app will need to be written. I plan on building a more versatile search type widget.

[Q] Create TV Guide app

Hi,
Does anyone know how to create a TV Guide app and give me some help/"how to" guide?
Thanks!
Look at xmltv for a standard option. Trywiki.xmltv.org/index.php/Main_Page for info.
Sorry, rated as new user and can't hotlink
Me again. . I've just done a little research and can only find one app that implements the xmltv standard (tvonhand). This app doesnt allow the loading of a personalised menu and is only for Vietnam at present. An idea would be to allow the user to point to a (number of) website(s) to get the schedules they need. There are already many providers on the xml files necessary.

[Completed] How can I extend the personal dictionary shortcut entry length on Android 4.4+

My problem is that I have no way of pasting text in this specific app which I use constantly because it won't allow you to tap & hold to paste and the keyboard I use doesn't allow for an easy, consistent, error free way of pasting (e.g: a simple clipboard button...).
My question: Is there a way to extend the length of the entry for a personal dictionary shortcut on Android 4.4. I am using a custom ROM (CM11) and am therefor on Android 4.4 with a Samsung Galaxy S4 when I could be at the most recent update. There are so many apps that boast about power to the user over literally every aspect of your device and that boast about being able to DO and SCRIPT literally ANYTHING so long as you have a rooted device, which I do have, but none that I have tried can fix my simple issue.
If there is no way I can modify the allowed text length for a personal dictionary shortcut, is there any way I could add a simple clipboard button to my current keyboard (Google Keyboard) or relatively easily create my own keyboard with similar aesthetics to the one I currently use and similar functionality while adding a simple clipboard button?
Can I create a script on my phone (rooted) that works like the personal dictionary shortcut of Android 4.4 in the sense that typing a shortcut (brb) will produce a chunk of text (longer than be right back) but that has more flexibility (is not limited to a mere ~50 characters)?
Is there any answer that would maybe possible be sufficient for anything along these lines of the questions above?
Also, this isn't very important, by why in the world does Google think that a simple, minimalistic, clipboard button is too much to add to their keyboard. Some dev made a blanket statement that whenever and wherever you want to paste text, you can always use the simple tap & hold feature. However, there are SEVERAL instances where this is NOT the case, one of which being my situation.
Finally, I realize this is XDA assist and I'm probably not posting this where I can get a sufficient answer but I have no idea where to post this on this forum. I don't want to post it in four different places because that tends to be frowned upon...
XDA Visitor said:
My problem is that I have no way of pasting text in this specific app which I use constantly because it won't allow you to tap & hold to paste and the keyboard I use doesn't allow for an easy, consistent, error free way of pasting (e.g: a simple clipboard button...).
My question: Is there a way to extend the length of the entry for a personal dictionary shortcut on Android 4.4. I am using a custom ROM (CM11) and am therefor on Android 4.4 with a Samsung Galaxy S4 when I could be at the most recent update. There are so many apps that boast about power to the user over literally every aspect of your device and that boast about being able to DO and SCRIPT literally ANYTHING so long as you have a rooted device, which I do have, but none that I have tried can fix my simple issue.
If there is no way I can modify the allowed text length for a personal dictionary shortcut, is there any way I could add a simple clipboard button to my current keyboard (Google Keyboard) or relatively easily create my own keyboard with similar aesthetics to the one I currently use and similar functionality while adding a simple clipboard button?
Can I create a script on my phone (rooted) that works like the personal dictionary shortcut of Android 4.4 in the sense that typing a shortcut (brb) will produce a chunk of text (longer than be right back) but that has more flexibility (is not limited to a mere ~50 characters)?
Is there any answer that would maybe possible be sufficient for anything along these lines of the questions above?
Also, this isn't very important, by why in the world does Google think that a simple, minimalistic, clipboard button is too much to add to their keyboard. Some dev made a blanket statement that whenever and wherever you want to paste text, you can always use the simple tap & hold feature. However, there are SEVERAL instances where this is NOT the case, one of which being my situation.
Finally, I realize this is XDA assist and I'm probably not posting this where I can get a sufficient answer but I have no idea where to post this on this forum. I don't want to post it in four different places because that tends to be frowned upon...
Click to expand...
Click to collapse
Hello, and thank you for using XDA Assist!
Yeah, it's rather a missed opportunity not to have clipboard functioned built into the AOSP keyboard, or even Google Keyboard. Although, there are keyboards out there that do. TouchPal comes to mind (as my phone is currently using it), and the Hackers Keyboard has a CTRL key, which leads me to believe that CTRL + V will work (but my tablet is upstairs at the moment).
If alternative keyboards are not your thing, the first place to ask for options would be with your device experts (in spite of the custom ROM). So I will leave this thread here:
> Samsung Galaxy S 4 i9500, i9505, i9505G, i9506 > Galaxy S 4 Q&A, Help & Troubleshooting > [HELP THREAD] Galaxy S4 | Ask any question | Noob friendly
Please note, you will need to have an XDA account to post there.
Hope this helps, and good luck!

Categories

Resources