[android-developers] GraphicsActivity Problem

2009-11-30 Thread Sasikumar.S
Hi, I like to do this simple graphics oriented program. But i can't able to do this. B'coz i can't able to extend GraphicsActivity Class. I don't know why? Any body know about these? my code is given below /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under

[android-developers] How to open multiple windows?

2009-11-30 Thread Archana
Hi.. How can we open multiple windows in android.I want to open page in different windows so that i can switch from one page to another.Is their anyway other than tab host?If we go to Browser application in android we can see one menu tab containing Windows which open multiple windows.same

[android-developers] Re: API expansion

2009-11-30 Thread raghavendra k
On Nov 27, 12:17 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, can any one tell the expansion of API?... -- Thanks Regards Sasikumar.S Hi, Application Programming Interface. Further reference go through wikipedia

[android-developers] Re: Touch or Click event...with a listView containing a gridView

2009-11-30 Thread Buddy
Ok finally, I found the solution... It is very strange : 1. when you create a gridView and that no adapter is linked, the isfocusableIntouchmode and isfocusable are set to false. 2. when you link the gridView to an adapter, the isfocusableIntouchmode and isfocusable are changed set to true. So

[android-developers] Re: Touch or Click event...with a listView containing a gridView

2009-11-30 Thread Buddy
Ok finally, I found the solution... It is very strange : 1. when you create a gridView and that no adapter is linked, the isfocusableIntouchmode and isfocusable are set to false. 2. when you link the gridView to an adapter, the isfocusableIntouchmode and isfocusable are changed to true. So to

[android-developers] Re: ADT installation on Ubuntu 9.10

2009-11-30 Thread dmtrl...@gmail.com
May be its not correct, but its works... - I just loaded eclipse from official site and just copied all missed jars. And after that installed GEF directly. On 29 ноя, 01:18, Lee Olayvar leeolay...@gmail.com wrote: I had the same problem. I forget what exactly is needed, and where i found the

[android-developers] Re: Playing a audio stream not working using MediaPlayer

2009-11-30 Thread Nugman
First of all the MediaPlayer does not support all music streaming formats, as I understood. I also struggeling with it. For me it is working to play a mp3 file located on a server. Try this first. But it seems that m3u or aac is not supported at all. (Implement a ErrorListener to see the error) I

[android-developers] Is adb opened on android products?

2009-11-30 Thread Wang He
Dear all Is ADB opened on Android Products? any details from HTC series, Moto Droid/CLIQ, Sumsung, LG etc.? Also, from Google's perspective, what is your recommendation to phone manufacturers? Thanks! -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Recording direct system audio??

2009-11-30 Thread DuncanLee
Dear Bytes and all experts, I port one voip app(C code) on android platform and using beagle board. Now, i also have audio problem in play and record at the same time using AudioTrack.cpp and AudioRecord.cpp. I create two threads for audio track and audio record separately. But record path

[android-developers] Adding button to default keyboard

2009-11-30 Thread chris price
Hello, Its is possible to add a new button to the default android keyboard? When its pressed I want to launch my activity. Thanks alot! -- 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] can I get system service in a my personal service?

2009-11-30 Thread Zhihong GUO
Hi all, I got an problem on getting the TelephonyManager in my personal service. The code as below: public class MyService extends Service { @Override public IBinder onBind(Intent intent) { return mBinder; } /** * The implementation of IMyService defined through AIDL. */ public IBinder

Re: [android-developers] can I get system service in a my personal service?

2009-11-30 Thread Wojciech Topolski
Hi 2009/11/30 Zhihong GUO gzhh...@gmail.com Hi all, I got an problem on getting the TelephonyManager in my personal service. The code as below: public class MyService extends Service { @Override public IBinder onBind(Intent intent) { return mBinder; } /** * The implementation

[android-developers] Re: Android Market Anti-Piracy

2009-11-30 Thread LambergaR
implementation = authentication :) On Nov 30, 1:56 pm, LambergaR martin.s...@gmail.com wrote: You could implement an oauth-ish implementation. Basically, that would mean: - user has to register on-line and purchase the application - at the first application run, user is redirected to web

[android-developers] Re: Https client in Android

2009-11-30 Thread JITU
Can you provide some sample code... so that i can test. Regards, jit On Nov 30, 5:43 pm, gjs garyjamessi...@gmail.com wrote: Hi, Yes https is supported, just change your request from http to https. Regards On Nov 30, 3:49 pm, Nithin nithin.war...@gmail.com wrote: Hi, I also want to

[android-developers] Re: SDK 2.0 Auto Dim Control?

2009-11-30 Thread bklik
Thanks for the response Dianne. The issue is driving me crazy. I never thought I would get so much hate mail/comments over a free flashlight application. :-D Brenton On Nov 24, 1:06 pm, Dianne Hackborn hack...@android.com wrote: There is a field in WindowManager.LayoutParams that lets you

[android-developers] Video Player from xml list

2009-11-30 Thread WrVishnu
Hi Does anyone has sample code for Video player with playlist as a xml (all video is from URL) If u have any code sample please share the same I am new to the android development , any lead would be of gr8 help -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] can I get system service in a my personal service?

2009-11-30 Thread Zhihong GUO
Thanks for the reply, I uses the permission as: uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / I had test the code TelephonyManager tel =

[android-developers] Re: Intents for google maps

2009-11-30 Thread Geoffrey Monté
On 29 nov, 19:53, sreekanth nambu nambu.sreeka...@gmail.com wrote: Hi all    I am developing a android project named Smart Google Maps .For my App, I need to use Google Maps Application which is built in with Android SDK 1.6.I need to call google Maps from my App. How could I do that? I

Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-30 Thread Disconnect
Ask copilot how well that worked out for them... On Tue, Nov 24, 2009 at 6:32 AM, Dmitry.Skiba dmitry.sk...@gmail.comwrote: Huh? Regarding (1). That's almost the same as normal pc applications that require online activation. They either get cracked, someone creates a serial number

[android-developers] Re: High performance access on static data: What is your approach?

2009-11-30 Thread Timothy F
A combination of res/raw and java.nio.channels.FileChannel.map() are likely to give you the best performance. If you know your maximum record size, then using get on the Buffer into a byte array, b, then wrapping that in a new DataInputStream(new ByteArrayInputStrea(b)) will make it easy to read.

[android-developers] SensorManager.registerListener gives unexpected results

2009-11-30 Thread TonyDoc
I'm registering a sensor listener with this line of code. mSensorManager.registerListener(this,mSensorManager.getDefaultSensor (Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_FASTEST); The rate is set to SENSOR_DELAY_FASTEST with the expectation that I would receive events roughly every

[android-developers] Re: Android Market Anti-Piracy

2009-11-30 Thread justinh
The amount of return I get from my efforts is already so minuscule there is no way I would spend more time trying to protect myself from piracy which the average user who walks into best buy to grab a phone has no idea how to do. Eagerly waiting for some king of magical Market update that improves

[android-developers] Re: High performance access on static data: What is your approach?

2009-11-30 Thread Marc Reichelt
Hi Timothy, I don't know if this would help a lot. Still the unserialization of the data will take a huge amount of time. I already tested copying the whole file content to RAM, but the time needed to read the data was nearly the same. Regards Marc Reichelt || http://www.marcreichelt.de/

[android-developers] UI window in Camera Preview application

2009-11-30 Thread android-newbie
I posted this last week, but not able to get any reply. Let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions below, hope someone can help me with the answers. 1. When this SurfaceView gets created (I assume via final CameraSurfaceView

[android-developers] Music player with lyrics supporting

2009-11-30 Thread 100town
Hi everybody, My project Music 100 is just uploaded to code.google.com for public testing. Because I don’t know how to show picture here, you can go to http://100town.com/web/public/products/android/music100 for an illustration of what is about. The original idea was just for add lyrics support

[android-developers] scaling a web-page in a WebView element

2009-11-30 Thread pablitoman
Hi, I'm loading a URL into a WebView and I'm having difficulty setting the scale of the web-page. Specifically, the web-page is too big (800x600) for the screen, so my thought is to use setInitialScale(50) to reduce the size xx ATTEMPT # 1 x Here is some sample code

[android-developers] offline access to data

2009-11-30 Thread Wouter
Hey, I am developing an application with TripIt integration and I make a call to their API and I get all my data in JSON format and save it in an object ListTripResponse. This object contains all the data I need over all the application. What I do now, I write this object to a txt file (i

[android-developers] Re: offline access to data

2009-11-30 Thread String
On Nov 30, 4:16 pm, Wouter wouterg...@gmail.com wrote: Isn't there a better way to do this? I cannot save this file in a database because the structure is to complex. Don't save the text file in a database, save the data. This is exactly the sort of problem that databases exist for. I doubt

[android-developers] Fullscreen dialog

2009-11-30 Thread tikky
I have a dialog with a list view in it and am wondering if there is a way in to create a dialog that appears like an activity? i.e. fullscreen and fix size? Is there is any style that can be applied to have this activity-like appearance? -- You received this message because you are subscribed to

[android-developers] Re: Https client in Android

2009-11-30 Thread Charlie Collins
It should be as simple as gjs notes there, assuming you are using HttpClient (the org.apache.http packages). Here are some examples that are a bit older (from Android 1.1 timeframe), but still work and should give you an idea of it:

[android-developers] Re: offline access to data

2009-11-30 Thread Wouter
No sorry I don't use a database. I save the data in a textfile.. I have tried to save it in a database but I'm breaking the heirarchy rather than using it in my advantage, by creating tables for every kind of object. Using a database isn't a option for me, any other suggestions? Wouter On Nov

[android-developers] Re: locator app

2009-11-30 Thread Abhi
Hi, Is there no one who could help me figure this out, please? Thanks, Abhi On Nov 20, 2:51 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi Tom, I am not sure if I understood your previous post right... Abhi On Nov 20, 2:44 pm, Loki117 thomas.sheppar...@gmail.com wrote: Yeah epic

[android-developers] Server/Client runs on device but client timeout on emulator

2009-11-30 Thread Pierre Henry
I have a server socket process running on device. When I run a client socket on the same device it works. When I run the client on emulator it timeouts. What is the reason ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Android Layout Problem

2009-11-30 Thread Bobbie
Anyone able to help me out? -- 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 group, send email to

[android-developers] Top of ImageSpan images getting cut off?

2009-11-30 Thread Eldad
I'm trying to use ImageSpan to add icons to a textview (small graphics, symbols like emoticons, not much taller than normal letters) and whenever I have icons on the top line of text they're getting chopped off at the top. Icons on other lines are fine. It's like the textview, when calculating

Re: [android-developers] Re: How to Track Down Force Closes?

2009-11-30 Thread Wayne Wenthin
I'm thinking of putting flurry in my app. Would it be possible to share your code on how you catch these and trigger flurry? Thanks, Wayne On Thu, Nov 26, 2009 at 5:24 AM, westmeadboy westmead...@yahoo.co.ukwrote: I use a combination of my own default uncaught exception handler and

[android-developers] JNI Call Bridge

2009-11-30 Thread bacchus
Hi everyone, I'm looking for specific information about Android JNI Call Bridge. The one that exists does not suffices my needs. I would like to understand the mappings performed between C/C++ data types and Java data types. As an example, I would like to understand where and how the VMRuntime

[android-developers] Re: Android Market Anti-Piracy

2009-11-30 Thread AlexK
Hi, Today we did check of our sales. And found interesting aspects: 1) 4% of people that install pirated copy after black list discussions and news over internet decide to buy application; This is really good news! 2) after changing protection and converting old versions into honey pots we

Re: [android-developers] can I get system service in a my personal service?

2009-11-30 Thread Dianne Hackborn
Make sure that code is run AFTER onCreate() is called. It isn't clear where it runs, but the Service class is only fully function from onCreate() to onDestroy(); you should not use Context methods like this in the constructr. On Mon, Nov 30, 2009 at 5:14 AM, Zhihong GUO gzhh...@gmail.com wrote:

Re: [android-developers] Re: Recording direct system audio??

2009-11-30 Thread Dianne Hackborn
Your app WILL break, guaranteed, on different platform versions and on different manufacturer's devices. What you are doing is deliberately going around the supporting APIs of the NDK, to use private APIs. Private APIs are private usually because they change, and these particular APIs most

[android-developers] Re: Upgrading database for an app

2009-11-30 Thread Dexter#39;s Brain
Thanks Jeff, Now it's clear to me. -- 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 group, send email to

[android-developers] HTC Eris - OpenGL Extension information

2009-11-30 Thread Ben Gotow
Hey everyone, I need to know what OpenGL extensions are available on the HTC Eris, but I can't find the information anywhere online. The OpenGL ES specs for the Motorola DROID can be found here, along with information about the G1 and the simulator:

[android-developers] Re: Complex Object Collision Detection

2009-11-30 Thread Phred
I've done similar stuff in the past and I've found the best way is to use a multilevel approach. First have each object have a radius such that it can tightly encircle the whole object. Then do a broad range sweep of of collision tests using circle-circle colission tests. This is basically using

[android-developers] Signal strengh of other cellular networks

2009-11-30 Thread Watcher
Hi, I know how to get the Signal Strengh of the cellular network the phone is connected to. What I haven't figured out is whether it is possible to get the signal from other providers than the one currently used by the phone. IE, my phone has an Orange SIM, I know the signal strengh for Orange.

[android-developers] Re: Recording direct system audio??

2009-11-30 Thread Kevin
I am pushing for better audio support in the NDK in Bug 3434. http://code.google.com/p/android/issues/detail?id=3434 Kevin -- 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] How to get the event when the user installing an application.

2009-11-30 Thread Tian Feng
Hi, We want to develop an application blocking feature in our project. Our application (say application A) will block the installation of specified app (say malicious application B). Then we need to know when the application B is in installing process. Is there any APIs about this, or can some

[android-developers] Activity Result in Test Case

2009-11-30 Thread KRD
I have seen this question posted a number of times on this group without any answers. I have a test case and I would like to get the result code and data from the activity under test (InstrumentationTestCase): setResult(RESULT_OK); finish(); Is it possible to get the result? If

[android-developers] Re: How to record the audio from mic in raw pcm format into a buffer, using the native libraries directly?

2009-11-30 Thread Kevin
I am pushing for better audio support in the NDK in Bug 3434. http://code.google.com/p/android/issues/detail?id=3434 Kevin -- 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] Re: Drawing a Camera Preview in a certain area of the screen

2009-11-30 Thread Garfield
The camera drivers only support some preview sizes. In 2.0, you should call getSupportedPreviewSizes to know the valid values and then call setPreviewSize. In 1.6 and before, it's better just to call getPreviewSize to know the preview size instead of changing it. To achieve what you want, you

[android-developers] Re: Android 2.0 camera.setParameters(p) - Picture size must be 213x350?

2009-11-30 Thread Garfield
In 2.0, apps should call getSupportedPictureSizes to get valid picture sizes and then setPictureSize. http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPictureSizes() On Nov 17, 12:28 am, Streets Of Boston flyingdutc...@gmail.com wrote: That's just in

[android-developers] Re: Problems in putting android source in eclipse

2009-11-30 Thread alexis gupta
I am getting the same issue. Has anyone figured out how to fix this? Thanks, Alexis On Oct 21, 7:56 pm, n179911 n179...@gmail.com wrote: Hi, I have followed this instruction to put android source in eclipse. http://source.android.com/using-eclipse But I get this error: The project was

[android-developers] Re: Camera crashes when taking pictures

2009-11-30 Thread Garfield
This looks like a framework bug fixed in 2.0. This bug occurs more often if preview callback is registered. On Nov 9, 5:05 pm, merabi mera...@gmail.com wrote: Hi. im having a trouble getting Android'scamerato work. i started CameraActivity Intent from MapActivity (when i startcamera activity,

[android-developers] Problem with Timer and ImageView (with setImageResource)

2009-11-30 Thread Stam
Joined: 25 Nov 2009 Posts: 4 PostPosted: Mon Nov 30, 2009 1:59 pmPost subject: Timer and ImageView Reply with quote Edit/Delete this post Delete this post Hi all, I have a little problem with a Timer ; here is my code : timer = new Timer(); timer.schedule(new timerLaunch(), 1000);

[android-developers] Android 2.0 source group

2009-11-30 Thread me
Would someone be kind enough to zipup the android 2.0 source code related to the MediaRecorder class and email it to me? My code works fine in the emulator but MediaRecorder.Start() is failing on the droid. There error message only says could not start. Thanks michaelto...@yahoo.com --

Re: [android-developers] Adding button to default keyboard

2009-11-30 Thread bernis Nzouwo
logical or physical button. the keyboard button are predefinied. I think 2009/11/30 chris price chris123pr...@googlemail.com Hello, Its is possible to add a new button to the default android keyboard? When its pressed I want to launch my activity. Thanks alot! -- You received this

[android-developers] Re: Low level audio really needed - too much latency in SoundPool, AudioTrack for more real time stuff

2009-11-30 Thread Kevin
I am pushing for better audio support in the NDK in Bug 3434. http://code.google.com/p/android/issues/detail?id=3434 Kevin -- 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] How to get system preferences without having context

2009-11-30 Thread Mostafa
Hi, I want to get a system preference value in a class, but I don't have the context there, because the class that calls it doesn't have the context either. I've found that for Resources one can use the static Resources.getSystem() function. Is there any similar way for getting system preferences

[android-developers] women cheap air jordans 5 and AF1 wholesaler (paypal accept)www.ebarbiz.comcheap air jordans 3 and AF1 wholesaler (paypal accept)(www.ebarbiz.com)cheap air jordans DMP wholesale

2009-11-30 Thread jane
cheap air jordans wholesaler (paypal accept)www.ebarbiz.com cheap air jordans 1 wholesaler (paypal accept)www.ebarbiz.com cheap air jordans 2 wholesaler (paypal accept)www.ebarbiz.com cheap air jordans 3 wholesaler (paypal accept)www.ebarbiz.com cheap air jordans 4 wholesaler (paypal

[android-developers] Re: surfaceCreated() and CreateSurface() in camera preview application

2009-11-30 Thread Garfield
I don't know all the answers to your question. Here's what I know. 1. If your application only needs to show the preview and does not need to process the preview frame, the app doesn't need to allocate any buffer or register preview callback. The framework/driver will draw the preview for your

[android-developers] Re: Recording direct system audio??

2009-11-30 Thread Kevin
I am pushing for better audio support in the NDK in Bug 3434. http://code.google.com/p/android/issues/detail?id=3434 Kevin -- 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] Javadoc missing in Eclipse for 2.0, API 5

2009-11-30 Thread William Chang
Using tooltip description is not showing the Javadoc in Eclipse by hovering the mouse over the method or pressing F2 on the keyboard. Here is the error: Note: The Javadoc for this element could neither be found in the attached source nor the attached Javadoc. My setup (freshly installed):

Re: [android-developers] Problem with Timer and ImageView (with setImageResource)

2009-11-30 Thread Mark Murphy
Timer uses a background thread. You cannot modify the UI from a background thread, such as changing an ImageView's resource. You will need to use a Handler or something to do the update on the UI thread. I have a little problem with a Timer ; here is my code : timer = new Timer();

[android-developers] Re: Playing a audio stream not working using MediaPlayer

2009-11-30 Thread Jens-Christian Larsen
Thank you Klaus for the response. What you say is also what I have come to understand. I think I will try to download a local copy of the streamed content and play that instead. In any case the MediaPlayer class seem not to be working correctly in most streaming audio cases. I guess I will have to

[android-developers] KML and Google Map Application

2009-11-30 Thread furby
I have a KML file that is being generated on the server side and loaded into the google maps application on Android. The resulting KML file looks like this (Right now it has only one point in it): ?xml version=1.0 encoding=UTF-8? kml xmlns=http://earth.google.com/kml/2.x; PlacemarknameBridgewater

[android-developers] Best way to prevent duplicate Activity

2009-11-30 Thread ian.fawcett.hun...@googlemail.com
I have an Activity which is launched from a Service. This Activity can spawn other children Activities. Now under certain conditions (particularly related to using screen lock), I can end up with the Service starting a second copy of the Activity again. For reasons of performance, the Service is

[android-developers] Re: scaling a web-page in a WebView element

2009-11-30 Thread Maps.Huge.Info (Maps API Guru)
This works for me: (there may be more than you need here) WebView mywebview = (WebView) findViewById(R.id.wv1); mywebview.setWebViewClient(new WebViewClient()); mywebview.setWebViewClient(getWebViewClient());

[android-developers] Re: Best way to prevent duplicate Activity

2009-11-30 Thread schwiz
perhaps a static int variable of the number of active instances that is incremented in on create and decremented in ondestroy? On Nov 30, 12:43 pm, ian.fawcett.hun...@googlemail.com ian.fawcett.hun...@googlemail.com wrote: I have an Activity which is launched from a Service. This Activity can

Re: [android-developers] How to get the event when the user installing an application.

2009-11-30 Thread Dianne Hackborn
Sorry, you can't do this. On Mon, Nov 30, 2009 at 1:25 AM, Tian Feng feng.of.t...@gmail.com wrote: Hi, We want to develop an application blocking feature in our project. Our application (say application A) will block the installation of specified app (say malicious application B). Then we

Re: [android-developers] Re: Android in China - What is going on?

2009-11-30 Thread Hong
China Unicom uses CDMA with a SIM card. None of the current CDMA android phones have a SIM card slot. They don't work in China for now. Maybe on China Telecom, like they made Palm Pre to run on its network (no SIM card). On Sun, Nov 29, 2009 at 10:25 PM, westmeadboy

[android-developers] Can an Activity pause() rather than finish()?

2009-11-30 Thread DulcetTone
I see no means by which my activity can pop itself off the activity stack to return the user to the one he was using before it was invoked. Is there one? My purpose is that my app has some data structures built from data provider queries that take 5-15 seconds to assemble and I don't want a lot

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-30 Thread Jerry Brady
Guys following this issue, I found the ultimate cause of the error and found a workaround that will allow you to work on a Droid. One thing that's helpful is building yourself an Eclair 2.1 SDK so you can use an emulator (2.1) that includes the Accounts Sync settings option we need in working

[android-developers] Re: btsocket connected but read zero bytes

2009-11-30 Thread Sean Liao
We hooked up a BT protocol analyzer to monitor why connection getting dropped right after connection. We are certain it is due to Role Switch. By disable role switch, I have successfully established connection, read and write. The behavior seems not right, and I think there may be a problem on

[android-developers] Re: Best way to prevent duplicate Activity

2009-11-30 Thread ian.fawcett.hun...@googlemail.com
Yea, that does it - thanks. I was thinking I might have missed a means of detecting that the Activity was already on the stack or something clever. BTW: Do we have programmatic access to the Component stack? Ian On Nov 30, 6:56 pm, schwiz sch...@gmail.com wrote: perhaps a static int variable

Re: [android-developers] Re: btsocket connected but read zero bytes

2009-11-30 Thread Nick Pelly
Can you send me the analyzer log? On Mon, Nov 30, 2009 at 11:36 AM, Sean Liao wirelessw...@gmail.com wrote: We hooked up a BT protocol analyzer to monitor why connection getting dropped right after connection.  We are certain it is due to Role Switch.  By disable role switch, I have 

[android-developers] running sqlite3 commands from app?

2009-11-30 Thread dsukhram
When my app loads up I need to import a bunch of records into its database. How do I run the following sqlite3 command from my app? sqlite3.read /data/data/app/files/records.sql -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Best way to prevent duplicate Activity

2009-11-30 Thread ian.fawcett.hun...@googlemail.com
However... This did raise an interesting observation. When I decide that my Activity is duplicated (in onCreate()), and call finish(), onResume() and onDestroy() are then called. I would have expected only onDestroy () :-/ Not a problem, the counter still does its job. Ian Hunter On Nov 30,

Re: [android-developers] running sqlite3 commands from app?

2009-11-30 Thread Dianne Hackborn
Why would you want to do that? Use the SQLite APIs to execute whatever operations you want on the database. On Mon, Nov 30, 2009 at 11:49 AM, dsukhram duanesukh...@gmail.com wrote: When my app loads up I need to import a bunch of records into its database. How do I run the following sqlite3

Re: [android-developers] Can an Activity pause() rather than finish()?

2009-11-30 Thread Dianne Hackborn
Put these data structures in globals that you can retrieve, if they exist, each time the activity starts. You just need to make sure they are not referencing the Activity or its underlying Context objects. On Mon, Nov 30, 2009 at 11:28 AM, DulcetTone dulcett...@gmail.com wrote: I see no means

[android-developers] Re: Can an Activity pause() rather than finish()?

2009-11-30 Thread justinh
If you haven't already read it you should see http://developer.android.com/guide/topics/fundamentals.html#actlife Your activity will always be paused when it isn't in view. Also note in the last paragraph on that page: Because a process running a service is ranked higher than one with background

[android-developers] Re: Fullscreen dialog

2009-11-30 Thread jeffro
I had to specify the ListView height. If you specify in dip then it should scale accordingly for large or small screens. ListView android:id=@+id/dialog_list android:layout_width=fill_parent android:layout_height=200dip

[android-developers] Re: Adding button to default keyboard

2009-11-30 Thread chris price
Hello, Thanks for the reply. Can you explain what you mean by logical or physical button? What I ideally want is a button to be added to the default one Thanks alot for the help CP On Nov 30, 12:13 pm, bernis Nzouwo nzouwo.ber...@gmail.com wrote: logical or physical button. the keyboard

Re: [android-developers] Re: Adding button to default keyboard

2009-11-30 Thread Mark Murphy
Can you explain what you mean by logical or physical button? A logical button would be one on the soft keyboard. You cannot change the pre-defined soft keyboards to add a button to launch your activity from another application. You are welcome to design and implement your own soft keyboard that

[android-developers] ADC2 Results?

2009-11-30 Thread Robert Green
According to their last email, today is the day. Has anyone received news about their ADC2 entry yet? -- 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

[android-developers] Re: running sqlite3 commands from app?

2009-11-30 Thread dsukhram
Well thats the question i'm asking. I've looked at a various classes under the android.database.sqlite package but I can't seem to find one to do what I want. Can you tell me which one I need to use? On Nov 30, 2:57 pm, Dianne Hackborn hack...@android.com wrote: Why would you want to do that?  

[android-developers] Re: JNI Call Bridge

2009-11-30 Thread fadden
On Nov 30, 9:08 am, bacchus aeternal.de...@gmail.com wrote: I'm looking for specific information about Android JNI Call Bridge. The one that exists does not suffices my needs. The JNI call bridge is a bit of code that converts an array of 32- bit values into C-style arguments. It takes into

[android-developers] Re: ADC2 Results?

2009-11-30 Thread justinh
Doing this every 4 minutes today has yielded nothing yet: *refresh email* *refresh official android blog* *refresh this group* *filter google results for Past hour on adc2 search tems* =) On Nov 30, 3:37 pm, Robert Green rbgrn@gmail.com wrote: According to their last email, today is the

[android-developers] Re: ADC2 Results?

2009-11-30 Thread Ravi
So I wasn't the only one :) On Nov 30, 2:44 pm, justinh henderson.jus...@gmail.com wrote: Doing this every 4 minutes today has yielded nothing yet: *refresh email* *refresh official android blog* *refresh this group* *filter google results for Past hour on adc2 search tems* =) On Nov

[android-developers] Re: ddms - allocation tracker - not working

2009-11-30 Thread fadden
On Nov 27, 4:41 am, Vlad Panait vpan...@gmail.com wrote: And now the issue, I need to run Allocation Tracker, I press the tab, and when pressing on the Start Tracking button, that is enabled, it does not do anything. Click Get Allocations. Allocation Tracker records the most recent 512

[android-developers] Re: ADC2 Results?

2009-11-30 Thread dadical
You forgot a twitter adc2 search. On Nov 30, 3:44 pm, justinh henderson.jus...@gmail.com wrote: Doing this every 4 minutes today has yielded nothing yet: *refresh email* *refresh official android blog* *refresh this group* *filter google results for Past hour on adc2 search tems* =) On

[android-developers] scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread Taf
Hi, I was just trying to extend the AbsSpinner Class, to create my own custom widget. But the problem is that some of the member variables have a a default scope, so I can't access them just by extending the class (they can only be access directly by classes in the same package). Some are ok as

Re: [android-developers] Re: running sqlite3 commands from app?

2009-11-30 Thread Dianne Hackborn
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#execSQL(java.lang.String, java.lang.Object[]) On Mon, Nov 30, 2009 at 12:37 PM, dsukhram duanesukh...@gmail.com wrote: Well thats the question i'm asking. I've looked at a various classes under the

Re: [android-developers] Fullscreen dialog

2009-11-30 Thread Dianne Hackborn
Give its constructor a non-dialog theme, such as android.R.style.Theme or android.R.style.Theme_Light. On Mon, Nov 30, 2009 at 8:33 AM, tikky tiku...@gmail.com wrote: I have a dialog with a list view in it and am wondering if there is a way in to create a dialog that appears like an activity?

Re: [android-developers] How to get system preferences without having context

2009-11-30 Thread Dianne Hackborn
Sorry you can't. Most everything goes through Context; you'll need to pass a Context in to your utility methods. On Mon, Nov 30, 2009 at 8:29 AM, Mostafa mostaf...@gmail.com wrote: Hi, I want to get a system preference value in a class, but I don't have the context there, because the class

[android-developers] Re: Debug config not stopping at break points

2009-11-30 Thread fadden
On Nov 25, 8:15 pm, Brad Gies rbg...@gmail.com wrote: Eclipse has a very limited amount of breakpoints allowed. If you're over the limit, some of them are disabled. The Dalvik VM has a limit of 20, so what you're seeing is probably the VM's fault rather than Eclipse's. Should be complaints in

[android-developers] Re: ADC2 Results?

2009-11-30 Thread String
And watching my spam folder like a hawk, considering that's where the last two ADC2 e-mails went. On Nov 30, 8:59 pm, dadical keyes...@gmail.com wrote: You forgot a twitter adc2 search. On Nov 30, 3:44 pm, justinh henderson.jus...@gmail.com wrote: Doing this every 4 minutes today has

Re: [android-developers] Re: ADC2 Results?

2009-11-30 Thread Dan Sherman
Same here :) On Mon, Nov 30, 2009 at 4:16 PM, String sterling.ud...@googlemail.comwrote: And watching my spam folder like a hawk, considering that's where the last two ADC2 e-mails went. On Nov 30, 8:59 pm, dadical keyes...@gmail.com wrote: You forgot a twitter adc2 search. On Nov 30,

[android-developers] Re: ADC2 Results?

2009-11-30 Thread Ravi
Thank you for participating in the Android Developer Challenge 2. The results are in, and unfortunately, your application was not chosen by users and judges as a prize winner. We appreciate your participation and hope that you will upload your application to Android Market for users around

Re: [android-developers] Re: ADC2 Results?

2009-11-30 Thread Dan Sherman
Sorry to hear that man :( Good luck to the rest of you guys... :) - Dan On Mon, Nov 30, 2009 at 4:19 PM, Ravi textlo...@gmail.com wrote: Thank you for participating in the Android Developer Challenge 2. The results are in, and unfortunately, your application was not chosen by users and

[android-developers] Re: ADC2 Results?

2009-11-30 Thread proper
Same + Twitter search for adc2 It's a shame Twitter is down now... On Nov 30, 8:44 pm, justinh henderson.jus...@gmail.com wrote: Doing this every 4 minutes today has yielded nothing yet: *refresh email* *refresh official android blog* *refresh this group* *filter google results for Past

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread Taf
My mistake, there is a getter for mSelectedPosition, still think it would be nice if the scope was protected for this and others , it could then be accessed directly by custom classes that extend base classes such as AbsSpinner, as the Gallery class does.. On Nov 30, 9:01 pm, Taf

  1   2   3   >