[Library] CompareString - IDEs, Libraries, & Programming Tools

This is a simple and useful library to compare Strings on any android version.
Github: https://github.com/Andre1299/CompareString

String is a commonly used class for java, obviously all Android versions will support it, does not make sense.

can you focus your attention on something different?
Sent from my M-PPxG501

Related

What is possible and what is not, Andorid model vs IPhone model

Dear members of the forum,
I've been trying to decide which path to take to get started with mobile development on modern devices. I've done some windows mobile development and quite a lot j2me development in the past, and I am very keen to explore these modern platforms.
However, I'm trying to understand the opportunities in Android platform and IPhone, and I need your help to complete some of the missing bits.
Android does not seem allow native code access to hardware for obvious reasons. It appears you can write native libraries, but they can't access hardware either.
IPhone on the other hand, seems to offer compiled code access to hardware, making it easier to port things like vlc player.
On the other hand, Android gives you the OS source code, and you can add custom modules to kernel. I've never been deep into kernel hacking, other than applying a few patches every now and then.
Do you think it would be possible to exploit the open source nature of Android, to have compiled code access to hardware? I was thinking about developing software at the kernel level, using low level access, and then exposing a certain amount of control to UI layer.
Do you think this approach as a possible alternative to native access to device hardware (apis), as in IPhone and windows mobile?
I am not worried about deploying my code to other phones, these will be projects for personal purposes only, but I would like to know if I can find a way of squeezing performance of the say, HTC Hero to the max by using native code, rather than Java.
For a more solid example, how would you go ahead if you were to start a project for porting VLC Player to HTC hero? Would you say this is not possible?
Kind regards
Seref
Some peoples compiled mplayer for android probably helpful for your decision
http://forum.xda-developers.com/showthread.php?t=575500&highlight=mplayer

programming ON device

Hi,
i wonder if it's possible to code right ON an android device, such as the upcomming tablets?
plz correct me if i'm wrong, but i'm dreaming of coding and compiling direct on the tablet. (on my old wm6 device i did so by using basic4ppc, but it would be great to do so without using fring.)
Is this realistic or am i simply dreaming?
thanks for any reply to my silly noob question
your's
pedro
P.S.: by the way,do you gurus think there will be things like video-editing (similar functionality to pinnacle studio/vegas) and vst support for android?
No reply at all??
PLZ boys....can JDK and eclipse be run on an android device????
The only thing I'm aware of at the moment is the project (formerly) known as "Android Scripting Environment"
http://code.google.com/p/android-scripting
Among other things, it gives you Perl
Sent from my SPH-D700 using XDA App
Well, Eclipse is a Java application, so in theory it should be port-able onto an Android device. However, I imagine there would be so many things to fix/work-around that it just wouldn't be worth it. For example, I don't think Android has the Swing/AWT components, which Eclipse probably uses, so you'd have to rewrite all the UI display classes to use the Android libraries.
Much more realistic would be simply a syntax-highlighting text editor, which would let you write (but not compile, of course) on the go. I looked around for one of those a while ago but couldn't find one. I started writing one, but then decided that my urge to program on my phone wasn't strong enough for the amount of effort it would take to write such a program...
NEWS
i've read today good news..... basic4android (basic4ppc) announced a basic4android version (early beta) and "maybe" an on-device-programming version
infantilo said:
i've read today good news..... basic4android (basic4ppc) announced a basic4android version (early beta) and "maybe" an on-device-programming version
Click to expand...
Click to collapse
Hello,
it will probably be no version to program with B4A on the device. The IDE runs in conjunction with windows. Net.
Cu
Amalkotey
Basic4Android-Betatester
Steven__ said:
Well, Eclipse is a Java application, so in theory it should be port-able onto an Android device. However, I imagine there would be so many things to fix/work-around that it just wouldn't be worth it. For example, I don't think Android has the Swing/AWT components, which Eclipse probably uses, so you'd have to rewrite all the UI display classes to use the Android libraries.
Click to expand...
Click to collapse
These issues are not the only issue i see...
What about javacc wouldn't this need to be ported as a java application as well?
Which i dont see how you can develop a java compiler in java if you can i'll be amazed.
we'd have to wait for the native library imports to do that from my current knowledge
Please someone correct me if im wrong
I know this thread is old, but if anyone come across this thread search for Aide in the play store.
i think AIDE is the best way to coding ON the tablet/phone!
Try AIDE It's free on Google Play.
AIDE is a good choose if you can buy premium key. I personally did and I'm satisfied. I use aide when I'm away of my PC and get an idea
Free version allows only projects with 5 or less java files. Excluding R.java and BuildConfig.java that's 3. I doubt that anyone can write anything serious with 3 java files.
Sent from my Evo 3D GSM using Tapatalk 2
pedja1 said:
AIDE is a good choose if you can buy premium key. I personally did and I'm satisfied. I use aide when I'm away of my PC and get an idea
Free version allows only projects with 5 or less java files. Excluding R.java and BuildConfig.java that's 3. I doubt that anyone can write anything serious with 3 java files.
Sent from my Evo 3D GSM using Tapatalk 2
Click to expand...
Click to collapse
+1 for AIDE you can't go wrong with premium especially if your projects are big (lots of files)
AIDE also supports ssh git and dropbox sync last I checked. It also features an auto complete kinda like in eclipse.
Although I always begin my projects on a computer especially for the ui design (I'm a noob this way)
as for C there is C4droid although I'm not sure if its possible to link it with android java code.
But c4droid beats having to set up the proper toolchains if your creating a pure native application.
Sybregunne said:
+1 for AIDE you can't go wrong with premium especially if your projects are big (lots of files)
AIDE also supports ssh git and dropbox sync last I checked. It also features an auto complete kinda like in eclipse.
Although I always begin my projects on a computer especially for the ui design (I'm a noob this way)
as for C there is C4droid although I'm not sure if its possible to link it with android java code.
But c4droid beats having to set up the proper toolchains if your creating a pure native application.
Click to expand...
Click to collapse
+1 for AIDE
I has AIDE+PasGUI+C4Droid on my device and I quite satisfied with it, though it's difficult to manage with interface
DoR2 said:
+1 for AIDE
I has AIDE+PasGUI+C4Droid on my device and I quite satisfied with it, though it's difficult to manage with interface
Click to expand...
Click to collapse
pasGUI - will try that now. Thanks

[Q] Do phone manufacturers use proprietary Android operating systems?

I'm looking at the decompiled source for Phone.apk from my HTC Incredible(2.2) and I notice that the number and contents of the files don't match that of the decompiled source of the Phone.apk I built from the Android open-source project(I made no changes to the source). For example, here's a list of subclasses found in the PhoneApp class from the Phone apk on my Incredible:
PhoneApp.RadioThread
PhoneApp.ContactInfo
PhoneApp.QueryHandler
PhoneApp.CbQueryHandler
PhoneApp.MediaButtonBroadcastReceiver
PhoneApp.PhoneAppBroadcastReceiver
PhoneApp.TimerCallback
PhoneApp.WakeState
PhoneApp.ScreenTimeoutDuration
But the list of subclasses found in the PhoneApp class from the Phone apk I built myself is much shorter:
PhoneApp.MediaButtonBroadcastReceiver
PhoneApp.PhoneAppBroadcastReceiver
PhoneApp.WakeState
PhoneApp.ScreenTimeoutDuration
I'd assumed that all Android OS-based phones used the same code - is that not the case?
AFAIK, no they don't use propietary operating systems. But yes, each manudacturer builds their own apks just like each manufacturer has its own launcher.
Heck, the Chinese decided to use Android to make Ophone OS... Apparently they don't like the Android name. :-D
kschang said:
Heck, the Chinese decided to use Android to make Ophone OS... Apparently they don't like the Android name. :-D
Click to expand...
Click to collapse
Actually, they wanted to avoid licensing GApps support
The Android system itself is open source so it can't be made "proprietary" per se, but different manufacturers make different proprietary customizations to the different elements in the ROM they build.
Just to comment on the license angle:
The Linux kernel that Android uses is licensed under the GPL this means that anyone shipping a binary must provide the source. This allows you to produce an AOSP (Android Open Source Project) build for your device.
The AOSP itself uses the Apache license, meaning that source does _not_ need to be provided when selling a modified version.
Upshot is: its easy to get AOSP compiling on commercial devices. But you'll (almost) never get Android framework modification released as source.
The best working example of that would have to be HTC Sense. Its inner most workings are inserted into the Android library source itself. Good luck getting HTC to release the source of that puppy, or the mods they made to AOSP source to get it working.

Announcing open source pressureNET SDK

Hello everyone,
pressureNET is our open source Android app for live atmosphere data collection using sensors in phones. We just released version 4.0, which includes a new MIT-licensed SDK that makes it simple to incorporate our science data collection and reporting code into your apps. Additionally, it provides a simple Android wrapper for our HTTPS API that supplies researchers and the public with (currently) 300,000 daily measurements of the atmosphere.
Our aim is to dramatically improve weather forecasting by collecting new, unprecedented levels of live data.
App download: https://play.google.com/store/apps/details?id=ca.cumulonimbus.barometernetwork
SDK source code: https://github.com/Cbsoftware/pressureNET-SDK
App source code: https://github.com/Cbsoftware/pressureNET
If you're interested in using our SDK inside your project, let me know! I'd love to help get it set up. You can email me at [email protected]
Thanks!

[Tool] Which IDE do you prefer? Eclipse, Android Studio or something else?

Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Android Studio is "The Way Forward" but still has lots of problems, and runs slow for me.
I'm just trying Studio now with a new app I'm working on. NDK integration isn't good (but better than 2013).
I don't even use Eclipse anymore, just ant etc scripts on command line and default linux GUI editor (Pluma) for editing.
But I'm trying to learn Studio because I think Google will let Eclipse support rot once Studio is officially supported. AND I'm trying to find ways to make myself more efficient. I haven't used IDEs in over 25 years (Turbo C), LOL, but it was fun back then...
Here again, Google is moving from open source stuff (Eclipse) to proprietary Android specially designed and built stuff (Studio). That has good and bad, and I'll just "go with the flow"...
mikereidis said:
Android Studio is "The Way Forward" but still has lots of problems, and runs slow for me.
I'm just trying Studio now with a new app I'm working on. NDK integration isn't good (but better than 2013).
I don't even use Eclipse anymore, just ant etc scripts on command line and default linux GUI editor (Pluma) for editing.
But I'm trying to learn Studio because I think Google will let Eclipse support rot once Studio is officially supported. AND I'm trying to find ways to make myself more efficient. I haven't used IDEs in over 25 years (Turbo C), LOL, but it was fun back then...
Here again, Google is moving from open source stuff (Eclipse) to proprietary Android specially designed and built stuff (Studio). That has good and bad, and I'll just "go with the flow"...
Click to expand...
Click to collapse
Eclipse is the best right now.
Google Studio may be in the future.
I really hope Google starts stepping up and helping developers out. Xcode for iOS is really nice to work with when devloping for iOS. It would be nice if Google put that same effort into helping devs build for Android.
jbutewicz said:
I really hope Google starts stepping up and helping developers out. Xcode for iOS is really nice to work with when devloping for iOS. It would be nice if Google put that same effort into helping devs build for Android.
Click to expand...
Click to collapse
Why would they change to being more dev friendly ?
Why would they spend more money on "expenses" when Android is #1 in terms of penetration ?
I'd be happy to see it, but I don't see them changing, and I highly suspect their team of bean counter accountants continue to conclude their profits are best when their development teams are small.
I've been researching/learning everything I can about audio on Android. It's a big mess, though it works, more or less, as in "good enough". But high performance, low latency audio such as IOS has is extremely difficult, hardware/OEM HAL/kernel driver dependent, and effectively impossible to do without at least occasional glitches on many leading devices.
These audio issues have existed for years, along with MANY others. The Android issue tracker is full of such issues. Some improvements have been made, but it's never enough.
Low level stuff like audio is where Android really falls down. The Google perspective seems to be the user perspective, which is closer to higher level Java stuff and farther away from the nuts and bolts of kernels, HALs, C and assembly language. Most of this is left to the OEMs to figure out and many take major shortcuts to reduce time to market.
andreait15 said:
Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Click to expand...
Click to collapse
I'm also interested in what folks are using. I whipped up a poll this morning and posted it on Reddit/r/Android but this seems much more appropriate.
Here is the Poll
And the results so far Results
matt68000 said:
I'm also interested in what folks are using. I whipped up a poll this morning and posted it on Reddit/r/Android but this seems much more appropriate.
Here is the Poll
And the results so far Results
Click to expand...
Click to collapse
wow, these results make me only more confused.
Right now I'm using Android Studio too, and in some ways is better, especially the design views on the right side of the code, but adding libraries was a slowly death inside!!!
IntelliJ is the best. After I first-time used it, I would never switch back to eclipse.
Eclipse as an IDE, Unity3D as an engine.
esoloyu nefs
As along time eclipse user (more then 10 years) I tried out intellij a few month ago and I will never go back. IntellliJ is just the better ide
Well and now since I am using gradle I switched to android studio. Its like intelliJ with more android power
matt68000 said:
I'm also interested in what folks are using. I whipped up a poll this morning and posted it on Reddit/r/Android but this seems much more appropriate.
Here is the Poll
And the results so far
Click to expand...
Click to collapse
Great idea! As of now, it looks like the distribution of Android Studio and Eclipse w/ ADT goes head-by-head.
As for me, I prefer Android Studio. The layout previews and the built-in gradle support are the most important advantages for me. And of course the Darcula theme is also a huge plus
Still sticking with Eclipse. Android Studio has more fancy features, but we're hand coding all the XML's or dynamically creating views anyway, so while a better UI editor works for smaller apps, it's not much help for a complex one.
That and redeploying / releasing is easier (for me anyway) with Eclipse, I've heard too many issues with Gradle to make the switch yet with commercial apps. People still complain about compile time, but with DexGuard packing stuff, it's < 10s between clicking "Run" and having it on the phone, not bad for an 6MB .apk full of code.
andreait15 said:
Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Click to expand...
Click to collapse
Hi , I have been using eclipse IDE for long time.It is great software to do android development.But they say that Android Studio is more context aware that eclipse and you have to write very less code.Through predictions it guesses what you want to do.So I have decided to give it try and Will be posting my finding here.
Yes this is sure that Android studio is still buggy as my team mates using this software often say that.
Let me check and I will get back.
Any one else if find major differences b/w two please explain pros/cons here.
Thanks,
Eclipse
andreait15 said:
Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Click to expand...
Click to collapse
Go With eclipse
Eclipse is stable and you will find lot of android video tutorials based on eclipse
Android Studio is still not fully stable ...
aditya.kamble said:
Go With eclipse
Eclipse is stable and you will find lot of android video tutorials based on eclipse
Android Studio is still not fully stable ...
Click to expand...
Click to collapse
Have you got examples of when Android Studio has not been stable?
Just because its still in "alpha" stage doesn't mean its not stable... I've never had any issues with it since switching from eclipse. Remember its based off IntelliJ which is stable.
It is stable enough to develop apps. But we should used to that sometimes studio freeze when we plug second device, or when we trying to do something sophisticated with Gradle. Recording video sometimes generate broken mp4 file.
Another thing is Gradle, which is great tool to simplify building app. Flavors and build types wasn't so easy never before.
Now with 0.5.8 version is almost complete code completion for Gradle files. In upcoming releases we will get proguard completion.
There is several crashes here and there, but it cannot be compared to eclipse. Not the same league.
Big problem is lacking support for native code so you do develop mostly on Visual Studio.
If spending couple minutes from time to time with IDE itself doesn't scare you much, the choice is simple.
Sent from my Nexus 4 using XDA Free mobile app
Hi,
Continuing with my previous post ,
I started using android studio a week ago and following are my findings till now.
Android studio is excellent tool for android I guess because it has so many shortcuts or features etc.Sure it has some learning involved because of gradle.But once you pass basics of setting up project using gradle it is most excellent tool.Following are features
1).It will auto import classes when you write code.
2).It is truely context aware tool becuase It will present you with options relevant to piece of code(function, expression,class etc) you are writing when alt+enter is pressed.Consider alt+enter as right click.eg.If you have written any regular expression in your code then it will automatically identify it as regular expression and present you with dialog to test you regular expression there only.Same goes with SQL,HTML,XML etc it presents option with these only.Means you do not have to tell ide that I have written some regular expression please evaluate.It knows what you want.
3).You can search file using ctrl+N by specifying name of file.You can also specify filename:<line> in search box it will go to that file and to that line.
4).Another cool feature is gui editor.When writing any layout then it shows preview side by side, so you dont have to switch.Cool thing is that you can preview multiple devices at the same time.And device skin is of real device.How cool is that.
5).Now coolest feature is that you can set up multiple versions of project at the same time using build flavours using gradle.It is coolest.Just learn this you will love it.
6).No need to install ADT separately and update it separately.Studio comes with everything preloaded , and if any update comes then it is update for Android studio.
7).Real trick of using Android studio is to learn as many shortcuts as possible , Under Help in android studio there is keymapping , it contains complete list of shorcuts.
8).Code navigation is awesome in android studio.
9).It is stable.
Now I am not saying eclipse is not good IDE, but simply android studio is better than it in every aspect.
I feel that if you are new to learning android then please start using Android Studio instead of eclipse.
Please follow this channel for video tutorials on Android Studio : https://www.youtube.com/channel/UC5fT02o8H1NnGfX7j1CmP6Q
Thanks,Hit thanks if it helped.:good:
I used Eclipse for about 1.5 year. I know almost evry bug there, so after that development was pretty starightforward. Recently, I had to use AS, because of commercial project. It looks great, it's fast and I love it. If you are starting, choose AS.
I got Studio working, but it's still all new to me (so much more in an APK, it seems).
I do like it though, it brings a fresh new UI to the table. Need to figure out how to import libraries in it, though...
bassie1995 said:
I got Studio working, but it's still all new to me (so much more in an APK, it seems).
I do like it though, it brings a fresh new UI to the table. Need to figure out how to import libraries in it, though...
Click to expand...
Click to collapse
New Module > Import JAR or AAR or Import Existing Project
For libraries that are in the maven repository you can simply add the project to the build.gradle file, for example add the following to import the Google Play Services library:
Code:
compile 'com.google.android.gms:play-services:+'
Jonny said:
New Module > Import JAR or AAR or Import Existing Project
For libraries that are in the maven repository you can simply add the project to the build.gradle file, for example add the following to import the Google Play Services library:
Code:
compile 'com.google.android.gms:play-services:+'
Click to expand...
Click to collapse
Ah cool, I'll try. Thanks!
Sent from my HTC One_M8 using Tapatalk

Categories

Resources