android application using ipv6 - Java for Android App Development

Hi.
How do i link ipv6 together with a mobile application device such as android? I have a project given by the lecturer with 0 notes as reference. I have to combine both of them together, however i dont understand how to link them together and i dont see how it works. Hence, i would ask for any links or explanation or reference notes for such application. I have been googling out such examples and codes for reference and i have not even found one good reference link.
Thank you.

Related

Coders new to WM5 "help" (advice)

Hi,
I have a fair background in various coding languages, and there are a couple of programs I want to try and build.
However, while I can usually pick up and understand a language quite easily the problem I usually find is a lack of knowledge of the objects available to make life easier and the functions which are available.
So far, I've sat around and got a setup which I think should allow me to write and compile WM5 applications and today plugins, but I have suddenly found I am missing that "thing" that made writing in other languages easier - effectively a "Cheat Sheet".
What I would appreciate from the other coders with experience in writing software for WM5 is a list of what windows or books you have open for reference when coding. Is it just MSDN, is there a specific page that you have bookmarked or do you just google for it every time?
Any further advice (like good compilers I might have missed) will also be greatly appreciated.
Thanks in advance.
I'd like to hear from others too about this..
So far, My buddies for development help have been:
1. Search in MSDN
2. Search in Google
3. Ask on xda-developers
4. Search in MSDN forums and usenet groups for pocket pc developers
5. A book (that i dont refer to too often) whose name goes smthing like "Programming for Microsoft Windows CE .net" by Douglas Boling (Its not for .net development, it covers native development mostly. Windows CE .Net refers to a version of CE)
6. I also have another book that i have not even opened till now. It is solely for .net development (which is not my forte). Its by Wrox Publishers. If I remember the name correctly, it goes smthing like "Professional Microsoft Smartphone Programming"
There is an exellent documentation on .NET & Native Code on MSDN.
Then there are samples as well, again on MSDN.
For a today plugin, there is a very good sample by levenum which u can easily find in this section of the forum.
For me its always been google & this forum, no boooooks !!!
or
www.codeguru.com
in most cases programming for pocketpc's is like programming for pc's
Thanks for the replies guys. I see what you mean, MSDN is rather good. I was beginning to think it was just WM6, but I eventually found the section on WM5 (which I am planning on coding for given my phone is WM5). Their Wiki also had some good info on it too. Don't know whether these will be my coding buddies yet though....
shantzg001 said:
I'd like to hear from others too about this..
Click to expand...
Click to collapse
I'm glad someone else is interested. TBH I am surprised there is not a sticky at the top of the forum with this information in or a link to the Wiki for further details, but I could only find details of Development Tools on the wiki.
shaileshashar said:
For a today plugin, there is a very good sample by levenum which u can easily find in this section of the forum.
Click to expand...
Click to collapse
Thanks for this pointer. I found two (here and here) which look promising. Don't know if there are any I missed....
Just a small tip when searching in MSDN... add ce in the search pharse. For e.g., "ce WM_TIMER" will give you the CE related sessions at the top.
I like www.pocketpcdn.com - articles and code examples for Pocket PC and Smartphones arranged by categories.
Also www.codeproject.com has been helpfull at times.

HTTP Server on WM6

Hi Guys!
I'd like to create a webserver on wm6 so I can contact to Localhost (127.0.0.1) to retrieve Phone info.
Purpose is a Flash app which uses GPS and Camera (Those or not accessable with actionscript)
I want the server to put GPS and Camera information on the localhost.
I know Freestyl (aka WhoNeedsAnIphone) uses a http server to pass some device variables to their flash app. But the project stopt and no code was released.
For Nokia Phone there's a Tool called KuneriLite to acces phone info with Flash.
I Also found Depeche But I don't really understand it....
Any Help/Code/App is welcome.
Jeff
Hi, take a look here: http://goahead.com/products/webserver/download.aspx
I played around with it some time ago.
It has a lot of features like cgi and so on.
Nice Solution....
It Works but im more into C# then C++..
Is there a C# solution for this?
All help is welcome
Depending on how many of the HTTP verbs you really need to support (ie, do you just want to respond to a HTTP get for a certain url?) you could knock up a simple HTTP server in C# in an hour or two tops.
There's tonnes of examples of simple HTTP servers in C# on the web...
Sounds good,
But i'm only able to find C# webservers for PC, not for windows mobile...
The only thing the server has to do is respond from the code, so i dont have to load actual ASP/HTML pages...
Just a listener on Localhost, if i request localhost/req?GetVar=Cam
I can do something like WriteRespone("Cam=" + SomeSysVar)
Here you go
Attached is a C# simple http server application that I knocked up based on the MSDN sample at http://msdn.microsoft.com/en-us/library/bb397809.aspx.
I've not tested it on a phone.
The sample is for the compact framework.
Should work without any hassle.
Complete source included and the simplest parsing possible (currently responds to a http GET request for / with a chunk of HTML with "1" as the body).
Good luck, have fun.
(Oh and I just noticed there's a confusingly commented out line that says "write response" in the source, remove / ignore it.)
You can test the windows app from a web browser by pointing at http://localhost:83
edit:
apologies, i meant to close another thread.
Thnx Alot
Found this solution: http://bansky.net/blog/2007/10/compact-web-server-in-compact-framework/
It Worked for me ;-)
That looks like a good general purpose solution
My example is tailored towards specific custom processing over HTTP rather than serving of files -> in the style of a RESTful API.
From the look of it you can do a similar thing with the Compact Web server by hooking up what the author labels a "Special file type" and adding your custom handling code in there.
[edit]
That said, you could actually edit my example to File.Open whatever was passed as a parameter off the disk and stream that back to the client, providing a more standard HTTP server without configuration.
Nice simple solution u've got!
I will try to get it to work the way i want,
lookin' @ the amount of code it should be a lot faster then my previous solution.
Just noticed a very small bug. I'm refactoring the code to be a little better engineered. I'll upload a new sample shortly (you may have already managed to make use of it).
Right, I've re-engineered the code a little.
While the example now isn't contained in a single file, the source is now far more logical, readable and maintainable.
You'll notice the code that actually deals with the request is now hidden away in the HttpVerbs namespace.
Basically if you look at the file HttpGet.cs there's a good working example of how to implement whatever behaviour you like based off of a HTTP Get request to the server.
Code's pretty decent now, slightly more ready for prime time than previously, generally more type-safe and doesn't rely on string parsing all over the place.
Enjoy.
Binary?
Can you please put here binary (exe file) for Windows Mobile 6.1?
Thanks

[APP] Barcode Scanning Application

Hello all,
I was hoping you could take a moment and provide some feedback on a software project that myself and a group of others created for a business module we are taking.
The idea is a simple (and certainly not unique!!) one.
1. Take Picture of Barcode
2. Decode
3. Get Amazon results for that barcode
The software (attached) has been thrown together just to demo the concept. It uses a web service to do the decoding which makes it pretty slow, it is not production quality software, it is just for testing the concept.
If you have a second and give it a go, please take a second and answer the following:
1. Did it work?
2. Would you use it? (If not, why not)
If you don't feel like downloading it, it would be great if you could take a second and reply saying why you don't want to, e.g. "I just don't think I would find it useful.."
Thanks,
Scott
P.S. Sorry if this is not the correct place on the foum to post this, but it seemed the most appropriate.
P.P.S. I tired to attach the source to this as I am not sure how to create a cab and so this might not run correctly on peoples phones that have not run .NET apps before, but the attach page kept timing out...
Great stuff!!!
I have not downloaded the app.
Here's why:
There are other FREE barcaode apps out there that do the same but query more than one system.
Suggestion
Expand your query to other database
Market your product by telling what's different from the others
Will try this...I'll give some feedbacks after few days...cheers
Definetly going to try this out. Thanks for posting, and ill report back also, after some testing. Thanks again.
dschoenike
Cheers for the feedback. Just a word of warning, this is a really really REALLY rough prototype.
@tricsio: Thanks for the feedback, this is exactly the sort of feedback we were looking. Our plans to expand this are:
1. Do image recognition on the device to remove need for sending big files
2. Instead of querying amazon directly with barcode as we do now, send it through an intermediate webservice that we control, which will search multiple sites and return this list back to the device.
3. We also considered things like integrating it with our University's library system to check if a book is available, on loan, the shelfmark etc.
@admins that may read this, I didn't notice the sticky before posting, I am going to read it now and edt the post if it violates any of the rules, sorry about that.

Advice on what to research and study to make app that connects to web services

Hello! overflowers? I'm a beginner android developer and I have developed several apps that use the "basics" of android and java (for college requirements)
Now, I need to develop a new project that consists of making a web app which stores the records of all students from my college and the students will be able to check their records and other information from the college from their android phones.
I have done a lot of stuff with Android but I haven't done anything incluiding web queries, pulling info from a website to display into the device, etc etc.
So I want some advice here and/or tutorials that focus on this.
also, I have some important questions: 1. Can I pull information from the actual website from my college? If so, do I need to recieve some sort of permissions?
2. In case of not being able to pull information from the actual website from my college (for any reason whatsoever, like them not giving me permissions to do this), I could create a website that imitates its behavior, I would appreciate some tutorial or guide which could help me to achieve this.
Your help is very appreciated.
Btw, excuse if I'm breaking a rule here but something is not making sense to me.. the forum title says Q&A but when I mark this as a question it says this is not Q&A. I am aware this might be moved somewhere else but I dont know where.
Granolaa said:
Hello! overflowers? I'm a beginner android developer and I have developed several apps that use the "basics" of android and java (for college requirements)
Now, I need to develop a new project that consists of making a web app which stores the records of all students from my college and the students will be able to check their records and other information from the college from their android phones.
I have done a lot of stuff with Android but I haven't done anything incluiding web queries, pulling info from a website to display into the device, etc etc.
So I want some advice here and/or tutorials that focus on this.
also, I have some important questions: 1. Can I pull information from the actual website from my college? If so, do I need to recieve some sort of permissions?
2. In case of not being able to pull information from the actual website from my college (for any reason whatsoever, like them not giving me permissions to do this), I could create a website that imitates its behavior, I would appreciate some tutorial or guide which could help me to achieve this.
Your help is very appreciated.
Btw, excuse if I'm breaking a rule here but something is not making sense to me.. the forum title says Q&A but when I mark this as a question it says this is not Q&A. I am aware this might be moved somewhere else but I dont know where.
Click to expand...
Click to collapse
I would look into hosting an sqlite3 database on a server, and access it to retrieve the data from within your app.
But the problem is, by default you cannot access an online database on Android, so you'll need to add some kind of RESTful interface, the easiest way probably being a php script which will retrieve the data from the database and return it into a JSON object for example, that you can then pull from within your app.
You'll need to expose some kind of syntax from your php script so that your app can request the data for a specific user (ie row X / column Y).
There's probably a better approach, but this is what comes to my mind.

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