Android :: No Back Keycode Event Generated While IME Shown?

Feb 8, 2010

If the BACK button is pressed when the soft keyboard is being displayed, no Back keycode event is generated (when it's not shown, and Back is pressed, then my View's onKeyDown()/onKeyUp() methods get called back).

Is this expected behaviour? I'm trying to catch when the IME is hidden upon BACK being pressed. I'm currently working around this in the endBatchEdit() method (I'm implementing BaseInputConnection).

Android :: No Back Keycode Event Generated while IME Shown?


Android :: Catch Event That Soft Keyboard Shown / Hidden For EditText?

Sep 25, 2010

Is it possible to catch the event that Soft Keyboard was shown or hidden for EditText?

View 2 Replies View Related

Android :: Way To Get Keycode Of Letter?

Feb 11, 2009

Is there any method to let you get the keycode for a keyboard letter. E.g. public int get KeyCode(char letter) {...}? I had a look but can't find it and I can't find a way to make Auto complete start filtering from predefined input in the box, so I'm emulating key inputs to make it do this.

View 3 Replies View Related

Android :: Phone Powered Down And Then Back Up / BootLoader Screen Shown

Jun 18, 2010

Just getting the hang of this Motorola droid. Was doing something funky so I powered it down and then back up. I have this dos looking screen that says...

Bootloader
2C.6C
Battery OK
OK to Program
Connect USB
Data Cable

View 1 Replies View Related

Android : LongClick Event Also Triggers Click Event

Apr 12, 2009

I use onLongClick and onClick events of a button to get user inputs. Whenever; the user long click and triggers onLongClick event, the onClick event is also triggered. I couldn't find my problem. The code of two methods are shown in below: Code...

View 2 Replies View Related

HTC Hero : Why Cant I Edit One Event In A Recurring Event

Dec 15, 2009

I hope there is a way to resolve this or bye bye hero.

View 10 Replies View Related

Android :: How To Get R Class Generated Again?

Aug 11, 2010

The automatic generation of the R class does not work anymore. I have tried Project -> Clean.A warning on all xml files has also showed up: No grammar constraints (DTD or XML schema) detected for the document." Maybe that is why the code generation have stopped. Any idea how to get the R class generated again?

View 3 Replies View Related

Android :: R.java Is Not Being Generated

Jul 23, 2009

I've been working on a project for several weeks now, and just tonight I started having a problem. The R.java file is no longer being generated. I've attempted to clean the project (the first time I do this it removes the R.java file but doesn't regenerate it) and have tried uninstalling and reinstalling the SDK. I've also tried resetting adb to no avail.

This problem does not occur in my other Android projects. They clean just fine and regenerate the R.java file like nothing is wrong. This particular project is the only one suffering from this problem.

View 6 Replies View Related

Android :: .aidl And R.java STILL Not Being Generated

Aug 12, 2010

I downgraded to Eclipse 3.5, and the following still doesn't happen when I build a project in Eclipse:

1. .aidl files don't get processed (at all).

2. R.java isn't generated.

Used to work. What the heck?

View 3 Replies View Related

Android :: Generated Build File Fails?

Apr 15, 2010

Building our Android app from Ant fails with this error:

[apply]
[apply] UNEXPECTED TOP-LEVEL ERROR:
[apply] java.lang.OutOfMemoryError: Java heap space
[apply] at java.util.HashMap.<init>(HashMap.java:209)
[apply] at java.util.HashSet.<init>(HashSet.java:86)
[apply] at com.android.dx.ssa.Dominators.compress(Dominators.java:96)
[apply] at com.android.dx.ssa.Dominators.eval(Dominators.java:132)
[apply] at com.android.dx.ssa.Dominators.run(Dominators.java:213)
[apply] at com.android.dx.ssa.DomFront.run(DomFront.java:84)
[apply] at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:265)
[apply] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:51)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:100)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
[apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
[apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:297)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
[apply] at com.android.dx.command.dexer.Main.access$100(Main.java:56)
[apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:245)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:139)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:120)
[apply] at com.android.dx.command.Main.main(Main.java:87)

BUILD FAILED

Ive tried giving Ant more memory by setting ANT_OPTS="-Xms256m -Xmx512m". (This build machine has 1Gb RAM). Do I just need more memory or is there anything else I can try?

View 4 Replies View Related

Android :: No Generated R Java File In Project

Nov 3, 2010

I am doing the Notepad tutorial, exercise 2. I started by creating a new Android project and chose Create from source to import the downloaded source files for the excercise. But now I get many errors in Eclipse, and the problem is that there is no generated R.java class. How can I solve this? The folder gen / is empty. I have errors on Notepadv2.java and in res/layout/note_edit.xml and both seems to be related to the fact that the generated R.java is missing. Here is my import statements in Notepadv2.java:

import android.R;
import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

They are created by the Eclipse command Ctrl+Shift+O.

View 9 Replies View Related

Android :: Building / Using Runtime Generated Layout XML

Dec 21, 2009

I am currently working on a project which requires me to use an XML document to render a form on an Android device. The form must be fetched and displayed at run-time. I am wondering if there is a way to tag the form XML, transform it using XSLT into an Android layout XML, and then have the device render it.

View 3 Replies View Related

Android :: How To Get Different Package Name For Generated R.Java Class?

Jan 24, 2009

Apt while generating the resources, is it possible to provide a different package name for the generated R.java class. Currently it seems to use the same package name as the one in manfifest defination of AndroidManifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.tejasoft.dialer.mobile.android"> Also, is there a way to give custom class name instead of default R name say Resources.

View 4 Replies View Related

Android :: Why Generated Phone Class Called R?

Sep 1, 2010

I'm just curious, who in the world names a class R ? Is there any history behind this convention?

View 1 Replies View Related

Android :: Attach Temporary - Generated Image To Email?

Aug 25, 2010

I have a programmatically generated image that I want to send as an attachment via the ACTION_SEND and EXTRA_STREAM method. But how do i do this? My first attempt (writing to my context.getCacheDir() based file path) appeared to work in the Gmail preview (no image preview, but attached file name and icon was visible), but the attachment never arrived on the recipient side. I guess this has something to do with permissions on the generated file, but how to avoid this? Do I need to set more permissive settings on these generated files (so that the Gmail activity can access)? Is that even possible for the app's cache folder?

Is there another file location that would be more suitable to write my files to? I considered the downloads folder, but think it would be an awkward location for something that only needs to exist until it has been emailed. I have even tried encoding my image purely in a data:image/png;base64,ABCD... style URI. This, too, showed up in Gmail preview (attachment icon, but no file name), but did not result in a recipient-side attachment. Has anyone been able to attach a one-shot generated image to an email intent by any means? What options may I have overlooked?

View 1 Replies View Related

Android :: GenerateId - Method For Dynamically Generated Views

Aug 30, 2010

Is there (or should there be), a generateId() method for dynamically generated Views? Take the RadioGroup example in APIDemos|App|Views. Radio buttons are added dynamically. For each button, you have to call setId(). To be notified when a radio button is selected, you register a onCheckedChange listener on RadioGroup and the callback method is oncheckedChange(RadioGroup, int checkedId). Since we are notified only the id of the checked view, shouldn't there be a way to uniquely generate the id? Say, a View.generateId() method... In the example, the ids are statically defined in ids.xml. However this limits the number of radio buttons. I have a real world example too: a Radiogroup with each choice representing a Wifi hotspot. So one cannot know in advance the number of hotspots.

View 10 Replies View Related

Android :: Getting Maps To Accept A Dynamically Generated KML File

Mar 18, 2010

I have a button that launches the google maps app on my device via an intent. I want to be able to pass it a php page that generates a KML file.

I have done this on a website before using the googlemaps api in JS - but it doesn't seem to work on Android.

My php file is as follows;

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

Launching with:

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

It launches maps, finds the file - but won't display it 'because it contains errors'.

Is this just not possible, or are there other ways to construct the intent that might work?

View 2 Replies View Related

Android :: FindViewById() - Lost In Auto-generated Errors

Nov 14, 2010

I don't consider myself a beginner, but my copy and pasting has left me lost in auto-generated errors.

Here's my dilemma, if I remove the comments below the program crashes unexpectedly; with comments it displays just fine.

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

View 2 Replies View Related

Android :: Get Id Of Programmatically Generated Grid Of Buttons In Droid?

Jun 28, 2010

I have a similar query to the one posted here. I create a grid consisting of a variable number of buttons, at runtime (in a TableLayout), and would like to find the index of the button pressed. The actual Button objects are currently stored in an array, although I'm not sure if that is really necessary. I tried to write the ClickListener using something along the lines of code...

but this just always returns -1. Is it possible to get the id (or some other reference to the button pressed) without predefining the buttons in xml?

The solution in the other post describes cycling through the whole array of Buttons and comparing ids. Is there a more elegant way to do this?

View 2 Replies View Related

Android : Mediastore Thumbnails Not Generated Until Gallery App Is Launched?

Sep 30, 2009

Is that normal that Images indexed in the MediaStore do not have thumbnails generated until the Gallery app is launched and the user actively navigates to the bucket where the image is stored ?

I think it's quite odd as I thought thulbnails generation was part of media indexing.

View 9 Replies View Related

Android : Prevent Long URL From Breaking In Generated Email?

Mar 28, 2010

I am generating an email in my app in which I include a long URL. The entire URL appears in the email but the clickable link portion of it consists of only the first 90 characters. Why does this happen and how can I prevent it?

View 2 Replies View Related

Android :: Instruct Eclipse And Ant To Have R.java File Generated In Package

Jan 1, 2010

Is it possible to instruct Eclipse and Ant to have a R.java file generated in the package com.example whilst the package declared in an AndroidManifest.xml file is com.example.d?

View 4 Replies View Related

Android :: Specify Package Name And Output Folder From - Generated Ant Build File

Apr 13, 2010

I dont want to hardcode the name of the package or where it lives when building an Android project with ant. Im using the build file generated by Android. What properties contain the output folder (bin) and package name (e.g. package.apk) ?

View 2 Replies View Related

Android :: Creating New Projects In Eclipse - Java File Not Generated

Jun 14, 2009

When I make a new project the .java file is not generated. I can run the project, but it does not run in the emulator or anything. It did use to work before then it stop working. I tried deleting the folder and all project files. After that I reinstalled everything but I am still having problems.

View 3 Replies View Related

Android :: Specify Lib Folder For JARs When Using Droid-generated Ant Build File?

Apr 9, 2010

I'm using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff.

When I run:

ant -lib lib debug

the project builds just fine, but this should really be inside the build file itself. The build file that android generates references the android_rules.xml so a lot of this stuff is automated. I guess my question, what the best practice here when working with the Android build rules ?

View 1 Replies View Related

Android :: Read Contacts Field And Generated V-card And Store Into Database

Feb 26, 2009

I was trying to read all Contacts field one by one and generated a v- card and store it into a database. When I have a huge number of contacts (say more than 150), while reading 155th contacts, I see my application is getting killed and cat log say it because of excessive JNI global refreences. Can anyone pls suggest what is causing the problem and how to solve it. Also, Im not seeing any errors if I have less than 150 contacts............

View 2 Replies View Related

Android :: How To Compile Helloworld In AOSP - Entire Source Code - Apk Generated

Sep 11, 2010

I wanted to run a helloworld application with the AOSP and see it in emulator. [ Not through Android SDK setup] I followed the steps in http://source .android .com/source/download.html and compiled successfully the full code from / directory. I could see contacts.apk, camera.apk all applications apk in ~/mydroid/out/target /product /generic/system/app. tried two things. Went to /package/apps folder. Took a helloworld application( helloworld folder which was created in android-sdk), and copied a 'Android.mk' file from Launcher2 folder, kept my new name for application 'LOCAL_ PACKAGE_NAME := helloworld' and placed the folder in packages/app folder and compiled at /. I couldnt see .apk file created for helloworld in ~/mydroid/out/ target/product/ generic /system/app. 2 - I went to Launcher2 folde /package/apps/Launcher2. I changed the package name for Launcher2 in packages/app folder in 'Android,mk' file and compiled at root. I couldnt see a new apk created on the new packaged name( i gave) under ~/mydroid/out/target/product/generic/system/app. I tried several times with changes in activity names, application names in manifest.xml file. Nothing reflects. But it is sure, both helloworld, and change in package name is getting picked up while compiling. I could see intermediate classes getting created. ~/mydroid/out/target/common/ obj/APPS/manifirst_i ntermediates/src/com/ android/mani --> manifirst is like a helloworld which i created and run. ~/mydroid/out/ target/common/obj /APPS /Launcher2_intermediates /src/com/ android/launcher Could anyone please share the steps of compiling a simple Helloworld program in AOSP

View 16 Replies View Related

Android : Aiming To Create First User Generated Live Driving Map Through Use Of Smartphones

May 12, 2009

My name is Daniel Feldman and I am with the product group of an exciting new startup called Waze.

Waze is aiming to create the first user generated live driving map through the use of Smartphones. Our goal is to empower drivers to create, share and use real-time information (such as Traffic updates or road accidents) straight from their Smartphones. This has been both very popular and efficient in Israel, where we first began.

Waze is currently seeking 100 alpha users in the Bay Area who'll be the first users to participate in building this exciting project. In addition, if you have any other ideas, tips or suggestions, we would love to hear from you.

View 1 Replies View Related

Android : Service Killed Unexpectedly - Phone Doesn't Lock The Notifications Are Generated

Nov 10, 2010

I have an Android service that's responsible for firing notifications at certain points in time. I use an android.OS.CountdownTimer for this. An activity creates and starts the service. If the phone is locked, notifications that are within let's say 1min are shown. Notifications that are much later are never shown. The service is unbound from the activity when the activity is onpause.

As long as the phone doesn't lock the notifications are generated, even if the activity is stopped and unbound from the service.

It seems to me that the service is stopped/killed. When I make the application debuggable and debug it on target, it works fine, also when the activity is stopped and the service is unbound.

The app is developed for v1.5 and runs at Galaxy S with 2.2.

Service is started as shown below

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

View 1 Replies View Related

HTC Droid Eris :: Call Seems To Be Generated By Itself For No Reason

Jan 17, 2010

I have had several calls made from my HTC Droid Eris when I have not made the call. The call seems to generate by itself for no reason. Am I doing something wrong ? Is there a way to lock down the 'call' mode so that it can't just make a call by itself. I know it sounds crazy, but I swear that the phone makes calls by itself.

View 25 Replies View Related







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