The same code that displays the lists running on the emulator doesn't run on the mobile (Motorola Milestone). I'm using the same android platform (2.1-update).
Inbox Code
private ArrayList<EmailModel> email_list;
private EmailAdapter email_adapter;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(saved...
i have made an android application for
"Project Build Target" as
Target name:: "Android 2.2"
Vendor :: "Android Open Source Project"
Platform :: "2.2"
API Level :: "8"
I am using Eclipse helios and android sdk r_06.
But the phone where i am want to run my application has platform 1.6
how do make this application run on that phon...
Hello Everyone ~
I've develop android application, and one question.
As you know, When we use LiveActivity, we must specify @id/android:list for ListView ID.
But, When I use @+id/android:list instead of @id/android:list, it is working fine.
What is different between @+id/android:list and @id/android:list ??
...
What is the difference between Service, Async Task & Thread. If i am not wrong all of them are used to do some stuff in background. So, how to decide which to use and when?
...
I need to record video & audio. when click the start record button.The video does not store on the sd card and when i click on the stop recording it shoe the error unexpectedly stopped.
I am new to android please help me.
Advanced thanks to you.
Here is video and audio recording code
public class audio extends Activity {
public MediaR...
Hi all!
I had found a lot of stackoverflow post about save an Activity and the reload it.
My question: How can I have an Activity with an MapView and after reload the same mapview ?
What is the best way to switch between activity and views ?
Thanks:Karoly
...
Hi all
first of all: yes, I read all the other threads on this topic. And not only those from this site... (you see, i'm a little frustrated)
Most of them come with the advice to use "android:id" instead of just "id" in the xml file. I did.
From others, i learned, that View.findViewById works different than Activity.findViewById. I ha...
I have created a widget to display some long text. I want this text to have "marquee" effect . I've already set TextView propertie ellipsize="marquee" but it doesn't works .
Any idea?
Edit: For example Stocks widget of HTC
...
In my JavaScript code I set 'onclick' handlers on HTML DOM elements.
In Froyo these handlers always 'fire' when their elements are clicked w/i WebView, as expected.
In pre-Froyo, including 2.1 I am confronted by 'magic' :-(
Sometimes the handlers are activated and they successfully log to console.info as well as call Java callbacks,
some...
After having solved every of my previous issues to get the code running for retrieving videos from the sdcard and displaying them in the GridView, I still cannot see the videos. I don't know what I have done wrong that they won't show and the array isn't passed on.
If someone could help me out, please, because I really haven't got a cl...
I have a self signed server certificate (cert.pem) and need to enable it for SSL sockets in an Android application. Ideally I'd like to package the code as .jar file and not need an external certificate file (i.e. include it into the code).
With this code I can accept all certificates, which is not what I want:
SSLContext sc = SSLConte...
Im in the conceptualizing/design phase of building an app and i've hit a bit of a snag. Essentially i was looking for a way to embed one activity into the UI of another similar to how a TabHost/TabActivity. There would be a window at the top of the screen which would contain the other activity, and below that would be buttons and control...
What's the best way to change width/height of a widget (I mean, a UI widget, subclass of android.view.View) programmatically?
Doing something like this works, but it doesn't seem quite right:
ViewGroup.LayoutParams params = mSomeView.getLayoutParams();
params.height += 10;
mSomeView.setLayoutParams(params);
...
Hi-
I'm developing an HTML/Javascript mobile web application using Dashcode. Normally I wouldn't use such WYSIWYG stuff, but I've found it a very rapid development process.
Unfortunately it seems like I can't get it to run on Android's browser currently. The main display loads and all the correct data is pulled from web services, but y...
How to get GEO Coordinates ( latitude & longitude ) without using GPS in android ?
Any Suggestion ?..
...
I have a layout like :
<ll vertical>
<ll horizental>
<textview></textview>
<textview></textview>
</ll>
<ll horizental>
<textview></textview>
<textview></textview>
</ll>
</ll>
The problem is i need to display this as part of my whole screen.
i am doing
mCustomDrawableView = new CustomDrawableView((Context)this, R.drawable.mychar...
Hi,
I am using seekbar in my application. I am setting up the seekbars progress value in onResume. But if I do so then seekbar is visible only once. If i go to other activity and then press back button then seekbar doesnt show up.
Can some one help me out in this?
I have read somewhere that seekbar works if its in oncreate and if its...
My custom view looks as below
package com.mypackage;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.RectShape;
import android.widget.ImageView;
pu...
Is there a way to code-sign (to allow it to open only on a device with specific ID) your Android app when using ad-hoc distribution (sending app to testers or clients as a subcontractor)?
I know I can share apk file pretty easily, but what if I don't want other people to redistribute the app before it is ready? I don't want testers to b...
Could anyone please confirm the formula for calculating the screen density?
As I have read, the following is the formula:
Density = SQRT (wp^2 + hp^2)/screen size
wp -> width of the screen (in px) hp -> height of the screen (in px) screen size -> Physical screen size (diagonal inches)
screen size (320x480) = SQRT(102400 + 230400) /16...