Related
Hi,
I am trying to write a small application for my WM6 phone device.
What I intend to do is :
- write the application in c#
- it will be a background application (daemon)
- starting to blink leds of my phone (I have a dll which I know how to call from within a C# app)
- stopping this process when the call is answered or the ringing state is passed
- no forms will be used (as it will be a background application which will only play with leds)
- when the exe is called a second time , it should disable itself
Unfortunately, I could not succeed a few months ago as seen here :
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2454023&SiteID=1
Then , I had some other issues to deal with and left the project. Now I want to start over, fresh...
However, I am not sure of what is the most acceptable solution for this.
As I do not want to load the CPU or memory with unneccessary processes, I want to be able to do it correctly.
Could someone show me the path ?
Please take a look at the thread that I gave the URL above. At that time we discussed this but I couldn't achieve it.
Thanks for any help, comments...
SystemState class seems to only work if you have a form based application. Which is silly I know. Basically the only solution is do dump the daemon idea and have a form based app but hide the form.
thanks for your reply.
what do you mean by "dump the daemon idea" ? do you mean I shouldn't use it ?
if I create a form based app and hide the form, which method should I use to start the process when phone starts ringing ?
p.s : english is not my native language so I may misunderstand some phrases.
yes he means forget the daemon..and i recommend using C++ as it uses less system resources plus its fast .. im currently developing my first Kitchen in C++ if u want i can work with you also
I agree with you; of course c++ is faster but it's not as easy as c#.
what do you mean by kitchen ?
I would like to work with you but my intention is just creating a simple application. This is not my job, you see ?
A kitchen is a place where you can cook your OWN ROM for your Windows Mobile Device..currently its for Himalaya Only ..check it out here
http://forum.xda-developers.com/showthread.php?t=378498
for me its not a JOB also its just my hobby ..im also a student in 12th grade
thanks for your kind offer. however, I wouldn't like to take your time for my very simple application
If you tell me the correct and easiest method to invoke my application and start its process, I can write the application. I'd just consult you if I'm stuck.
If you are also interested in this app. I can always send you the source code.
sure sure..send me the source....i am not doing much at the moment any way..except for re-writing the tools in C++..i have another useful suggestion..u can use MortScript to this but then it will be different
if you pm me your email address , I can send you the current source code.
But I am not sure if what I wrote is the best way of doing it.
by "best" I mean least cpu power used.
ather90,
did you receive my email ?
yeah i got the source..but there is a problem..you have built this on WM6 Pro SDK..not on WM5..i dnt have WM6 SDK..so i couldnt work yet..but will download it today..its better if you can switch it to WM5 SDK ( it will be same for WM6/6.1 i guess).
I don't know how to convert it to WM5 SDK.
If you tell me I can switch...
NO probs..the SDK is almost downloaded..i figured i might as well download the SDK caz i will need later
ok; waiting for your update...
any updates ?
So I have an application ready, but its written all in JAVA. I have the avd and sdk and eclipse all configured, but how would I change stuff like mouseListener into "touchListener". If you guys dont know what im talking about PM me xD?
siddysidsid said:
So I have an application ready, but its written all in JAVA. I have the avd and sdk and eclipse all configured, but how would I change stuff like mouseListener into "touchListener". If you guys dont know what im talking about PM me xD?
Click to expand...
Click to collapse
I dont have the answer you want, but you could always use the android java app. You can find it on google, it works with some java apps, cant guarantee it will support yours.
Unfortunately I do not think it is possible to turn a Java-based applications into Android without rewriting it. Even though the programming language is the same, the UI components of Android are different that standard Java.
It for sure is not possible to port it to Android without rewriting parts of it.
All UI stuff definitely needs to be adapted and/or rewritten. Also dependent on your application you have might have to optimize parts of it to work well with Android due to lower hardware specifications and so on.
Ahh well thats unfortunate. I was hoping for some kind of program that woudl do this for me.
Duplicate, thread closed.
http://forum.xda-developers.com/showthread.php?t=897686
Hello Friends,
I have a question for all of the mobile developers. You might think I'm Joking. But its Serious. Is there any way to run android apps(2.1-2.3) in HTC HD2(Leo) which is running Windows Mobile? Many People Say 'NO'. But emulation of any OS is possible. We all thought that we can run PS2 games only on Sony Playstation 2 but we were proved wrong by PCSX2 by launching first PS2 Emulator. So I want to know is there any emulator by which I can run android apps on my HTC HD2? Its difficult but I think XDA Developers can make this type of emulators. It will also help thousands of people. I am an IT Professional and a software developer(Windows) but i don't know about developing apps for mobile. Otherwise would have made/wrote android apps in WM language/scripts. Some News also came that there are certain Converters which can convert Android Apps into J2ME or WM apps. I need a solution to this problem.
Regards,
Arun
Themegastar1 CEO
I believe there was originally an Android emulator running on WM, but it was slooooooooow!!! There's a whole slew of reasons as to why an Android emulator won't run well on WM, memory being the obvious main one. That's why Android ports were developed to run off the SD card, first dumping Windows from the memory and then running Linux.
Depending on your development experience, you may want to look into programming for Android anyway, if that's where your interest lies. If you've done anything like C# (or other .Net based language like VB.Net) then it's not that big a leap. If you've already done Java development then it's really not a problem - you just need to learn the Android SDK.
If you are intersted, have a look at the following tutorial...
http://www.vogella.de/articles/Android/article.html
It's a great starting point for Android development. It walks you through setting up the dev environment and then a few simple apps to get you going. Any OO experience you have will definitely help. (It may actually prove difficult without it - I can't say for sure.)
Hope this helps
themegastar1 said:
Hello Friends,
I have a question for all of the mobile developers. You might think I'm Joking. But its Serious. Is there any way to run android apps(2.1-2.3) in HTC HD2(Leo) which is running Windows Mobile? Many People Say 'NO'. But emulation of any OS is possible. We all thought that we can run PS2 games only on Sony Playstation 2 but we were proved wrong by PCSX2 by launching first PS2 Emulator. So I want to know is there any emulator by which I can run android apps on my HTC HD2? Its difficult but I think XDA Developers can make this type of emulators. It will also help thousands of people. I am an IT Professional and a software developer(Windows) but i don't know about developing apps for mobile. Otherwise would have made/wrote android apps in WM language/scripts. Some News also came that there are certain Converters which can convert Android Apps into J2ME or WM apps. I need a solution to this problem.
Regards,
Arun
Themegastar1 CEO
Click to expand...
Click to collapse
I just did a search on your question. And from all the sites i've seen they all come up with the same answer: "no"
The two systems are too far apart from each other to be able to 'port' or emulate it apparently.
At least, this is what i found. Maybe some others might have more luck.
Problem still Not Resolved.
I read both of Your Comments, but still problem is not resolved. johncmolyneux you have told me that there is an emulator(Slow ones), can u tell me the name of that emulator? And I don't want to install android. I have given thanks to you both, but still My problem is not resolved. I need a way to run android apps on wm 6.5.
themegastar1 said:
I read both of Your Comments, but still problem is not resolved. johncmolyneux you have told me that there is an emulator(Slow ones), can u tell me the name of that emulator? And I don't want to install android. I have given thanks to you both, but still My problem is not resolved. I need a way to run android apps on wm 6.5.
Click to expand...
Click to collapse
It was about 8-9 months ago so no, I'm afraid don't know the name, but it was on xda so you can search the forum for it.
Let me put it clearly though. The emulator was so slow that it was immediately dropped and no-one ever used it. It's basically Windows, running a Linux emulator, running Android. It was terrible and unusable.
Why is it imperative that you run Android apps on WM? If you explain then maybe we can understand more and hopefully offer more constructive help.
Why I want to run Android Apps on WM.
The Reason for this is- I need Google Goggles for my HD2 and some other apps too. But Windows Mobile Technology is Better, Easy to Use and Expensive. And HTC offers HTC Sense along with HD2 which makes it more easy to use and attractive too. These all things are not possible by using Android. But Android has a big App Marketplace. This is the reason why I want to run android apps in WM.
Okay, I'll make it very clear then. You will not get this. The only solutions available are to find a version of google goggles on WM (not likely), or to run Android on your phone.
You can run it from the SD card, but it does mean a restart every time you want to switch from WM to Android and then back again.
Also, there are many Android builds available that include HTC Sense. There's some very nice Desire HD builds out there.
Sorry to give bad news, but you are not going to get what you're asking for.
OK! Necessity leads to invention!
Ya, but still, IF I make something then the problem will be resolved. I'm thinking to make Android Emulator in this Summer(May-June 2011). If I made it, then it will be good for all WM users, so nobody will switch to Android to get all apps. Anyway, johncmolyneux thanks for your efforts. By the way, Which Phone you are using. And with which OS(WM/Android/Bada/Ubuntu/S40/S60/Symbian 3rd Edition or any other) you are using? Necessity leads to invention!
Regards
Arun Wadhwa
Themegastar1 Owner
Please give me THANKS!!!!!
Well good luck with that mate - I think you'll need it
I'm using a Nexus One Gingerbread ROM at the minute. It's fast and stable - everything works just like a native Android device!
You do realize that you can boot into Android from Windows mobile on your hd2. That way you have winmo still on your phone, and when you need to use Android, you can use haret.exe to boot into an Android build running from the SD card. You have to restart the phone to get back into Windows mobile, but that only takes a minute or 2. And it only takes a minute to boot into Android. This way you can run both OS's on your hd2.
Sent from my HTC HD2 using XDA App
themegastar1 said:
Ya, but still, IF I make something then the problem will be resolved. I'm thinking to make Android Emulator in this Summer(May-June 2011). If I made it, then it will be good for all WM users, so nobody will switch to Android to get all apps.
Click to expand...
Click to collapse
Excelent example of high achievment goal.
So what you need?
Remapping all Android API to WM API with necessary additional functionality, so running whole Android emulator will be not necessary. This will save memory and gain some speed.
Similar to already known solutions on Linux platform which can run Windows applications on several platforms like winehq.org.
How much effort will be necessary?
Depends on which applications area that has to be covered.
Depends on knowledges about both operating systems.
Depends on accessibility to source code of the system and the applications which supposed to run with this framework.
Is summer vacations enough?
Future will reveal, but if you really are genius, please turn to good side
So this project will be definitely something which people will pay for, those who has WM favorites programs and are not willing to change the whole system to run some new.
Anyway aplications will be maybe running, but most of them will miss the stability and advantages of the Android operating system.
pedroxxx said:
Excelent example of high achievment goal.
So what you need?
Remapping all Android API to WM API with necessary additional functionality, so running whole Android emulator will be not necessary. This will save memory and gain some speed.
Similar to already known solutions on Linux platform which can run Windows applications on several platforms like winehq.org.
How much effort will be necessary?
Depends on which applications area that has to be covered.
Depends on knowledges about both operating systems.
Depends on accessibility to source code of the system and the applications which supposed to run with this framework.
Is summer vacations enough?
Future will reveal, but if you really are genius, please turn to good side
So this project will be definitely something which people will pay for, those who has WM favorites programs and are not willing to change the whole system to run some new.
Anyway aplications will be maybe running, but most of them will miss the stability and advantages of the Android operating system.
Click to expand...
Click to collapse
I think I got some of the Ideas, I have to Create a platform build on Windows Mobile with the help of WM API, it will require Android SDK too. If I will create an app that has the compatibility of Android, I could name it as Emulator. Means just another platform running on a OS.
i would donate for this...
work hard guys..gudluck!
Hi all,
I want to start application development for android. Can anyone please let me know the requirements for this?
I know that I am asking very general question and please let me know if this is not the correct place to ask this query.
I know C/C++...what things I need to learn before starting application development for android?
Waiting for reply!!
From what I can tell:
Java.
Then hit the android developer's website and they'll teach you how to write for android platform.
Sent from my HTC Vision using XDA App
Thanks skulk, but do I need to start learning Java from scratch for that?
Can anyone please guide me in this?
vijay.gupta said:
Thanks skulk, but do I need to start learning Java from scratch for that?
Can anyone please guide me in this?
Click to expand...
Click to collapse
Well, it's pretty hard to learn a new programming language from the middle!
Go to the Android devs site... There are plenty of tutorials there, as well as links to Eclipse (favoured Android development platform).
sorry to be so naive...but what is the link of android dev website?
Clicky the linky.
many thanks floating man. I didn't knew that this is different forum from any android developer forum...btw can you please let me know the difference between this forum and any android dev forum?
This is a general smartphone forum, mainly catering for HTC made devices, but covering "some" others as well.
Thanks floating man. I will subscribe to any of the android dev forum and ask the same query there. But there is one doubt: whether such a basic (and naive) query be resolved there?
Do you recommend any particular android dev forum?
since you already know c/c++ you already know the basics of programming which are the same for each language i guess.
in my opinion writing basic/simple apps for android is more easy than writing the same app in c/c++.
so for basic/simple apps you could start with some general java tutorials especially about OOP and then go on to Android ...
just simply Google search terms like "android development for beginners" or "android app development tutorial" and plenty of websites come up offering handy dandy hints =]
Thanks elgubbo,
I will try that and let u know if thwre is any issue...let me kbow if anyone else has any suggestions....
For me it always helps to try to understand other code samples. Thats why I am looking for a book wich explains a few basic (and some advanced) code samples.
Sent from my fishbowl...
Java was originally created as a successor to C++ and if you know C++ the syntax of Java should look very familiar. It was designed to make OOP concepts more accessible to C++. It was also set up to make pointers and memory management a thing of the past.
Actually in a lot of ways, knowing C++ will give you an advantage over devs who only know Java. Eventually you'll be able to use Android's NDK (Native Development Kit). Although you will have to use some Java as all apps require the use of some java and the SDK on Android. But even then, you'll have a better idea of what is happening "under the hood" due to your C++ knowledge.
As for where to get started I would suggesst learning applications fundamentals:
http://developer.android.com/guide/topics/fundamentals.html
Especially the Activity lifecycle and Component lifecycles.
Do all the "Hello World!" tutorials and then you should be well on your way to becoming the next Angry Brid..... err Angry Bird dev.
Thanks alostpacket. That is a very useful link. I will read it and let u know if i have any queries. I just have a doubt, moreover, i am fearing because i have only written simple c++ programs till now. Will i be able to do it?
vijay.gupta said:
Thanks alostpacket. That is a very useful link. I will read it and let u know if i have any queries. I just have a doubt, moreover, i am fearing because i have only written simple c++ programs till now. Will i be able to do it?
Click to expand...
Click to collapse
Instead of being scared by it, TRY it! Install Eclipse. Install the Android SDK. Try the tutorials. Only you can know if you can do it or not.
Thanks floating man for supporting me, however, can you please let me know the place to help me out regarding very basic queries regarding starting programming...like I want to know what eclipse is, what is SDK (I know the full form though: Software Development Kit)
Is the place...http://developer.android.com?
Actually, I have worked on C/C++ at very basic level where we write programs in IDE and save the file as either .c or .cpp
These seems to be very basic things.. that i should know..i can read if you have any link or doc..
vijay.gupta said:
Thanks floating man for supporting me, however, can you please let me know the place to help me out regarding very basic queries regarding starting programming...like I want to know what eclipse is, what is SDK (I know the full form though: Software Development Kit)
Is the place...http://developer.android.com?
Actually, I have worked on C/C++ at very basic level where we write programs in IDE and save the file as either .c or .cpp
These seems to be very basic things.. that i should know..i can read if you have any link or doc..
Click to expand...
Click to collapse
Yup, That's the correct site. They have a whole section to get you started using eclipse there too.
This is a great place to start:
http://developer.android.com/sdk/installing.html
I am looking for analysis tools specific for Android app development!
I have found many tools online that are not specific for Android, only for Java, either free or commercial, like the famous FindBugs but it is not interprocedural so for example it loses several bad NullPointerExceptions that may occur at runtime! Other tools (like CheckStyle) perform just a syntax check that sometimes is not so powerful, and other tools are not suitable for Android app development
What are, among the available tools, those that you prefer and really use?
What kind of properties do these tools check?
What kind of bugs do these tools detect and remove (among the most common errors that an Android developer may do)?
Please help me with sharing your experiences and suggestions, thanks!
Nobody uses any tool for detecting bugs?
What kind of bugs are you specifically looking for? Solving NullPointers is hard to do automatically, it'll probably just show you where the error is and what it is.
And the emulator/logcat does that, too...
bassie1995 said:
What kind of bugs are you specifically looking for? Solving NullPointers is hard to do automatically, it'll probably just show you where the error is and what it is.
And the emulator/logcat does that, too...
Click to expand...
Click to collapse
I would like to detect the most common errors that may happen during Android app development, like NullPointerExceptions, ClassCastExceptions, OutOfMemory Errors, and so on... but with tools like FindBugs that don't need to execute the app first.
subtask said:
I would like to detect the most common errors that may happen during Android app development, like NullPointerExceptions, ClassCastExceptions, OutOfMemory Errors, and so on... but with tools like FindBugs that don't need to execute the app first.
Click to expand...
Click to collapse
I don't think that's really possible, it would have to be able to reason about and come up with the behaviour of your code like a human... Computers need to run it. The easiest thing you'll get right now is an explanation of what went wrong where, I think...
bassie1995 said:
I don't think that's really possible, it would have to be able to reason about and come up with the behaviour of your code like a human... Computers need to run it. The easiest thing you'll get right now is an explanation of what went wrong where, I think...
Click to expand...
Click to collapse
If you run FindBugs in your source code, it is able to detect many things, like potential NullPointerExceptions, before running your app...but unfortunately it is not powerful enough to detect interprocedural NullPointerExceptions...that's the reason I am looking for something different...
subtask said:
If you run FindBugs in your source code, it is able to detect many things, like potential NullPointerExceptions, before running your app...but unfortunately it is not powerful enough to detect interprocedural NullPointerExceptions...that's the reason I am looking for something different...
Click to expand...
Click to collapse
Yep, that's what I meant. Anyhow, I don't know about anything like it .
The Android SDK provides some API for automatic testing.
You will need to create a test project which checks the functions you want to achieve.
This can be used to ensure that your app is still working correctly after adding new features.
Hi
"static analysis tools" is probably the term you want to be using when looking for these sort of tools, the wikipedia page give a good selection to be going on with http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
Although I would add that if you're getting a lot of these sort of errors then you probably need to work on your own code writing skills and take the time to understand how and when these sort of issues occur rather than just relying on a plethora of tools which keep you dumb to what's going on! You'll benefit from it in the long run
One thing you might give a try is JetBrains Android Studio. It seems to have a decent static analysis tool which is the same used for ReSharper with Visual Studio.
Try Lint, it comes with ADT,
with Eclipse you can right click your project, ans under android tools you will see something like check lint errors
It will create lots of errors, which are just recomendations, you can simply delete those errors.
Tapatalked... just Tapatalked...
If you're mainly looking for a way to detect NPEs then IntelliJ/Android Studio comes with NPE (and other exceptions) detection. It's based on a new set of annotations implemented in the latest SDK and is very accurate, much better than Eclipse's code analysis.
But honestly, the best tool to find bugs remains Logcat imo, it's verbose enough to find-out the origin of most bugs.