android

is there a masters degree in Mobile development like android?

it's not a programming question, but programmers related. if yes, please guide me to some colleges that have that program. thanks. ...

How to change string resource xml values in Android programatically?

Hi All, Is there any possibility to Edit String.xml values in Android? Please suggest me the possible ways. I want to provide Enable/Disable option for my App. To accomplish this I can use SQLite database. But I doesn't like to Use DB for a single variable value. Thanks in Advance. With Regards, Raghavendra K. ...

How to assign text size in sp value using java code..

If I assign an integer value to change a certain text size of a TextView using java code, the value is interpreted as pixel (px), now does anyone know how to assign in sp? thanks. -mario_blizz ...

I copy and paste image on EditText, but EditText show me 'obj'.

Adding an image on EditText works fine. However, copying an image is another problem. When I insert an image on EditText by using ImageSpan it shows correctly, but I copy inserted image, EditText shows me only 'obj'. Is there somebody who know how to solve this problem? ...

Static options menu

Hi, I wanted to create a static options menu for all my activity screens. I dont want to override onCreateOptionsMenu() in each activity. Since Menu class is an interface with a huge number of methods, its difficult to create a static object of the implementing class. Any other way of doing the same. Thanks ...

OutOfMemory exception appears while scrolling the list of images

I have a list of 70 text items with image icons(which are stored in drawables folder). If I launch application the first time and scroll the list slowly - the exception doesn't occur. When the application is launched the first time and I scroll the list with 'fling' action the following exception occurs: java.lang.OutOfMemoryError: bi...

Android strong reference

I am having SearchCritiera object and i make it singleton and declare this variable as static, now problem is if i left my application remain open for couple of hours that static object is removed by Android OS, how can i make sure static object should not be removed by the OS. like i know there are few keywords like Weekreference and...

Android: callback for search widget opened and dismissed

I have a screen layout that is forced to be potrait mode. Because it is very complex I don't have the time right now to invest creating a separate one for landscape mode. It also doesn't make much sense for my type of application. However, for input fields it's better to provide a landscape mode, because some phones have a hardware keyb...

AvoidXferMode to replace a color on canvas

I'm trying to replace a color for something that is drawn on a Canvas using AvoidXferMode. From the android docs it looks like it's exactly what I need: AvoidXfermode xfermode will draw the src everywhere except on top of the opColor or, depending on the Mode, draw only on top of the opColor. What I'm trying is something like this:...

Android Screen orientation, shake cellphone crashes the application

I am having search application, which loads data retreived from the webservice. While application on create it shows progress dialog once its done with loading data it dismiss the progress dialog. problem is while loading if i change the orientation of the phone it works fine it try to load activity again, but if i start shaking the ce...

supports-screen with 1.5 target, can't make app non-scaling

Hey, I'm a bit lost right now, what I'm trying to do: build a 1.5 compatible app that should also run on 2.0/2.1 devices like the Nexus. The problem is that supports-screen doesn't work the way it's supposed to with 1.5 target set in eclipse. Did I miss something? Basically, I just want my app not to scale anything, I'll handle that ( ...

Source not found Android?

dear friends, am facing a problem in Eclipse android development tool Source not found EDIT SOURCE LOOKUP PATH while i debug code in class Instrumentation.class at line @param info ActivityInfo from the manifest above error is raised. can any one guide me how to resolve this issue?? i am new to android development.. ...

Android HttpURLConnection disconnect doesn't work

The method disconnect from HttpURLConnection seems not to work properly. If I execute the following code: url = new URL ("http:// ..."); connection = (HttpURLConnection) url.openConnection (); connection.setRequestMethod ("POST"); connection.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded"); connection.setUseCache...

Should I remove e.printStackTrace() from my code before publishing

I was reading the the Android Publishing docs and they said to remove all Log calls from my code. I have some calls to e.printStackTrace() in my code that can be printed as part of the normal running of my program (ie. if a file does not exist yet). Should I also remove these calls? ...

Android: What is better - multiple activities or switching views manually?

I have developed some apps for Android, and this questions stays always: How should I structure my UI? Should I launch activity after activity and leave the phone to make the "back" button, or should I choose more optimized, but more complex to implement, way with switching manually Views and then manually doing the "Back" button functi...

Android SDK Error Upon Creating Emulator

I am running into a problem creating an android emulator from the command line. When I run the android command the messages below output. Starting Android SDK and AVD Manager SWT folder 'lib\x86_64' does not exist Please set ANDROID_SWT to point to the folder containing swt.jar for platform I've already: Execute SDK ...

Google Map View Error when running - Droid

I want to learn some programming for my android phone. I was successful doing the hello world app. Now I wanted to try the mapview found here: http://developer.android.com/resources/tutorials/views/hello-mapview.html My code is the following: package com.example.hellomapview; import android.os.Bundle; import android.widget.LinearLayou...

android memory management outside heap

Hi I am working on an application for android and we since we have lots of graphics, we use a lot of memory. I monitor the memory heap size and its about 3-4 Mb , and peeks of 5Mb when I do something that requires more memory (and then goes back to 3). This is not a big deal, but some other stuff is handled outside the heap memory, li...

My android tests don't get internet access!

The subject says it all. My application gets internet access thanks to the android.permission.INTERNET permission, but my test cases don't while using the instrumentation test runner. This means I can't test my server IO routines in my test cases. What's up? Here's my manifest in case it helps you. Thanks! Sorry about the lack of inde...

What's a good, free source control system for eclipse android development?

Title says it all. My app code is starting to get unmanageable and I want to start source control, primarily because I need to branch my code. What are some good systems that you have used in the past and what would you recommend to me. Requirements: Must be free Must integrate with eclipse Must work well with android development plug...