Android :: Suggestions For Phone Project Guidelines

May 19, 2010

Im trying to prepare a set of guidelines and project template for my future Android projects. Im already implementing the basic MVC architecture modularity. Im trying to have add more advanced level of design to my Android projects to make my development easier and maintainable. For example can someone suggest me a way to make Intent calls to Activity without explicitly mentioning the class while creating the Intent. Im trying to loose couple the intent calls and hopefully use AndroidManifest to assign action to an activity which then can be called globally within the application.Any other type of suggestions are welcome. Also please suggest any kind of coding conventions that you might be using yourself.

Android :: Suggestions for Phone Project guidelines


Android : Backup App For Non-rooted Phone / Need Suggestions

Jun 21, 2010

I'm about to receive a replacement DInc in the next day or two and wondered the best way to back it up. I'd use Titanium Backup in an instant due to it's great reviews but it required root and I don't want to root the phone that I'm sending back. Ideally, I'd like an app that can be used with a OEM or rooted phone. What are your favorites? Suggestions?

PS I already have AppBrain to help with that part.

View 3 Replies View Related

Android :: Private Fields Naming Guidelines

Jan 25, 2010

Here http://source.android.com/submit-patches/code-style-guide#shortmethods it is stated that :

"Field Names
* Non-public, non-static field names start with m.
* Static field names start with s.
* Other fields start with a lower case letter.
* Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES.

also states that : "The rules below are not guidelines or recommendations, but strict rules. You may not disregard the rules we list below except as approved on a need-to-use basis." I don't like the "m" convention before private or package fields in a class... I really find this uninspired. I mean, if we try to apply good designs, the low coupling of the classes implies having few public fields. actually, in my programs I usually have no public fields, even when I need some I use getters and seters. so, why should I be forced to have almost all my fields in the program with an "m" in front of them? wouldn't be easier to have the few public fields, if there are any, with some "g" in front or something? or just use setters and geters as beans suggest? this really makes my code harder to read. also, following these guidelines, local temp variables used in the methods have no restriction so they could easily be mistaken for public global fields (also without restriction). this also I find to be wrong, as it is a probable source of mistakes. I understand to have a way of differentiating from fields, but private/protected member fields are the most used in an application, they shouldn't be less "readable". what do you think? should I follow the guidelines?

View 1 Replies View Related

Android : Guidelines For Start Up / Error With WiFi

Aug 22, 2010

Today I got my first android phone. It is the Samsung Galaxy Spica.I don' t know anything about android phones so I need someone to show the first steps and explain to me the specifications of this operating system.I have a problem with my WiFi. The phone finds my network, I give the password but it says "Connection failed". Can anyone help me?

View 7 Replies View Related

Samsung Moment :: Suggestions To Download Applications For Phone

Dec 1, 2009

Just picked up my Christmas gift early. Hubby let me use his upgrade to get a Samsung Moment. I am coming from a BB 8330. Any suggestions on what apps to d/l immediately?

View 8 Replies View Related

Android :: Where Can I Find Information About 2.x Icon Design Guidelines?

Feb 10, 2010

Assuming that old Icon design guidelines are not valid anymore, where can we find information about the guidelines to follow to design "new-styled" 2.X launcher icons?Should applications provide icons for both icon styles if they work for both versions?

View 1 Replies View Related

Android :: Good Guidelines For Developing Ecommerce Application

Jun 9, 2010

I'm making an ecommerce application on Android and, as it is my first serious project, I'm trying to figure out beforehand the best approach to do this.The application talks to a web service (magento api, meaning soap or xml rpc unfortunately) and gets all the content on the phone (product categories, product details, user credentials etc.). I think it should do lazy loading or something like that.

So, I was thinking to keep the user credentials in a custom Object which will be kept in a SharedPreferences so that every Activity cand easily access it. I'll use a couple of ListViews to show the content and AsyncTask to fetch the data needed. Should I keep all the data in memory in objects or should I use some sort of cache or a local database? Also, I'm planning to use a HashMap with SoftReferences to hold the bitmaps I am downloading. But wouldn't this eat a lot of memory?How cand all the activities have access to all these objects (ecommerce basket etc.)? I'm thinking of passing them using Intents but this doesn't seem right to me. Can SharedPreferences be used for a lot of objects and are there any concurrency issues?

Any pointers would be really appreciated. What are some good guidelines? What classes should I look into? Do you know of any resources on the Internet for me to check out?

View 2 Replies View Related

Android :: Project Contains Errors - Eclipse Won't Compile Project

Mar 21, 2010

Somethings I'll have an? .xml file selected when I compile a project, only to have a? .out.xml generated. Deleting the file doesn't clear the error, and Eclipse won't compile the project. It just reports that your project contains errors. The solution is to go to Project/Clean. This will clear the error in the project and allow it to compile.

View 6 Replies View Related

Android :: Get Project And Std Java Project To Play Nice?

Aug 11, 2010

I can now get our Android project to talk to our non-Android project. But there's still an issue: I are trying to have an Android class call a non Android Hello World class. I tried compiling our non-Android Hello World class in a separate Eclipse workspace. I then packaged it into a jar. I imported that jar into our Android Hello World class.

I then called one of the methods in the non-Android Hello World class. When I ran the Android Hello World class as an Android application, the following runtime error occurred. Here are the Android debug logs:

08-11 09:07:56.764: ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
08-11 09:07:56.764: ERROR/AndroidRuntime(333): java.lang.ExceptionInInitializerError
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at com.hello2.hello2.onCreate(hello2.java:27)
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047).....................

View 1 Replies View Related

Motorola Droid : Guidelines Using SetCPU As Far As Profiles - Performance And Battery Life?

Jun 25, 2010

I was just hoping for some guidelines when using SetCPU as far as profiles, performance and battery life? I know it varies by kernel and right now I am using Chevy's uLV 1Ghz kernel.

View 1 Replies View Related

Android :: Reference Project Library From Another Project

Jun 6, 2010

I have 2 android projects out of which I modified one to work as a library. I want the main project to refer to this library to perform few functions. While this scenario works just as expected, I want to introduce one more functionality. I want to link this library project with another just a java project which has code common to both Android and Blackberry applications. This second part however doesn't seem to work and throws "The application <appname> (<package name>) has stopped unexpectedly. Please try again" with a ForceClose button. I would greatly appreciate if someone can give a brief information on how to make this work.

View 2 Replies View Related

Android : How To Add Project Reference To Droid Project?

Jan 25, 2010

I am a C# developer and getting started with Android. I am attempting to duplicate a couple applications I already have in VS. The project is made of 2 executables and 1 common assembly. The 2 executables contain the application specific logic while the common contains centralized forms and logic (such as login form). I am using Eclipse. So how can I accomplish this layout?

View 1 Replies View Related

Android :: UI Design Guidelines For Android Tablets

Jun 22, 2010

Are there any UI design guidelines for the upcoming Android tablets? Looks like the Archos 7 will be available sometime this month. My question is not about supporting the screen size but more about providing a more appealing UI interface for a bigger screen device.

View 2 Replies View Related

Android :: R.java File From Android Library Project Not Importing Into Application Project

Aug 8, 2010

I followed the instructions here on how to create an Android library project, and use it in an Android application:

http://developer.android.com/guide/developing/eclipse-adt.html

But it is not working. I can see the library project is added to my application but I cannot reference anything in it because it won't build. The R.java file from the lib is NOT being added to my application project, so the lib project contains tons of errors, everywhere it tries to reference it's own R.java file.

I don't know if this has anything to do with it, but in the console there are messages stating that the there is "No resource identifier found for attribute 'X' in package 'Lib Package'. My library package has a a few styleable attributes defined for a custom view I made, all of which are being complained about in this console message. The library builds just fine, and I don't get those messages in the console until I hook the library to my application, so I don't know what's up with this.

View 1 Replies View Related

Android :: Add Library Project To Project?

Sep 15, 2010

When I right click the project in the eclipse, select "Properties". In the property page, select Android. According to the document, you can add the library project through that page. But my problem is that, there is no library information on the page. It only lists "project build target"

View 2 Replies View Related

Android :: Use Library Project In Other Project

Jul 19, 2010

I have created a library project. When I use the library project in other project, it compiles. How ever, when I run the application, it always get the error "The application has stopped unexpectly.".

View 4 Replies View Related

Android :: How To Generate A Java Doc For Phone Project?

Sep 24, 2010

Does someone know how to generate a javadoc for an android project? I found searching the net this info http://www.androidjavadoc.com/?p=63 , but i don't understand where can i find the file "droiddoc.mk": "All javadoc stuff is concentrated in the ROOT/build/core/droiddoc.mk".

View 3 Replies View Related

Android :: How To Reverse Engineer A Project From Stock Phone?

Jul 8, 2010

How would i go about reverse engineer what i have on my phone into a project in eclipse. To clarify, i want to create project where i have all the source code that was used to set up my stock phone.

View 2 Replies View Related

Android :: Standard Libraries Not Imported In Phone Project

Mar 7, 2010

I'm new to Java/Eclipse/Android, so this is probably an easy (if not stupid) question:
After creating a new Android project, I want to import some (what I think are standard) Java libraries. However, some import statements throw an error:
HelloAndroid.java:
import java.awt.Color; (The import java.awt.Color cannot be resolved)
import javax.imageio.ImageIO; (The import javax.imageio cannot be resolved)
while others don't:
import java.io.File; (no error)
I've done some googling and tried to add these classes to my class path by going to project->properties->libraries but I haven't been able to figure out what to do exactly.

View 3 Replies View Related

Android :: Compile Phone Project At Command Line

Jun 15, 2009

I have an android project with source. This is the project structure. $ cd MyProject $ ls Android.mk res AndroidManifest.xml src. How can I compile this build and build an apk thru command line?

View 2 Replies View Related

Android :: Suggestions Regarding SIP / RTP Support

May 27, 2009

1. Is there native RTP support on android? 2. Is there a media player for playing incoming rtp streams, or for that matter streaming rtp audio video from the device? 3. I have a sip stack that runs on android. I wish to develop an application on top of it. Before that, i wish to know, what should be an ideal application footprint that can run on android. If there are any best practices wiki pages...kindly point me to them. 4. I wish to provision some parameters on a java smart card. Is there a way (api) provision on android so that i can read from that card on application bootstrapping? 5. Is it possible for an android application to register for callbacks, in case the mobile device goes out of radio coverage?

View 2 Replies View Related

Android :: Way To Setup Custom Phone Project Templates In Eclipse?

Apr 23, 2010

Every app I make starts out with a number of common base classes, interfaces, utility classes and a basic package structure that has been working for me. Is there a way for me to set up a project template in Eclipse that will give me all of the basic Android project stuff PLUS a bunch of custom packages, classes and interfaces? I guess I could just put all of this stuff into one or more libraries as opposed to creating a whole project template, so if you have a preferred approach or information/links/etc on how to do any of the above, please share (I'm relatively inexperienced with Eclipse, so the more detail the better).

View 1 Replies View Related

Android :: Error Converting Replicasisland From SVN In Eclipse To Phone Project

Aug 16, 2010

I have been trying this for hours without success. http://replicaisland.googlecode.com/svn/trunk/ I have added the repository and successfully downloaded the project into the workspace using the option "check out as a project in the workspace" calling it replicaisland. I tired using the option "check out as project using the New Configuration Wizard" but when I selected and android project I had to enter details that I don't yet have. I right click on the project and select "convert to Android project" which gives me an error. Code...

View 1 Replies View Related

Android :: Suggestions For Inbox Notifications?

Jul 8, 2010

i have few activities in android application with inbox Textview in the title. i want to implement something like Inbox(Number of messages) to be shown on each screen. any one guide me what is the suitable way to show number of messages in each screen title bar? one of my friend is calling webservice after 10 seconds again and again to achieve this functionality but i dont think it is a suitable way.

View 2 Replies View Related

Android :: Turn Off Suggestions In Edittext?

Sep 24, 2010

How to turn off suggestions in edittext in android?

View 3 Replies View Related

Android :: Autocomplete With Suggestions In Custom Dialog

Aug 11, 2010

I'm having problem with creating AutocompleteTextView in custom dialog. In every example i saw, the autocomplete feature is only in the classes that extends activity.I need to have autocomplete in custom dialog that I created.

View 3 Replies View Related

Android :: Disabling Spelling Suggestions In EditText

Sep 8, 2009

I've got an EditText that I don't want spelling suggestions for since it's just a user name input field.

I've tried setting autoText to be "false" but when I start typing in the EditText with the soft keyboard I am still provided with spelling suggestions. I've also tried setting inputType to be "none" however that doesn't help either.

What's the correct way to disable this functionality (in XML or in code) so that no spelling suggestions are provided?

View 3 Replies View Related

Android :: Suggestions Related To Final Application?

Jun 1, 2010

i have completed my First android application and i have deployed that application to different android based mobile phones which is working fine. my question to you is, is there iphone store like thing exists in android to upload your application by paying fee to android store or something like that. or nothing or should i start passing my application to end users directly? any help would be appreciated.

View 2 Replies View Related

Android :: Disable Auto-suggestions When Writing An Sms?

Apr 23, 2010

I just fired up my motorola milestone and want to send a text message. But since it constantly suggests words in English and autocorrects them I am unable to write in my own language (Dutch). Does anybody know how I can disable the auto-suggestion option when writing an sms?

View 3 Replies View Related

Android :: How To Add Words To Suggestions On Top Of Soft Keyboard

Mar 27, 2010

Is there any way to add words to the suggestions in the soft keyboard? For a specific Edittext field i would like to add a list of names to the suggestions that pops up on top of the soft keyboard in android 2.0.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved