Android :: Hellomap Example Giving Exception
Jun 14, 2010
CODE:.......
I had done all configuration.
Here is my manifest file:
CODE:........
And my layout file main.xml is:
CODE:..........
And my Hellomap.java
CODE:.....................
something i am missing guess or may be the issue is with 2.1 google api?
View 2 Replies
Jul 14, 2010
I created a sql lite database with the following columns:
static final String dbName="demoDB";
static final String tableName="Employees";
static final String colID="EmployeeID";
public void onCreate(SQLiteDatabase db) {
// TODO Auto-generated method stub
db.execSQL("CREATE TABLE "+tableName+" ("+colID+" INTEGER PRIMARY KEY AUTOINCREMENT, "+
colName+" TEXT, "+colAge+" Integer);");
I want to select all the records in the database like this and display them in a gridview:SQLiteDatabase db=this.getWritableDatabase();Cursor cur= db.rawQuery("Select "+colName+", "+colAge+" from "+tableName, new String [] {});String [] from=new String []{DatabaseHelper.colName,DatabaseHelper.colAge};
int [] to=new int [] {R.id.colName,R.id.colAge};
SimpleCursorAdapter sca=new SimpleCursorAdapter(this,R.layout.gridrow,c,from,to);
GridView grid=(GridView)findViewById(R.id.grid);
grid.setAdapter(sca);but i receive the following exception:java.lang.IllegalArgumentException: column '_id' does not exist.the db table does not have a column with name '_id'so what is wrong with this code
View 3 Replies
View Related
Aug 19, 2010
is there a reason why android phones are not giving us a 1280x720 resolution? 16:9 screens would be great to have on mobiles IMO.
View 8 Replies
View Related
Sep 21, 2010
I implemented three(live, news, music) widgets for an radio application. For three widgets I'm getting application name as the widget names.How i can give different names for widgets.like live widget, news widget, music widget.Please let me know.Thanks
View 1 Replies
View Related
Feb 2, 2010
I dont what to give any background to activity when i leave this propery blank it gives me error, and i have tried using @null as a value but it shows black background.can any one guide how to make it transparent?
View 2 Replies
View Related
Apr 14, 2009
When I give the path in Eclipse for the SDK 1.5,it gives the error message no android.jar found.
When i gave the path as the ~android-sdk-windows-1.5_preplatformsandroid-1.5 then i get the error message "toolsadb.exe" not found.
View 15 Replies
View Related
Feb 10, 2010
I am giving product build in Android 1.6 in Ubuntu using make. First time it is fine. But next time onwards if I try to build it again without cleaning it, the system hangs after some time. Even if I try remove the out folder to clean, the system hangs. So every time a fresh build takes too much time. Did anyone face this issue? I am using 1 GB RAM, 1 GB swap space and 40 GB linux space(65% space is free).
View 5 Replies
View Related
Sep 28, 2010
I am creating a few layouts with the root element being merge. inside the merge element i have a ScrollView containing a TextView. I am getting 2 errors: there is no resource to match the layout_below and layout above names i have put in.I have another layout xml file including very similar components, some of which also reference @id/headingLayout and @id/tabsLayout. Both of these XML layout files do not contain the component with name headingLayout or tabsLayout.Why is it that one layout file has no errors about these references and the other layout file does? What the crap am i doing wrong, the app will build and run like i expect, until i add this merge to another layout?I have even tried copying the xml from the working layout file, to find that it gives the same errors, something must be wrong with my new layout file. I have tried cleaning, rebuilding, opening/closing eclipse..
View 1 Replies
View Related
Sep 30, 2010
Am I going wrong anywhere here ? because this is giving runtime error. application stopped unexpectedly.
I may b wrong in syntax.
CODE:..................
View 1 Replies
View Related
Dec 28, 2009
I'm getting some odd side effects when I set a header to my ListActivities. The ListActivity actually allows you to scroll up "behind" the header and click...which sends my app into a fit of errors b/c my Lists are connected to a Cursor and selecting behind the header returns a value of -1. Ive noticed this doesnt happen to any of my Lists that dont have headers.
View 3 Replies
View Related
Sep 29, 2010
How can i draw a view on a canvas by giving the x,y position in the canvas.
For example,
I have custom view myView, which was created by inflating one of my layout.xml file.
Now i want to draw this myView on the canvas at position (x, y).
How can i do that? code...
View 1 Replies
View Related
Dec 27, 2009
How to zoom in by giving 2 coordinates(2 Locations) ?
Is there API method for android?
View 1 Replies
View Related
Aug 21, 2013
I am new to android. i am try to compile android kernel 3.4.0 for HTC device.After running cross compile command,
"export CROSS_COMPILE=/home/jharvard/ndk-x86/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-"
when I run make clean command "make clean && make mrproper".It shows errors,
/home/jharvard/kernel-code/linux/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/jharvard/kernel-code/linux/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
View 1 Replies
View Related
Nov 18, 2009
When I add video source and video encoder, it gives error in recoreder.prepare() (prepare failed) while the same code is working only for audio. I am not finding what I am doing wrong.
setContentView(R.layout.camera);
preview=(SurfaceView)findViewById(R.id.surface);
previewHolder=preview.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
recorder = new MediaRecorder();
String url = "/sdcard/dcim/test.3gp";
camera = Camera.open();
Camera.Parameters parameters = camera.getParameters();
parameters.setPreviewSize(352, 288);
parameters.set("orientation", "portrait");
camera.setParameters(parameters);
recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setOutputFile(url);
recorder.setVideoFrameRate(15);
recorder.setVideoSize(480, 320);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
recorder.prepare(); recorder.start(); Thread.sleep(100000);
recorder.stop(); recorder.release();
} catch (Exception e) { e.getMessage(); }
View 3 Replies
View Related
May 18, 2010
I am using below code for scheduling a task in android but its not giving any results.
int delay = 5000; // delay for 5 sec.
int period = 1000; // repeat every sec.
Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask() {
public void run() {
Toast.makeText(getApplicationContext(),"RUN!",Toast.LENGTH_SHORT).show();
}
}, delay, period);
View 2 Replies
View Related
Jul 2, 2010
The preference type of UI is used in many Google built-in applications for example Bluetooth , Wifi etc. And the getView of the preference is used to set the image or text to make it visible in the UI screen.
the getView for the pref type UI is defined as below in framework code : ->
CODE:..............................
Where the convertView is not getting recycled and every time whenever the user is scrolling the list up and down, convertVIew comes out to be null.Therefore by logic inflation of the UI also happens all the time in onCreateView().This is a kind of shortcoming in terms of memory utilization , hence in a discussion (MAKE YOUR UI FAST AND EFFICIENT) where Romain Guy has mentioned about the tricks to increase the app performance doesn't hold good for preference type of UI.
View 2 Replies
View Related
Nov 9, 2010
I am not getting call in number in off_hook state when it is only coming in dialing state. According to documentation it should provide call in number for off_hook state as well. Is it a bug?
View 2 Replies
View Related
Jun 4, 2010
I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively.Could anyone please tell me the solution for this problem.I checked the XMPPConnection.java file in the Smack API and it looks the same as given in the link solution.
View 3 Replies
View Related
Nov 12, 2010
As a Droid Incredible owner I must that the Droid 2 screen is VERY sharp and makes mine look soft. My wife is very happy with the phone and the battery is impressive. I got her the desk dock tonight and she loves it too. Would I trade my phone for it? No, I'm waiting for a 4g Windows Phone 7 device with front facing camera to show up on vzw.
View 6 Replies
View Related
Jul 9, 2013
I have recently gotten back into developing Android applications. However, every time I try to run an application on my phone now, I get the error message - "Parse Error - There is a problem parsing the package."
Two years ago, I used Eclipse to develop projects, which is what I'm using now. Though, I had to reinstall eclipse and everything else. So it's a new setup but I believe it's the same general setup.
I can put my old .apk files on my phone, and they work fine. If I put any newly created .apk files on my phone, I get the parse error.
I also found that if I compile any OLD projects and then copy those onto my phone, that I get the parse error.
This leads me to believe I've got something set up wrong in Eclipse that my phone isn't liking.
I thought maybe it was the virtual device manager, so I've tried several combinations of virtual devices - 1.5, 2.1, 2.2, 2.3.3 - using any of them still gives the parse error when trying to run the applications on my phone.
By the way, all of these projects work in the emulator running through Eclipse, so I know they work.
View 10 Replies
View Related
Sep 18, 2012
My aTrackDogSD tells me 14 apps have newer versions out but when It directs me to the appropriate market page for the app it just shows "open" "uninstall" NOT update. Where as it should prompt to update I have auto update enabled and the version in the market is newer than the version of my app. SO that meens I would have to uninstall each app then reinstall to acquire the newest version correct?
View 1 Replies
View Related
Sep 21, 2010
Managing just 8-9 hrs with ny battery, and believe me I barely use the phone! Just a few calls, few texts, 5 min Internet, 5 min face book - thats it. I have everything turned off that I can turn off. Come on HTC sort it out - this is obviously by far the worst criticism you have.
View 7 Replies
View Related
May 10, 2010
I have really been enjoying HTC Mail, but all of a sudden since last night it stopped giving me a notification when a new email comes in. I checked my settings, and nothing there has changed. Still set to notify.
View 3 Replies
View Related
Aug 17, 2010
Has anyones GPS been out of wack lately? On the Belt parkway west in Brooklyn right after the Gowanas Canal - specifically while driving the GPS thinks I'm on the streets rather than the highway? As in it thinks I'm on 3rd avenue but I'm actually on the highway. It keeps telling me to turn left and right when I'm on the highway going straight. Everything else works right but the GPS has been a little off.
View 16 Replies
View Related
Dec 27, 2009
Hi I'm having this problem with the search key when I first got my hero it would give me suggestions as I typed in my search know it wont no more.
View 11 Replies
View Related
Nov 3, 2010
i want to give my phone a name to identify it on the wifi network, but cant find anyplace to enter it.
View 1 Replies
View Related
Sep 27, 2010
again i went to open my gallery and it is saying insert SD card. This is the second time this has happened with me and the evo but it has been 2 different evos not the same one. now when i hook it to the computer it wont recognize it as a disk drive and says there was an error and the hardware might not be working right (from the computer it says this) also debugging mode has popped up which i have never seen before when plugging the phone in.
View 4 Replies
View Related
Aug 4, 2010
Why is my EVO 4G giving out my location to people when i text them... It doesnt do this to everyone but to some people. How do i turn that off as i dont want people knowing where the heck i am. My friends can tell me where i am when i text them. Why is this happening.
View 1 Replies
View Related
Feb 22, 2014
Lately I have been trying to install a ROM on to my phone, but I cant get the files onto my SD card. Keeps saying, "Cannot copy item. The device has either stopped responding or has been disconnected.". I just rooted the phone about a week ago and figured I would change the ROM. Also tried unblocking the files but got nowhere. Also tried other ROMs, nothing is working. But I can transfer files to and from my SD card with no error.
View 3 Replies
View Related
Mar 20, 2013
Htc rhyme is not booting up,when i press power Botton it only gives seven vibration and indicator light blinks,thn nothing happens,i have already tried hard/factory reset using volume down botton but nothing changed,also i never rooted my phone,its on orignal frmware.what to do ?
View 2 Replies
View Related