[extension] Powerful viewer for android code snippets (free) - IDEs, Libraries, & Programming Tools

If you're reading android code on the web, the Codota extension for Chrome can help you.
This extension analyzes code snippets on web pages and shows you all the relevant android API javadocs in nice bubbles.
It works for classes, methods and XML attributes.
get it from codota.com/extension

Thanks, very useful
drorwe said:
If you're reading android code on the web, the Codota extension for Chrome can help you.
This extension analyzes code snippets on web pages and shows you all the relevant android API javadocs in nice bubbles.
It works for classes, methods and XML attributes.
get it from codota.com/extension
Click to expand...
Click to collapse
Thank you for posting about this extension, it's very helpful. :good:

Related

Improved Opera 8.xx homepage: Add yours here

EDIT: UPDATE IN LATER POST BELOW
Here's a modified homepage I did for Opera. Looks best at 75% zoom
Supports many* search engines with one elegant dropdown (ie javascript page) - enter keywords and select engine (else press enter for Google as default). Makes Opera a far more useful tool. See list below.
Bookmark areas divided (you can change headings)
Area for built-in opera functions (eg opera:cache) for which I'd love some additions
If anyone out there is good at javascript, else has a history of collecting Opera widgets/bookmarklets that work under JS, it'd be great to start collating bigger n better homepages in this thread.
To install
Backup original home.html if u r worried this will not be nice, else just extract the home.html as another name and change Opera's homepage
Simply extract the files to \Application Data\Opera\startpage
Edit the home.html to insert your own bookmarks (either as text file else in html editor - it's easy)
*Search engines covered: Google, googleZA, google Images, Dictionary, Thesaurus, Quotations, Law dict, Medical dict, Encarta, How Stuff Works, WorldAltas, NationMaster, FactMonster, Wikipedia, Mythica, Britanicca (crap), Amazon, Song Lyrics/artist/titles, IMDb, Jokes (down so not tested). Can add anything else to this script without screen clutter - but that's all the truly useful stuff I could think of. If u want more, post the search string for me (ie the URL)
Forgot to attach zip - sorry. Improved search engines whilst I was at it tho.
This is amazing! Thank you for taking the time to do this. I was even able to cut and create it into a page suitable for my PIE homepage!
wow! didn't think PIE would support such javascript - thought that was one of the things that made Opera so cool. Good news tho - perhaps ppl have other PIE homepages they can post here for us to benefit from.
THX
Just SuperDuper !
Many Thanks for this
Great.
Cheers
hrb
lulugirl896 said:
This is amazing! Thank you for taking the time to do this. I was even able to cut and create it into a page suitable for my PIE homepage!
Click to expand...
Click to collapse
How did you do that ?
Cheers
hrb
fantastic job dude
i love the homepage
i was just wondering what the purpose is for secure bookmarks?
what is different about it? and how does it work?
Bartjan said:
fantastic job dude
i love the homepage
i was just wondering what the purpose is for secure bookmarks?
what is different about it? and how does it work?
Click to expand...
Click to collapse
Cool - glad it's appreciated.
Actually the only clever part is the search engine, rest is a simple table with dividers for whatever headings you want (ie copy the divider as many times as you like). In my case I keep all my https bookmarks separate (webmail, 3 banks, server admin, etc etc). You may prefer "News", "PPC", "Personal" or some other structure.
another search engine
First of all, many thanks for this homepage, it's what I've been dreaming all along... almost
Now, to make it perfect, I would need to change/add some other search engines, such as the portuguese "yellow pages", wich url is www.pai.pt.
Also, I would like to know how to set the bookmarks in the homepage.
Can you explain how can I do that? I have no experience in programming, but I believe these tasks are simple enough, if someone can explain them step by step.
Thanks again
vmiguel
EDITED: Ok, I've managed to understand the bookmarks. Now I only need some assistance in geting the correct url to query a search engine, like the one I've mentioned above. Naturaly, the simple page url is not enough, but I can not find what's missing. Can someone help? TIA
Attached is an update with more search engines and links.
The update has a whole load of new ideas - largely set up for for SA but there's a guide below on modifying to your country. Let's add to this list please, and PLEASE post your country-specific pages in this thread:
Normal searches (google, google images, google maps)
SA searches (google ZA, DSTV guide, resturants/nightspots, Braby's maps (serious Java works in Opera 8.60! AWESOME!!!), postal codes, Braby's business lookup, Ananzi shopping
Reference searches (dictionary, thesaurus, quotations, law dict, medical dict)
Encyclopedia searches (several)
Entertainment searches (Amazon, Songs by lyric/artist/title, IMDb, Jokes 1/2 both work well)
Bookmarks PDA
Bookmarks South African (exchange rates table, MyBroadband, ACSA flight schedules and late arrivals (useful!), venue search, current local movie reviews, netflorist, Yellow and WHITE pages!, CIPRO company search, SARS VAT number search) Could not turn last few into search items for drop box I'm afraid
Place for personal bookmarks (banking, share trading, webmail, etc)
Opera internals (History, cache, about, Bookmarks as text file, PPC browsing) If anyone knows the javascript for opening a bookmarks page that would be great cos text page is crap - I only did it cos cut-n-paste may be useful!
Future bookmark ideas (largely ZA):
Taxi booking
Local car rental firms
Local airline schedules
Booking for local hotel groups
Local auction sites
Locla Lottery numbers search
Property search
School friends search
vmiguel: editing is easy as you are finding - open in an html editor or just a text editor. Text may actually be easier cos the html editor will probably not render the CSS correctly.
To add search engines, surf them in your PC and note the URL when you search for a word like 'MYSEARCH'. Somewhere in the URL you will see a bit that says &xxx=MYSEARCH where xxx is usually q or query or keyword or something similar. You'll get the plot. Make sure this bit is put at the end of the URL, and remove the MYSEARCH bit. So, the URL will be:
htttp://www.searchengine.com/search.html?a=1&b=2&query=
The script will ad the entered words at the end.
Some tips:
Ignore other &... items
Remove any keys or session ID's that have complex strings
Don't miss the & before query unless...
..after the page URL should be a ? - all parameters follow this. So if query is the only parameter, it will look like htttp://www.searchengine.com/search.html?query=
Thanks a lot, I'll try it, and get back with a portuguese homepage!
EDITED: sorry, no & or = symbols, the resulting url, after performing a search is http://www.pai.pt/search/mysearch.html
"Mysearch" is a false query, because there is no portuguese company with that name, but if I perform a search for a existing company, as "Norma Básica", the result is similar: http://www.pai.pt/search/norma_básica.html
Any ideas?
vmiguel said:
Thanks a lot, I'll try it, and get back with a portuguese homepage!
EDITED: sorry, no & or = symbols, the resulting url, after performing a search is http://www.pai.pt/search/mysearch.html
"Mysearch" is a false query, because there is no portuguese company with that name, but if I perform a search for a existing company, as "Norma Básica", the result is similar: http://www.pai.pt/search/norma_básica.html
Any ideas?
Click to expand...
Click to collapse
Yep, it's a *****! Actually, it's a rather clever search page that remembers your recent inputs and allows you to select them from the drop box and a mouseover popup. Impressive. It works if you append .html to the string generated by the script, but I can't think of an elegant way to make the script do that for some sites and not for others. Think you'll have to do the same as I did for our SA yellow and white pages; just do a bookmark to that site rather than use the drop box. Sorry.
hrb said:
How did you do that ?
Cheers
hrb
Click to expand...
Click to collapse
Once I had my links all set up for Opera, I cut and pasted the links only and then used the instructions here: http://msexchangeteam.com/archive/2004/03/03/83349.aspx The javascript wont work, but at least you will end up with the same links in PIE and Opera, and you wont have to re-type!
Good enough for me. Thanks again, for such a great idea!
you are great !!! it makes opera much more useful now~~thanks a lot

pulling certain parts of web page from http response

I wanna write a vBulletin viewer for android since we're lacking one atm, but I'm having trouble figuring out how I would pull the information I need to display from the web page i.e. the thread titles, post content etc. I've looked at the vBulletin docs but I haven't found much, and I'm sure android must have an html parser that I'm not finding. Does anyone know how I might go about this?
download the page then parse the file...
Yea, that's a really obvious solution that never occurred to me. Thanks :-D
But since the HTML is being generated, how would I access it from inside the program?
v1nsai said:
But since the HTML is being generated, how would I access it from inside the program?
Click to expand...
Click to collapse
Err... what? How do you want to download it and still don't have access to it?
Brut.all said:
Err... what? How do you want to download it and still don't have access to it?
Click to expand...
Click to collapse
lol right.
You would have to download the whole page to ur program dir(or some temp dir). then open up the file and search out the the information u want. DL'ing the whole page could be time consuming tho, but its the only real way if the website doesnt offer the information in an api.
I think I'm gonna try the rss feeds, seems like most vbulletin forums have rss feeds for each subforum

[Q] Want to make a custom pdf viewer with menu

Hi,
Im just starting out devving and for work I would like to build a custom branded pdf viewer that opens pdfs inside program.
What i want to do in detail:
main page - branded to my company (i can do the graphics easily enough)
this page has two options - SOPs and SWPs (these are categories of documents)
SOPs page - list of pdfs in this category
SWPs page - list of pdfs in this category
I know I could just use adilko or other ereader app but i want to make my own.
Any help with the actual code to launch the pdfs within the app so i can go easily back to previous app pages would be greatly appreciated!
please guys i need help, its doing me in!
"Launching pdfs within the app" will not work as easily as you think. Unless you can find a PDF library or engine (however it's called for PDF) you will have to follow the PDF specifications and implement the rendering yourself. Good luck!
martino2k6 said:
"Launching pdfs within the app" will not work as easily as you think. Unless you can find a PDF library or engine (however it's called for PDF) you will have to follow the PDF specifications and implement the rendering yourself. Good luck!
Click to expand...
Click to collapse
I was thinking of reskinning vudroid for my non-commercial purposes - but after downloading all 1422 files on their code repository, eclipse wouldnt accept it
I've found a dirty way by converting each 20+ page pdf into jpgs and calling them as a scrollable screen. but i wanna zoom and **** lol. would look so much more polished (as far as my clients see) that i have everything within a certain style.
but alas, as Ned Kelly said:
"such is life"

What Topic Do I Need To Tackle To Develop This Kind Of App?

The harvard university android app from google play store. (I can't seem to post any outside link yet for this account)
I want to create one for may school but I'm just starting to learn android programming, so guys I need your help on the topics that I need to study to create an app like that. I greatly appreciate any kind of comments. Cheers!
clonedaccnt said:
The harvard university android app from google play store. (I can't seem to post any outside link yet for this account)
I want to create one for may school but I'm just starting to learn android programming, so guys I need your help on the topics that I need to study to create an app like that. I greatly appreciate any kind of comments. Cheers!
Click to expand...
Click to collapse
Fragments, ListViews, JSON parsing (for communication with the web server to download news etc), Android SQLite databases (I suggest using this to store the information from the webserver locally so the app does not require a constant internet connection to view a news article for example), Google Cloud Messaging notifications, notifications, encryption.
There are lots more but these are some of the main ones. In addition I would not advise trying to copy the "look" or aesthetics of the Harvard application as it frankly looks disgusting, whoever designed that needs a course in UI design
any book suggestions?? im only studying at home and wanted to start studying android app development
m0nm0npalam0n said:
any book suggestions?? im only studying at home and wanted to start studying android app development
Click to expand...
Click to collapse
Android Application Development for Dummies and Learn Java for Android Development are 2 that I have in ebook form, though I can't say I've used them much as I don't really learn by reading books, more like looking at the source code of other apps and messing with it to see what happens
Android Application Development for Dummies goes through a wide range of topics including widgets, SQLite storage, possibly SharedPreferences (can't remember), ListView etc but does assume that you can at least follow what the sample code is doing - the sample code is commented but if you have not done any coding at all before then you probably should learn the basics of Java before reading it
Jonny said:
Android Application Development for Dummies and Learn Java for Android Development are 2 that I have in ebook form, though I can't say I've used them much as I don't really learn by reading books, more like looking at the source code of other apps and messing with it to see what happens
Android Application Development for Dummies goes through a wide range of topics including widgets, SQLite storage, possibly SharedPreferences (can't remember), ListView etc but does assume that you can at least follow what the sample code is doing - the sample code is commented but if you have not done any coding at all before then you probably should learn the basics of Java before reading it
Click to expand...
Click to collapse
thanks man! this really helps
Jonny said:
Fragments, ListViews, JSON parsing (for communication with the web server to download news etc), Android SQLite databases (I suggest using this to store the information from the webserver locally so the app does not require a constant internet connection to view a news article for example), Google Cloud Messaging notifications, notifications, encryption.
There are lots more but these are some of the main ones. In addition I would not advise trying to copy the "look" or aesthetics of the Harvard application as it frankly looks disgusting, whoever designed that needs a course in UI design
Click to expand...
Click to collapse
Thank you very much for the reply, I'm really thankful for the information that you share. Can you please clear this one for me?
I suggest using this to store the information from the webserver locally so the app does not require a constant internet connection to view a news article for example
Click to expand...
Click to collapse
clonedaccnt said:
Thank you very much for the reply, I'm really thankful for the information that you share. Can you please clear this one for me?
Click to expand...
Click to collapse
When you get data from a server to an Android app you use php for the server code - for example you can use php/mysql to run a search for calendar events in the database and return those events. Then you need to use php's JSON encode function to send the data in a JSON array.
The output should look something like this - this is the output of the calendar database for my school:
http://wgsb.cobainschofield.com/android_db/get_calendar.php (note this is not the live schools site, its the test server the guy who maintains the live site allows me to mess with err use).
You would then use a JSON parser class and an AsyncTask from within the app to "download" the content of the JSON array and then display it in a listview or textview etc.
Now obviously to get this information requires an internet connection yes? So every time someone wanted to check for an event on the calendar or read a news article for example they would need a working internet connection to receive the output of the get_calendar script, this is inefficient and bad design as it does not allow for offline viewing of the data.
Therefore what you can do is use androids SQLite implementation to create a local sql database then the first time you need to get the data from the webserver, you connect to the internet and get the output of the php script, the using the JSON parser class you store the information in the sqlite database then get the information from the database to display to the user.
By this way users can view news articles or calendar events offline and you only need to connect to the internet to refresh the information
I've uploaded screenshots in the attachments of how I've done it for my school's app.
That made it clear! Thank you very much.

How do I find what libraries an app is using?

Hi folks,
Newbie here, and I expect some bashing as I don't know the rules, but I did saw similar questions so started a thread here.
So, I have decompiled an apk file, and I can see that there are folders in 'src', and after googling a bit I can find some libraries like rebound in the 'com' folder of the decompiled apk. But I couldn't find other libraries as someone suggested me on twitter that devs at times obfuscate things( not sure of the obfuscation!).
I am a business guy, I know less in-depth tech stuff and I am trying to do this for a market research initiative. Is there any easy way to find libraries? For example, I learned about XML and read the structure and got information on one more library present in that APK. Is there a way as easy as this one?
Or incase, if there's a more difficult way, I am ready to learn that no matter what level of difficulty it brings. Hit me up folks!
NOTE: I'm not trying to steal any one's work. This is just a market research work.
You should analyze source code and look for relevant JARs.
Also you can use a software like Charles (charlesproxy com). It analyses all the HTTP traffic on your network, so you can run the app and then monitor the HTTP packets on Charles to detect all possible GET-requests to APIs.
hulak_aleksandr said:
You should analyze source code and look for relevant JARs.
Also you can use a software like Charles (charlesproxy com). It analyses all the HTTP traffic on your network, so you can run the app and then monitor the HTTP packets on Charles to detect all possible GET-requests to APIs.
Click to expand...
Click to collapse
Thanks for the information. I will try doing that. But will also give me information on obfuscated libraries?
What kind of library did you mention? If you looking for native libraries, you can Use an app developed by Savier, named Native Libs Monitor. Search it on Play store.
Check out http://appbrain.com, they got quite nice analytics on apps, including libraries any given app using (under Basic Information -> libraries tab)

Categories

Resources