Android :: Unable To Get Layout Correct For Inputting Coordinates In EditTexts For Maps / What To Do?

Oct 28, 2010

I need to input latitude and longitude separately in 2 EditTexts and display the location at the click of a button. Somehow I'm not able to get the correct layout as i precisely require 2 EditTexts aligned side by side and a button below them.

Here is what i already have code...

Android :: Unable to Get layout correct for inputting coordinates in EditTexts for Maps / what to do?


Android :: Desactivate Buttons/edittexts From My Layout? - Visibles But Desactivated

Nov 10, 2010

I have a layout with a spinner and a lot of textboxes and buttons.

I need to make appear some elements of the layout when one of the options of the spinner is selected and to make dissapear when other is selected. ----> PROBLEM SOLVED!!!

But also, i need to desativate some elements of the layout. I mean that they have to be visible, but the user can't press buttons or edit edittext's.

View 3 Replies View Related

Android :: What Exactly Is Correct Way Of DDMS Sending Coordinates

Oct 13, 2009

I am trying to design my first Android application with the use of GPS. As of right now, I have a drawable button that when clicked, alerts a Toast message of the longitude and latitude. I have tried to use the telnet localhost 5554 and then geo fix #number #number to feed in values but no results display just 0 0. I have also tried DDMS way of sending GPS coordinates and I get the same thing. My question is what exactly is the correct way of using the geo fix and the DDMS way of sending coordinates. I have used Location, LocationManger and LocationListener but I am not sure which is the right choice. Code...

View 2 Replies View Related

Android :: Maps API Key Is Correct Yet Map Not Displayed To App

Nov 24, 2010

I tried Hello goolge map tutorial and not able to viewthe map. I signed up for API key. I am using Eclipe which is installed in "d drive" used following command to obtain MD5 fingerprint fom bin folder of jdk

c:program filesjavajdk 1.6in> keytool -list -alias androiddebugkey -keystore "C:Documents and SettingsOwner.androiddebug.keystore" -storepass android -keypass android

Got this fingerprint: 21:17:B1:D8:01:BD:F2:5A:9F:C9:A3:01:96:FA:9A:5B

Used this to find API key and got this: "0Gm7C3R3R2K1pmQGuGkS0rx582TWJEBdJwryFrA"

Used following code in layout

CODE:.......

Still map is not displayed.

Log Cat error log

CODE:..................

My manifest file:

CODE:........................

View 2 Replies View Related

Android : Correct Xmlns Url For AdMob In Droid Layout XML?

Jan 7, 2010

I am testing the AdMob for Android SDK. I can't set the admob:testing="true" because the admob attribute is unknown.code...
My Eclipse is complaining that admob:testing="true" would have an unknown prefix. Anyone got an idea on how to fix this?

Sub question: Anyone got an idea how to change the height of the ad? It seems to be fixed to 48px, which is not looking good on any DROID phone...

View 1 Replies View Related

Android :: Unable To Open Both Main.xml Files / From Layout & Layout-land At Same Time?

Aug 14, 2010

While developing for Android, I am unable to open more than one main.xml file in an Eclipse editor at a time.Each time I open one, it simply replaces the editor (tab) of the first main.xml with the new one, instead of opening a new tab - even if the contents of the existing tab were unsaved.Even stranger, I can open multiple main.xml files from different projects with no problems.This only happens when they're within the same project.

View 2 Replies View Related

Android :: Unable To Get Correct Selected Items

Apr 17, 2010

I am to display the list and store the selected items in an array. But I am not able to get the correct items that were selected. Here whenever the user clicks an item, the array is getting updated, irrespective if the user is clicking the item to select it or deselect it. Could some one please help me solve this. I could actually perform an iteration to remove the odd numbered items in the array but I feel that would become an overload on the phone. Is there something for efficient. Please advise.

public class MainActivity extends ListActivity { TextView selection; String[] items={"sodium", "O2", "C02", "HCL", "NaCl", "H2So4", "O3", "Ag"}; String names[] = new String[10]; static int i=0; int posarray[] = new int[10]; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_multiple_choice, items)); .........

View 2 Replies View Related

Motorola Droid :: Does Maps Correct Routing For Traffic?

Nov 2, 2009

I know that Lexus navigation systems will take a look at live traffic conditions and reroute you according to congestion and accidents. Since the Droid has the ability to do live traffic in the map layer...does anyone know if it takes this information into account when calculating the directions.

View 13 Replies View Related

Android :: Mismatch Of Event Coordinates And View Coordinates

Jun 30, 2010

I've been trying to write a little application that recognizes custom events in Android: you hold your finger over a TextView for a certain length of time, and it changes color.I'm using the MotionEvent coordinates and checking if they are within the bounds of a particular TextView, which is within a table.I am just attaching the onTouch listener to the table within the activity.But I get weird errors: the coordinates seem to be off by one view (i.e. if I touch the view below the view above reacts); or sometimes one will react, and the other will not. Any idea what might be going on?

View 2 Replies View Related

Samsung Galaxy S :: Google Maps Not Finding Me In Correct Location / Way To Get

Oct 13, 2010

My google maps is not finding me in the correct location

View 1 Replies View Related

Android :: Unable To Get Correct Screen Size Using Services For Droid / Way To Fix It

Sep 2, 2010

So i am trying to get the screen size of the Moto Droid on my application. on my Create, i am using the Service windowManager to get the default display. code...

When i set it i get width of 320 and height 570. that looks wrong, it should be 320x480.
i want to place a 300x50 image on the bottom of the screen on any device (actually) so normally i would get the height of the screen and minus the image height so it places it on a view. but since i am getting 570 for some reason, i have to scroll down to see the image. why is it getting the wrong screen size and is there another more accurate way of getting the size. code...

View 2 Replies View Related

General :: Correct Format / Partition Layout For USB To Auto Mount?

Apr 25, 2014

I've got a 3TB external drive drive hooked up to my Ouya running CM11 (Android 4.4)

I run Nzbget and Transmission in optware, and use CM primarily as a vehicle for XBMC so I need the space.

I had it in 2 ext4 partitions which needed a init script to mount under the stock OS.

I was hopping to get it working in a less hacky manner under CM.

I tried with the two parts, and no go so i redid it with one big partition with root as the UID and sdcard_rw as the GID.

Still no dice. I can access it in File Manager with elevated permissions, but no go in XBMC or other apps.

Also tried one big exFAT partioning with no luck.

I plugged in an 8g ntfs drive I had and it automounted it no problem.

What is the right way to configure the drive? We're a Linux household so sticking with ext2/3/4 would be ideal. NTFS I would like to avoid.

View 1 Replies View Related

Samsung Moment :: Google Maps Not Identifying Correct Current Location

Nov 14, 2009

My google maps identifies me in india despite havving active network and wifi connection...anybody else have this issue and can it be fixed?

View 2 Replies View Related

Android :: How To Convert Screen Coordinates To 3d Coordinates?

Aug 5, 2010

i'm created an application where it consists of 3d rotating cube I want to move the cube with respect to the drag on the screen.In the on touch Listener I'm able to get the x,y coordinates but i don Know how to make those coordinates to map to 3d space.

View 3 Replies View Related

Android :: Normal Maps Vs Normal Coordinates

Jul 10, 2010

I'm currently working with OpenGL ES 1.1 and using the DrawElements convention along with Vertex, Normal, Texture Coordinate, and Index arrays.

I recently came across this while researching the idea of using Normal/Bump mapping which I previously though impossible with OpenGL ES: http://iphone-3d-programming.labs.oreilly.com/ch08.html

I can generate an object-apace normal map already from my 3D modeler, but what I'm not completely clear on is whether or not the Normal coordinates array will be necessary any longer if implementing a 2nd texture unit for normal mapping, or will Lighting + Color Texture Combined with a Normal map via the DOT3_RGB option be all that is required?

EDIT - After researching DOT3 Lighting a bit further, I'm not sure if the answer given by ognian is correct. This page, [url] gives an example of it's usage and if you look at the "Rendering & Final Result" section bit of code, there is no normal array ClientState for Normal Arrays is never enabled.

I also found this post here,[url] which explains it well... but leads me to another question. In the comments, it's stated that instead of translation of normals, you translate light direction. I'm confused about this as if I have a game with a stationary wall... why would I move the light around just for one model? Hoping someone can give a good explanation of all of this...

View 2 Replies View Related

Samsung Captivate :: Unable To Install USB Drivers - Correct Zip File

Oct 6, 2010

I am unable to install the USB drivers for Windows XP - I have downloaded the correct zip file, but the drivers are marked as being detrimental to Windows XP somehow and they just won't install. Can I copy them out of the zip file and manually put them somewhere? I'm inching ever so slowly towards rooting and am trying to get my ducks in line - but they're not cooperating.

View 8 Replies View Related

Android :: EditTexts And Handles

Jan 26, 2010

I have an issue with an application I'm writing for Android. Here's the problem: I need to create several EditText fields on the fly, while still maintaining some sort of handle to each individual one. For example: I create four EditText's, and I wish to submit the information from them to a server via an HTTP connection. How do I get the user-inputted data out of these EditText's after they have been created? (I guess what I'm asking is how exactly do I use the setId() method, because it doesn't seem to be working for me).

View 9 Replies View Related

Android :: Implement Custom Input Method For Certain EditTexts Within App

Dec 14, 2009

I want to implement a custom input method for certain EditTexts within my app. I understand I need to extend the InputMethodService class, but how do I then add this to certain views? I've tried just using the class name in the android:inputMethod XML property, but this seems not to work. Using the SoftKeyboard example in the 1.5 SDK, my manifest is as follows:..............

View 2 Replies View Related

Android :: Linearlayout Does Not Allow Vertical Scroll After Adding Dynamic Edittexts

Jun 11, 2009

<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/Layoutbuttons"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/Bsave" android:text="Save"></Button> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Clear" android:id="@ +id/Beditclear"></Button> </LinearLayout>

<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/Ledititems" android:orientation="vertical" android:scrollbars="vertical" android:scrollbarStyle="insideInset" android:scrollbarAlwaysDrawVerticalTrack="true" android:fadingEdge="vertical" android:fadingEdgeLength="8px"></ LinearLayout>
</LinearLayout>

I am adding dynamicly created EditTexts to the last vertical LinearLayout:

ArrayList<EditText> arrayedititems; edititems = (LinearLayout) findViewById(R.id.Ledititems);
arrayedititems.add( new EditText(globalcontext) ); //multiple times to add many EditTexts .... edititems.addView(arrayedititems.get(lastindex) );

Now all the edittexts are being added fine and show up on the linearlayout, the problem is I get no vertical scrollbar and can not scroll the linearlayout (you can a see large number of failed attemptes in the xml entry to enable this scrolling, such as forcing scrollbars or setting to vertical) Do I need to call some sort of invalidate() or notifyDataSetChanged() like with an arrayadapter to update the LinearLayout into checking if it needs to enable scrolling?

View 2 Replies View Related

Android :: Unable To Add A New Layout XML File

Aug 21, 2009

Using eclipse 3.4.1 and also 3.5 and I cannot seem to add a new layout .xml file.I tried adding it externally using windows explorer, but got all these errors.

[2009-08-21 00:01:54 - TestAndroid] (skipping index file 'C:workspaceTestProject
esdrawableThumbs.db') [2009-08-21 00:01:54 - TestAndroid] reslayoutTest1.xml: Invalid file name: must contain only [a-z0-9_.] [2009-08-21 00:01:54 - TestAndroid] reslayoutTest1.xml: Invalid file name: must contain only [a-z0-9_.]

Then i tried right click on the layout folder, selected new Android XML file and I got this --

The selected wizard could not be started. Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. com.android.ide.eclipse.editors.wizards.NewXmlFileWizard

I tried both versions of eclipse, I tried uninstalling and reinstalling the ADT plugin. Nothing seems to be working!

View 3 Replies View Related

HTC Incredible :: Phone Number Dashes When Inputting Call?

Oct 27, 2010

I was curious to know if anyone is aware of any program that allows you to make calls and adds the dashes in the number as you type them. For instance, right now with the Inc when placing a call, the number displays like this:

5555555555

Anyone know if there's a way to make it:

555-555-5555

A little easier on the eyes. I doubt that there is something like this but thought I'd ask.

View 2 Replies View Related

Android : Unable To Fill List Layout In App

Jan 30, 2010

I'm attempting to write my first android app and am having a little problem with filling a List Layout from a DB.

The project itself is here:

http://code.google.com/p/biofuelsfinder/

However the specific code ...

The two portions commented out, if run cause and illegalStateException error which then aborts the code.

Below is the stacktrace

W/dalvikvm( 208): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
E/AndroidRuntime( 208): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 208): java.lang.IllegalStateException: Could not execute method of the activity
E/AndroidRuntime( 208): at android.view.View$1.onClick(View.java:2031)
E/AndroidRuntime( 208): at android.view.View.performClick(View.java:2364)
E/AndroidRuntime( 208): at android.view.View.onTouchEvent(View.java:4179)
E/AndroidRuntime( 208): at android.widget.TextView.onTouchEvent(TextView.java:6532)
E/AndroidRuntime( 208): at android.view.View.dispatchTouchEvent(View.java:3709)
E/AndroidRuntime( 208): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/AndroidRuntime( 208): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/AndroidRuntime( 208): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/AndroidRuntime( 208): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/AndroidRuntime( 208): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
E/AndroidRuntime( 208): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
E/AndroidRuntime( 208): at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
E/AndroidRuntime( 208): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
E/AndroidRuntime( 208): at android.view.ViewRoot.handleMessage(ViewRoot.java:1690)
E/AndroidRuntime( 208): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 208): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 208): at android.app.ActivityThread.main(ActivityThread.java:4310)
E/AndroidRuntime( 208): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 208): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 208): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 208): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 208): at com.biofuelsfinder.biofuelsfinder.buttonClickHandler(biofuelsfinder.java:37)
E/AndroidRuntime( 208): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 208): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 208): at android.view.View$1.onClick(View.java:2026)
E/AndroidRuntime( 208): ... 21 more
E/AndroidRuntime( 208): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 208): at com.biofuelsfinder.RetailerList.fillData(RetailerList.java:34)
E/AndroidRuntime( 208): ... 25 more

View 1 Replies View Related

HTC Droid Eris :: Able To Get Landscape View / Keyboard When Inputting Contacts?

Jan 17, 2010

I just got the Eris today and I was wondering if there was a way to calibrate the screen. I don't know if it's normal, but when I use the Home/Menu/Back sensors, I have to touch the very top of the icon in order for it to work. Also, are you supposed to be able to get the landscape view/keyboard when inputting contacts?
I hope I don't have to exchange it.

View 6 Replies View Related

KitKat 4.4 :: Opening Hangouts And Keyboard Not Inputting Anything Into Message Field

Mar 17, 2014

I'm having an issue with opening hangouts and the keyboard not inputting anything into the message field. The keyboards responds to keys pressed but nothing shows up.

I have to close Hangouts from Recent Apps and reopen it to get the keyboard to work. Happens quite often but not everytime.Problem is on a Nexus 5 with 4.4.2. This is my second Nexus 5.

View 6 Replies View Related

Android :: CLIQ - Unable To Download Google Maps Navigation

Mar 20, 2010

I have a new CLIQ and have been unable to download Google Maps Navigation (with voice instructions) with no success. search Android Markets but Google Maps Navigation does not appear.

View 4 Replies View Related

Android :: Unable To Change Layout Gravity Of Button Programmatically

Oct 7, 2010

I'm unable to change the layout_gravity of a Button programmatically, does anybody know how to do this?The gravity attribute is easily changed using Button.gravity(), Ie it changes the gravity of the text inside the button I cannot change the gravity of the button itself. I also cannot seem to find this in any of the layout params contructors.

View 2 Replies View Related

Android :: Unable To Add Subview To Linear Layout With Wrap Content

Aug 29, 2010

I'm using data to build elements of a ViewGroup. The ViewGroup are LinearLayouts, except the leaves, which are TextViews. Because Data draws the hierarchy, I inflate the LinearLayouts and TextViews from individual XML files programatically on the fly.

My Problem:
When I create a LinearLayout with the attribute wrap_content, then inflate a TextView or other LinearLayout into it, I can't get the parents (or enough of them, anyway) to redraw, respecting the new view. These LinearLayouts always seem to come out at 0 size, because when they are first created (before their children are inflated), they wrap around nothing. I've tried calling some stock methods of ViewGroup but nothing seems to work.

View 1 Replies View Related

HTC EVO 4G : Unable To Close Google Maps

Jul 7, 2010

If I long press the home button it keeps showing google maps as running.How do i turn stop this so it wont keep coming back I think its draining my battery

View 13 Replies View Related

HTC Hero : Unable To Find Google Maps

Jan 13, 2010

I updated the firmware on my HTC Hero some time ago from Modaco to Firmware 1.5.I just got an N1, so I restored the Hero to give to my wife, and the next thing I noticed is there was no Google Maps. I went in to the Market and again...I couldn't even pull it in a search even though I pulled it in searches on my N1.
Does anyone know what's up here? Do I need to upgrade my firmware? If so, does anyone have a link to the install?

View 7 Replies View Related

Motorola Droid : Unable To Install Maps On New Rom

Jun 7, 2010

Okay so i just flashed the ROM for 2.2 and as i was restoring my apps it fails to install Maps and Goggles. I do have the maps app on my system however, but in the market it says its not installed. As of now im fine with it not being installed but when there is an update there might be a problem. Any ideas?

View 5 Replies View Related







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