[android-developers] Re: How to create SQLite database file

2011-07-13 Thread Ali Chousein
Take a look here: http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Also study one of the samples which come with the SDK installation, which creates an SQLite DB (if you search-in-files for SQLiteOpenHelper you'll find such examples). -- Ali Chousein Ge

[android-developers] Re: Where / How to install Google API for Android 2.2 in Eclipse

2011-07-13 Thread Ali Chousein
In Eclipse choose "Window - Android SDK and AVD Manager". On the window which appears choose "Available packages". Then under the list "Android Repository" you can choose and install any available version of Google API. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.b

[android-developers] alternative call-screen

2011-07-13 Thread sbo
I'm developing an alternative call-screen for Android 2.1. I thought, when I set a call directly in com.android.internal.telephony.ITelephony no android call-screen will appear, but I was wrong. How can I manage to make the default android call-screen disappear? Thanks Flo p.s. I know that com.

[android-developers] SVG in android 3.0

2011-07-13 Thread Shibu S R
Hello, We are going to develop an android application for show a autocad drawing file in svg format in which ecma script is using. We have tested the application in emulator and opened the svg file in webview. our problem is that ecmascript in XML tags are not executed in webview in android. We

[android-developers] Re: imageview

2011-07-13 Thread varun
can you explain your problem more clearly, so that we can help you. as far as i understood u need to place four images in a rectangle shape and when you click on each image you have to replace all the four images with another set of images based on which image has been clicked. if that is the cas

[android-developers] Re: Latin IME Keyboard

2011-07-13 Thread gjs
Hi, What was 'some error...' ? If you have some error it is always better to include log output with the error messages so we can help. Regards On Jul 13, 3:35 pm, saurabh kumar wrote: > Hi android developers, > > Please help me to resolve this problem:- > > 1. I am developing latin IME keyboa

[android-developers] memory leak managing service connection in onResume and onPause

2011-07-13 Thread Bouis, Laurent
Hi, I've identified a memory leak issue managing connection to a service when an activity is quickly created/destroyed (or possibly quickly resumed/pause; at least this is what I am thinking based on testing). I would like some help to understand what is causing this and how to fix it properly.

[android-developers] Re: Permissions Not Working

2011-07-13 Thread Ali Chousein
Strange. Try "Project->Clean" and see if it helps. BTW, are you editing your manifest file inside eclipse or in another editor? You should do everything inside eclipse. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for

[android-developers] ViewAnimator

2011-07-13 Thread Ralph Bergmann
Hello, I use a ViewAnimator to switch between some views. The problem is that the current view does not get an event that it comes to foreground. When I switch between the views how can I tell the current view that it came to foreground? Is there a method to call which calls the onResume method

[android-developers] Re: Very slow start in my application

2011-07-13 Thread gjs
Hi, I'd suggest you do find the culprit not just hide it away. Having found it, consider what parts can be made to work asynchronously with Threads or Async tasks. 5 second startup is close to getting ANR warning message. Usual recommendation is don't do to much processing (more than a second of s

[android-developers] Re: Auto photo capture on specific input

2011-07-13 Thread gjs
Hi, Have a look at the zxing barcode project source code. http://code.google.com/p/zxing/ Regards On Jul 12, 2:25 pm, Friends Friend wrote: > Hi Guys! > > I need Help in developing an app for android. > > the concept is that i want to capture images of ID cards through the > camera. > > What i

Re: [android-developers] Ksoap2

2011-07-13 Thread nageswara rao rajana
Hello friend Ksoap is android specific, using this jar files you can web services(Soap) which were developed on java Or .Net. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegrou

[android-developers] Re: Sony Ericsson EDK for Timescape

2011-07-13 Thread Johan Abramsson
Hi Android Developers, The second version of the Sony Ericsson EDK has been released today. The news is that you can now create extension applications for the Musicplayer on Sony Ericsson Android phones as well. Or to be more exact – application that can hook in to the infinite key of the music pla

[android-developers] Re: Alarm list

2011-07-13 Thread Satya
thanks for replying yes am referring to AlarmManager is there any way where i can stored this in my app? On Jul 13, 10:03 am, TreKing wrote: > On Tue, Jul 12, 2011 at 10:51 PM, Satya wrote: > > Can any one tell me how to get all previously set alarm list. > > If you're referring to the alarms se

Re: [android-developers] Lock screen

2011-07-13 Thread mayank k varshney
yes it is possible check Power manager class On Tue, Jul 12, 2011 at 9:55 AM, yoav bbb wrote: > Hello, > > Is it possible to change the default lock screen and use one of my > own? with another way to unlock it? > > Yoav > > -- > You received this message because you are subscribed to the Google

Re: [android-developers] GOOGLE API (8) for Android 2.2

2011-07-13 Thread mayank k varshney
make the update from eclipse: eclipse->windows tab->android sdk and avd manager0->install packages-> update all help->install new software->adt - https://dl-ssl.google.com/android/eclipse/->check for developer tools-> next and u will get all the further steps On Tue, Jul 12, 2011 at 8:40 AM, new

Re: [android-developers] Android Widget onActive()

2011-07-13 Thread Mark Murphy
On Tue, Jul 12, 2011 at 4:46 PM, cathal coffey wrote: > I've created a Widget and I would like to do something every time it > is on screen. > By on screen, I mean if the user moves to a screen that contains this > widget. I want it to fire something like the below function. > > @override > public

Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread Shruthi Varma
But we can't create ArrayList at runtime right. I am not able to find a different approach too. :( Regards, Shruthi. On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan wrote: > You can try ArrayList data structure... > > On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma > wrote: > >> Hi Al

Re: [android-developers] API for processing/manipulating speech from telephone

2011-07-13 Thread Mark Murphy
There are no such APIs, sorry. On Tue, Jul 12, 2011 at 4:50 PM, d.d.jones wrote: > I'd like to create an Android application which runs during a phone > call and manipulates voice input from the caller on the "other end" of > the call, for example prompting the person on the other end to speak >

[android-developers] Using GSM Cell Location?

2011-07-13 Thread DanielSchH
Hello, I´m working on a app which needs a location. I ran into some problems, that there are even no lastKnownPositions in the LocationProviders. On the one hand, I have read something, that there is a way to get the location from the GSM-Cell by sending the cell-id to a WS. On the other hand, I h

Re: [android-developers] How to multi select the GridView Item?

2011-07-13 Thread Mark Murphy
On Tue, Jul 12, 2011 at 12:07 AM, Vinit Sharma wrote: > I have been Googling and stackflowing since last week but i am not > able to find the way that how can i select multiple images in gridview > as my application needs gridview not listview. There is no multi-select concept built into GridView

Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread Mark Murphy
new ArrayList() On Wed, Jul 13, 2011 at 6:20 AM, Shruthi Varma wrote: > But we can't create ArrayList at runtime right. > > I am not able to find a different approach too. > :( > > Regards, > Shruthi. > > > > On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan < > r.durgad...@gmail.com> wrote:

[android-developers] No projects are found to import in Eclipse

2011-07-13 Thread Perumss Naren
HI , I can't open the sample projects in *android-sdk_r11-windows* it shows "*No projects are found to import*" what i did : * File-> import->Existing project into workspace->next-> * then i Browse the sample projects from android-sdk_r11-windows -> samples ->

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread arun kumar
check www.developer.android.com for sample projects. On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote: > HI , > >I can't open the sample projects in *android-sdk_r11-windows* it > shows "*No projects are found to import*" > > what i did : > > * File-> import->Existing projec

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread vijayakumar M
check your workspace ... i think manifest file missing.. On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote: > HI , > >I can't open the sample projects in *android-sdk_r11-windows* it > shows "*No projects are found to import*" > > what i did : > > * File-> import->Existing pr

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread Perumss Naren
Hi, Sorry you not get my point.. "*No projects are found to import" *projects is there but i could not open that project Regards, Perumal.N On Wed, Jul 13, 2011 at 4:35 PM, arun kumar wrote: > check www.developer.android.com for sample projects. > > On Wed, Jul 13, 2011 at 4:22 PM, Perum

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread Perumss Naren
Hi , Thanks for your time i have manifest file even i have this issue Regard, Perumal.N On Wed, Jul 13, 2011 at 4:39 PM, vijayakumar M wrote: > check your workspace ... i think manifest file missing.. > > On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote: > >> HI , >> >>I can't

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread arun kumar
you not import project by click import menu you goto file->new->android project->create project from existing resource and give exact path its perfectly open. On Wed, Jul 13, 2011 at 4:41 PM, Perumss Naren wrote: > Hi, > > Sorry you not get my point.. "*No projects are found to import" >

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread A N K ! T
Create new project from existing source... then it will work fine... On Wed, Jul 13, 2011 at 4:46 PM, arun kumar wrote: > you not import project by click import menu you goto file->new->android > project->create project from existing resource and give exact path its > perfectly open. > > > On We

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread Perumss Naren
Hi, Thanks for you time and now working for me Regards, Perumal.N On Wed, Jul 13, 2011 at 4:46 PM, arun kumar wrote: > you not import project by click import menu you goto file->new->android > project->create project from existing resource and give exact path its > perfectly open. > >

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread NaveenShrivastva
On Wed, Jul 13, 2011 at 5:35 PM, Perumss Naren wrote: > Hi, > >Thanks for you time and now working for me > > Regards, > Perumal.N > > > > On Wed, Jul 13, 2011 at 4:46 PM, arun kumar wrote: > >> you not import project by click import menu you goto file->new->android >> project->create pro

[android-developers] Drag and Drop funcationality on list

2011-07-13 Thread N K Shrivastva
Hello Android Developers, i want to Drag and drop functionality on list. Here i donot want to extend listActivity. i want access Drag and drop functionality using extend activity class with list id . ListView lv1=(ListView)findviewById(---) Please help me, i am getting lot of sample regard

[android-developers] How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Tapomay Dey
I want to create a custom AdapterView/ViewGroup. Its DataAdapter/ childViews consists of elements that act as keys for a data filter. This custom view is associated with another dataAdapter-adapterview combo that holds the data to be filtered (based on what user selects in the custom filter view).

[android-developers] Running Camera app from source has bad menu layout

2011-07-13 Thread Rich E
Hi all, I have been trying to work with the Camera app from git and when I run it without _any_ modifications to the code, the menu fonts are wrong and the menu frame is drawn funky. Here are some screenshots of what I mean: http://dl.dropbox.com/u/3905723/android_debug/camera_app_big_font_1.png

[android-developers] Re: How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Tapomay Dey
Following could be a solution: In the setter method for layout resourceID, inflate the layout and add it as child to the "this" View object. Is this a clean approach? Regards, Tapomay. On Jul 13, 5:26 pm, Tapomay Dey wrote: > I want to create a custom AdapterView/ViewGroup. Its DataAdapter/ > ch

[android-developers] Program to generate MD5 hash for apk

2011-07-13 Thread rashmi
Hi, Please let me know how to create a MD5 hash for an apk programmatically. I want to compare the MD5 hash in the certificate and the generated MD5 hash. There are some commands which can be executed from command prompt to generate MD5 hash for an apk. But how do I will generate it through program

Re: [android-developers] Program to generate MD5 hash for apk

2011-07-13 Thread Nikolay Elenkov
On Wed, Jul 13, 2011 at 9:49 PM, rashmi wrote: > Hi, > Please let me know how to create a MD5 hash for an apk > programmatically. I want to compare the MD5 hash in the certificate > and the generated MD5 hash. There are some commands which can be > executed from command prompt to generate MD5 hash

[android-developers] Application update emulator

2011-07-13 Thread Gopu
Hi , How to emulatate a application upgrade without upgrading the full firmware .Eg .upgrading from froyo to GB. Is "abd install -r " is equal to application upgrade? . Please provide some info about this. Thanks Gopu -- You received this message because you are subscribed to the Google Grou

Re: [android-developers] Re: How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Kostya Vasilyev
Yeah, why not? Presumably, you have some logic in the code that knows the type of UI it's building. Add a ViewGroup to your layout with a known id, and have the code inflate the actual layout, then add it to the view group. Another option is to use ViewStubs in the parent layout, and call

[android-developers] Calendar view i want highlight multiple specific date in adnroid?

2011-07-13 Thread vijayakumar M
hi, i have calendar in gridview i want highlight particular list of dates. how can i achieve this one? please anybody helpme.. -- "Nobody can go back and start a new beginning, but anyone can start today and make a new ending" - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.b

[android-developers] Re: apk sent

2011-07-13 Thread bob
This app lets you do it https://market.android.com/details?id=it.medieval.blueftp&feature=search_result Is good. On Jul 13, 12:47 am, Dalton Metzler wrote: > send it to your email instead > > On Jul 12, 10:44 pm, bob wrote: > > > > > > > > > I sent an APK file to my phone using Bluetooth. > >

[android-developers] how to setup Android Environment in Windows

2011-07-13 Thread Perumss Naren
Hi, Did any one having *Android Environment setup document* (no need link of http://developer.android.com/sdk/installing.html ) I need a document please help me and send document using that *any one can install Android Environment setup *like a prototype Thanks and Regards, Peruma

Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread Shruthi Varma
Hi, You didn't get my point. After parsing that xml, I will get a number of magazines (images). I have to store all the images of each magazine in a separate ArrayList. If I know in advance that I will get 3 magazines, I can initialize 3 ArrayList and store images in it as you said. But the nu

[android-developers] TabActivity & ViewFlipper - Orientation change

2011-07-13 Thread Y
Hello all! I'm developing an app on 2.2 in which I have 6 tabs. I have one activity for each tab. My first Tab has a SafeViewFlipper which works fine. However, I'm facing two problems. 1. The contents of the first tab are visible in all other tabs. Any ideas why? 2. When I rotate the device(Gala

Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread Justin Anderson
You are getting arrays and ArrayList mixed up... ArrayList is dynamic and you can modify it at runtime. http://developer.android.com/reference/java/util/ArrayList.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jul 13, 2011 at 8:00 AM, Shruthi

[android-developers] Re: How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Tapomay Dey
Thanks for the ViewStub approach. On Jul 13, 6:08 pm, Kostya Vasilyev wrote: > Yeah, why not? > > Presumably, you have some logic in the code that knows the type of UI > it's building. > > Add a ViewGroup to your layout with a known id, and have the code > inflate the actual layout, then add it t

Re: [android-developers] Re: Alarm list

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 3:57 AM, Satya wrote: > yes am referring to AlarmManager is there any way where i can stored this > in my app? > I suppose you are free to track the alarms you've set on the AlarmManager. Why purpose this would serve, I don't know. ---

[android-developers] Re: Error: Failed to generate emma coverage.

2011-07-13 Thread Diego Torres Milano
You build is probably not instrumented and thus why coverage information is not generated. Chapter 10 of Android Application Testing Guide (http:// www.packtpub.com/android-application-testing-guide/book) includes a step-by-step guide of getting your build instrumented and generating code coverage.

Re: [android-developers] How to run code on the quarter hour?

2011-07-13 Thread Fred Niggle
Yes, alarmmanager is the way to go, but i cant find a way to make it fire *on* the quarter hour. I can get it to fire off 15 minutes after the code starts (i.e. at 12:08, but not at 12.15,12.30,12.45, etc) I know im missing something here... coders block i guess :-( On 13/07/2011, Mark Murphy wr

Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread A N K ! T
@ shruthi as Durgadoss gave u clear example. u can add any number of item at run time. with specifying it. go through documentation of ArrayList -- Regards, Ankit On Wed, Jul 13, 2011 at 7:34 PM, Justin Anderson wrote: > You are getting arrays and ArrayList mixed up... ArrayList is dynamic and

Re: [android-developers] Re: apk sent

2011-07-13 Thread Raghav Sood
Use a file manager to go to the bluetooth folder on the sdcard.It will be there in misc (android 2.2). On Wed, Jul 13, 2011 at 7:02 PM, bob wrote: > This app lets you do it > > > https://market.android.com/details?id=it.medieval.blueftp&feature=search_result > > Is good. > > On Jul 13, 12:47 am,

Re: [android-developers] How to run code on the quarter hour?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 10:43 AM, Fred Niggle wrote: > Yes, alarmmanager is the way to go, but i cant find a way to make it > fire *on* the quarter hour. > > I can get it to fire off 15 minutes after the code starts (i.e. at > 12:08, but not at 12.15,12.30,12.45, etc) > > I know im missing somethi

[android-developers] Unknown Camera-GPS Issue

2011-07-13 Thread Bryan Glick
I am working on an augmented reality-type application. I noticed an issue with GPS not updating as expected. I have put a counter on-screen so that I can keep track of how often onLocationChanged is being called. The GPS receives lock ok, and begins calling onLocationChanged. After some time (less

Re: [android-developers] potential bug in Gooole Analytics Android SDK

2011-07-13 Thread TreKing
On Tue, Jul 12, 2011 at 4:29 AM, chen wrote: > any suggestions? Post your code? - TreKing - Chicago transit tracking app for Android-powered devi

Re: [android-developers] How to run code on the quarter hour?

2011-07-13 Thread Fred Niggle
Many thanks for your time Mark, its very appreciated. That was just the nudge I needed. On 13/07/2011, Mark Murphy wrote: > On Wed, Jul 13, 2011 at 10:43 AM, Fred Niggle > wrote: >> Yes, alarmmanager is the way to go, but i cant find a way to make it >> fire *on* the quarter hour. >> >> I can ge

[android-developers] App behaves wired after the task is killed by a TaskKiller

2011-07-13 Thread dillipk
Hello, My app have some issues after being killed by Task Killer. Sequence: - - Run the app - Press HOME key - Kill all the tasks by TaskKiller - Again run the app.. At this point, instead of starting the App gracefully(by starting the first screen which is a splash screen), it directly go to

Re: [android-developers] ZoomImage

2011-07-13 Thread TreKing
On Tue, Jul 12, 2011 at 4:29 AM, kurnia niakk wrote: > please help me to make an image zoom using zoombutton.. Please help us help you: http://www.catb.org/~esr/faqs/smart-questions.html - TreKi

[android-developers] strange camera preview image buffer wrapping problem

2011-07-13 Thread Qianqian Fang
hi I found a strange problem when processing the preview images grabbed from my Epic 4G phone camera (android 2.2.1). The image data were captured in a callback set up by setPreviewCallbackWithBuffer(). The pixelformat of the image were set to RGB565. For each callback, I simply dump the raw dat

Re: [android-developers] Calendar view i want highlight multiple specific date in adnroid?

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 8:20 AM, vijayakumar M wrote: > i have calendar in gridview i want highlight particular list of dates. how > can i achieve this one? Write code to do that. Do you have something a little more specific you're having trouble with? http://www.catb.org/~esr/faqs/smart-questi

[android-developers] building signed APK fast

2011-07-13 Thread bob
Is there any easy way I can build a signed APK without entering my password twice? I've been e-mailing my phone APK files but having to enter passwords is slowing me down. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

Re: [android-developers] building signed APK fast

2011-07-13 Thread Nikolay Elenkov
Use Ant for your builds. You can then have the password in a properties file and build with a single comand. On Jul 14, 2011 1:44 AM, "bob" wrote: > Is there any easy way I can build a signed APK without entering my > password twice? > > I've been e-mailing my phone APK files but having to enter

Re: [android-developers] building signed APK fast

2011-07-13 Thread Fred Niggle
Short answer is yes. You can use ANT, more details can be found http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html On 13/07/2011, bob wrote: > Is there any easy way I can build a signed APK without entering my > password twice? > > I've been e-mailing my phone APK

[android-developers] Re: Installing APK + DB

2011-07-13 Thread hectordu...@yahoo.com
hi guys, thanks for comments, i've strongly reduced the size of my DB :-) and thigs are better now! btw, 1 . I am working in improving the activity lifecycle and i am getting also a message like " appl is not responding, force quit OR WAIT". by typing WAIT the process continues ... is there a ti

[android-developers] Re: How to create Dynamic Arrays?

2011-07-13 Thread Indicator Veritatis
Not only should he go through the documentation for ArrayList, but the Collections Tutorial at http://download.oracle.com/javase/tutorial/collections/TOC.html. For it is clear that this is a Java question, not an Android question, and one well dealt with by the Tutorial Trail on Collections. On J

Re: [android-developers] App behaves wired after the task is killed by a TaskKiller

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 12:22 PM, dillipk wrote: > Can my app listen to any event, when it is killed by a TaskKiller..? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training i

[android-developers] Re: Strange emulator behaviour after installing 3.1 rev 2

2011-07-13 Thread jtoolsdev
Just a follow up but on the discussion group I was informed by Android support that it is a known issue with the new emulator. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegr

[android-developers] How can I find how many home screens?

2011-07-13 Thread Hal Harrison
My about-to-be-released live wallpaper app works well if I know the number of home screens. I observe that the 2.1 emulator has three and 2.2 and later have five. I can distinguish between them with Build.VERSION myvbld = new Build.VERSION(); if(myvbld.RELEASE.conta

[android-developers] "Can not identify source of the application" WARNING message upon install

2011-07-13 Thread James.sense.C
Hello, I have tried searching for this warning in some forums and straight-up on Google, but haven't found a hit that will resolve my issue yet. I have successfully exported and signed (with own private key) my app / apk, but when I install on my device (Samsung Galaxy series equivalent) I get:

Re: [android-developers] How can I find how many home screens?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 4:02 PM, Hal Harrison wrote: > My about-to-be-released live wallpaper app works well if I know the > number of home screens. I  observe that the 2.1 emulator has three and > 2.2 and later have five. I can distinguish between them with >                Build.VERSION myvbld =

[android-developers] Re: Accessing local data in a bound service

2011-07-13 Thread Ab Caballero
Thanks, Mark. My onServiceConnected() code looks like this: public void onServiceConnected(ComponentName className, IBinder service) { Log.i("INFO", "Service bound "); mBoundService = ((MainService.LocalBinder)service).getService(); } I'm assuming that the binder is mBoundService, which i

[android-developers] alert dialog with refreshable listview

2011-07-13 Thread kamiseq
hej, I want to create a simple AlertDialog with ListView. the list contains all entries in my local db, so in onCreateDialog I created alert builder and added items to it with onItemClick callback. AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.recorded_list

Re: [android-developers] Re: Accessing local data in a bound service

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 4:36 PM, Ab Caballero wrote: > My onServiceConnected() code looks like this: > > public void onServiceConnected(ComponentName className, IBinder > service) { > >  Log.i("INFO", "Service bound "); >    mBoundService = ((MainService.LocalBinder)service).getService(); > > } >

Re: [android-developers] alert dialog with refreshable listview

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 3:53 PM, kamiseq wrote: > but then I realized that list will change any time user adds entry to db. > so I added onPrepareDialog. > What I do is use http://developer.android.com/reference/android/app/Activity.html#removeDialog(int) after the dialog is used so it's forced

[android-developers] SurfaceView#setZOrderMediaOverlay(true) not working as expected

2011-07-13 Thread Shri
I have a small screen camera preview being shown on top of a larger video (see layout at the end). I use SurfaceView#setZOrderMediaOverlay(true) on the small camera preview, and this works most of the time. However, occasionally, the camera preview is not fully displayed. Only the part of it not bl

[android-developers] Re: Accessing local data in a bound service

2011-07-13 Thread Ab Caballero
Thank, Mark! I chose the latter as the name of method as it seemed appropriate. /Ab On Jul 13, 1:54 pm, Mark Murphy wrote: > On Wed, Jul 13, 2011 at 4:36 PM, Ab Caballero wrote: > > My onServiceConnected() code looks like this: > > > public void onServiceConnected(ComponentName className, IBin

[android-developers] Re: "Can not identify source of the application" WARNING message upon install

2011-07-13 Thread Peter Sinnott
Do you have unknown sources ticked in applications settings? On Jul 13, 8:59 pm, "James.sense.C" wrote: > Hello, > > I have tried searching for this warning in some forums and straight-up > on Google, but haven't found a hit that will resolve my issue yet. > > I have successfully exported and si

[android-developers] Re: alert dialog with refreshable listview

2011-07-13 Thread kamiseq
I think this is the stupidest thing in android there should be a model that could be easily invalidated :/ thanks Ill use that for now any other tips highly appreciated ;] -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: alert dialog with refreshable listview

2011-07-13 Thread kamiseq
OK but still I cannot use the default adapter as I need map selected item index to entry id! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this g

[android-developers] unable to use USB if ADB on tcp port?

2011-07-13 Thread Allen Curtis
Hello, Is it possible to use the USB port for other purposes if ADB is running? ADB has been reconfigured to operate over Wifi. I have successfully connected to the TCP port . When I try to load the USB ethernet gadget driver, I get device busy. (modprobe g_ether) We need to use the USB

[android-developers] Re: read image as text

2011-07-13 Thread nadam
perhaps this one http://sourceforge.net/projects/javaocr On 12 Juli, 11:48, Lwe wrote: > how to read image as text -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] How come extending ListActivity results in a crash

2011-07-13 Thread Steven Bruce
I have changed my Bluetooth class from extends Activity to extends ListActivity. Now everytime I run the program BOOM!! It bombs out! What the hell is going on?? Steve -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

Re: [android-developers] How come extending ListActivity results in a crash

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 5:54 PM, Steven Bruce wrote: > I have changed my Bluetooth class from extends Activity to extends > ListActivity. Now everytime I run the program BOOM!! It bombs out! Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace

[android-developers] Re: Sent SMS doesn't show up in the messaging app?

2011-07-13 Thread Erik
All messaging apps use the Telephony content provider to store messages. So you could insert() a message into the content://sms/ provider. It's not simple, you'll probably need to read through the code of the open source messaging app to figure out how to format the message. -- You received th

Re: [android-developers] Re: Sent SMS doesn't show up in the messaging app?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 6:44 PM, Erik wrote: > All messaging apps use the Telephony content provider to store messages. And your proof of this is... what, exactly? Please cite the study where somebody has examined each and every "messaging app" to determine that they all use a content provider t

[android-developers] Re: Streaming Wav Audio Error: MediaPlayer Prepare failed status=0x1

2011-07-13 Thread b0b
The sad truth is that you can't expect WAV http streaming to work on all phones. Some may work but not others. MediaPlayer is very limited for audio http streaming and has all kind of issues. AAC and MP3 kind of works (with issues) and that's it. It's so bad that most apps serious about http stream

[android-developers] SQLite, CursorWindow, large datasets

2011-07-13 Thread goosedroid
I'm trying to find detailed information on how SQLiteCursor manages large sets of data. I've read through the code but it isn't clear to me. Does anyone have any in-depth information on how exactly SQLiteCursor behaves when working with a large resultset or one that would not typically fit in memo

[android-developers] question about ExpandableListView and a large string array

2011-07-13 Thread Jim Graham
I have a string array containing, at present, 286 entries, all of which have matching entries (same int index in the other arrays) that contain data relative to the first. In other words, position 1 in the first, has data in position 1 of the other arrays, and so on. These are all split up by bra

Re: [android-developers] Re: Sent SMS doesn't show up in the messaging app?

2011-07-13 Thread Erik
On Wednesday, July 13, 2011 3:49:31 PM UTC-7, Mark Murphy (a Commons Guy) wrote: > > And your proof of this is... what, exactly? Well, the messaging app my company wrote uses the Telephony content provider. Handcent SMS uses it, as does GO SMS. I'm guessing all the SMS backup apps out there ba

[android-developers] Re: How can I find how many home screens?

2011-07-13 Thread Hal Harrison
> No, sorry. I can envision a home screen implementation with infinite > "home screens". Thanks, Mark, for the reply. I was afraid of that and am looking at my problem again. What about this? Occasionally onOffsetsChanged() gives an xStep of 0.0 or -1.0. Otherwise it consistently gives 0.5 (emul

[android-developers] Re: BitmapFactory and RGB Formats

2011-07-13 Thread David Turner
Not NDK related, please try android-developers On Wed, Jul 13, 2011 at 11:38 AM, Андрей Жданов wrote: > Hello everyone! :) I've found next problem. I've convert image resource > with: > > > BitmapFactory.Options o = new BitmapFactory.Options(); > o.inPreferredConfig = Bitmap.Config.RGB_5

[android-developers] Re: Application update emulator

2011-07-13 Thread Hal Harrison
> Is "abd install -r " is equal to application upgrade? . I don't yet have an app in release, but with the emulators the abd install -r from a command line while the emulator is running usually works well to replace my *.apk without touching anything else on the emulator. With emulator 2.1 this re

Re: [android-developers] Re: How can I find how many home screens?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 7:44 PM, Hal Harrison wrote: > Occasionally onOffsetsChanged() gives an xStep of 0.0 or -1.0. > Otherwise it consistently gives 0.5 (emulator 2.1 with three home > screens) or 0.25 (emulator 2.2 with five home screens). Therefore, I > assume: > > (1 / xStep) + 1 = number of

Re: [android-developers] Re: How can I find how many home screens?

2011-07-13 Thread Dianne Hackborn
This is part of the information in onOffsetsChanged(), give by the step size. Sorry for the lacking documentation there; you can get more information about their meaning from here: http://developer.android.com/reference/android/app/WallpaperManager.html#setWallpaperOffsetSteps(float, float) On W

Re: [android-developers] App behaves wired after the task is killed by a TaskKiller

2011-07-13 Thread Dianne Hackborn
A task killer doesn't do anything more than the platform would when it needs to kill your process when it is in the background. You just need to deal with this case. On Wed, Jul 13, 2011 at 9:22 AM, dillipk wrote: > Hello, > My app have some issues after being killed by Task Killer. > > Seque

[android-developers] Tomcat + Connectify + Android mobile

2011-07-13 Thread Sergio Michels
Hi all! I'm trying to run one app that is installed on my notebook in my android smartphone. To connect the devices I use Connectify. The note and the android have ip address. From my note I can ping the mobile, but from mobile I can't access the app. Also, from the note I can access the app wit

[android-developers] Re: "Can not identify source of the application" WARNING message upon install

2011-07-13 Thread James.sense.C
Thank you for your reply - I do have ''Unknown Sources' ticked and can install other 3rd party applications (not through Android Market) on my phone. If I untick this setting, the device will not allow installation at all. I have tried across multiple devices, which also allow installation. Promp

[android-developers] Fading views after interaction stops for a time...

2011-07-13 Thread Neal Sanche
Hi All, I have a set of requirements that I'm not sure how to solve with Android. 1) Initially show a set of views to the user. 2) After something happens in the app, set a timer for a few seconds and fade the views so they are invisible. 3) If the user single taps on the application, fade the vi

[android-developers] Re: ANDROID_ID always null on devices

2011-07-13 Thread Shereef Marzouk
the whole idea behind using the Android_ID is not having to set a permission read phone state it defeats the purpose Rampanda -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegro

[android-developers] Re: Fading views after interaction stops for a time...

2011-07-13 Thread Neal Sanche
> So, my deep questions are: Is there a way to intercept the flow of > messages to an activity at a lower layer than the touch events? If > not, is there a way to intercept all of the touch events for a given > view heirarchy so I can know for sure if the user is currently > interacting with someth

[android-developers] Re: SQLite, CursorWindow, large datasets

2011-07-13 Thread Zsolt Vasvari
There is some sort of fixed maximum size to the dataset. When I hit it, moving the Cursor backwards in the data set becomes unusable. It still works, but just unbearably slowly. Forward movement in the dataset is no problem still. That said, I've never ran into an issue where it would give an a

  1   2   >