[android-developers] Creating public files

2014-04-08 Thread info.sktechnol...@gmail.com
I have been away from developing for a while and have lost track of the changes that have been made in file access rules. It used to be that the WRITE_EXTERNAL_STORAGE permission gave full access to create public files. When my Note 3 was updated to KitKat my app lost the ability to write to

[android-developers] Passing data with PendingIntent

2010-06-28 Thread info.sktechnol...@gmail.com
I would like to create some home screen app widgets that are entry points into an application. I can put a button in the app widget that uses setOnClickPendingIntent to start the activity. The problem occurs when I want to have two of these app widgets that are entry points to different parts of

[android-developers] Strange Media Player Behavior on EVO

2010-06-09 Thread info.sktechnol...@gmail.com
I create a media player for playing an audio file. After it plays for a while I pause it. I then seek to a position 5 seconds earlier (the new position) than the current position (the old position). I immediately call getCurrentPosition and it returns the correct new position. I have an

[android-developers] How to tell if headphones are plugged in

2010-06-08 Thread info.sktechnol...@gmail.com
I need to know whether headphones are plugged in and receiving my audio stream. I have tried using isWiredHeadsetOn from the AudioManager, but this seems to always return false, even when I am hearing audio through the headphones. I have only tried this on my EVO. Any suggestions? -- You

[android-developers] Re: How to tell if headphones are plugged in

2010-06-08 Thread info.sktechnol...@gmail.com
or not. On Tue, Jun 8, 2010 at 9:56 PM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: I need to know whether headphones are plugged in and receiving my audio stream.  I have tried using isWiredHeadsetOn from the AudioManager, but this seems to always return false, even when I

[android-developers] Scroll to content position in WebView

2009-10-12 Thread info.sktechnol...@gmail.com
I have a WebView which has been loaded with local content using loadData(String data, String mimeType, String encoding). I want this to initially display with a given substring of the first parameter visible. This is, I want to scroll to a position given the content at that position. If

[android-developers] Intercepting bluetooth device buttons

2009-07-02 Thread info.sktechnol...@gmail.com
Could someone point me to the documentation or example on how my application can intercept button pushes on an already paired and connected bluetooth device? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] SDK 1.5 and multiple projects in an application

2009-04-14 Thread info.sktechnol...@gmail.com
I have an application with 2 projects. Works fine in SDK1.1 and compliles fine in SDK 1.5. I am still using the 1.1 target. But when I try to run it on the emulator in 1.5 it crashes. Logcat indicates that it cannot find the classes of the second project. Is there something special I need to

[android-developers] Re: How to set the texts in one textview to be different colors?

2009-02-17 Thread info.sktechnol...@gmail.com
http://code.google.com/android/kb/commontasks.html#selectingtext On Feb 16, 11:08 pm, zcj0429 zcj0...@gmail.com wrote: Hello, everyone:     How to set the color of texts which are in the same textview to be different? I'm now developing a simple IM, so I need to show the message. But I want

[android-developers] Re: How to force MediaStore to rescan the SD card

2009-02-17 Thread info.sktechnol...@gmail.com
a client to scan a directory. Michael On Feb 14, 7:05 am, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: If I progammatically store new media files on the SD card, the MediaStore does not know about them until I remove and reinsert the SD card.  Is there a way to tell

[android-developers] How to force MediaStore to rescan the SD card

2009-02-14 Thread info.sktechnol...@gmail.com
If I progammatically store new media files on the SD card, the MediaStore does not know about them until I remove and reinsert the SD card. Is there a way to tell the MediaStore to rescan the SD card without first unmounting the SD card? --~--~-~--~~~---~--~~ You

[android-developers] Creating a service using eclipse

2009-02-03 Thread info.sktechnol...@gmail.com
Can someone point me to info on how to create an Android service (that uses IPC) using eclipse? Thanks --~--~-~--~~~---~--~~ 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] Finding the data directory of an application

2009-01-29 Thread info.sktechnol...@gmail.com
Is there a preferred way to find the data directory of an application, other than starting with android.os.Environment.getDataDirectory() and appending /data/ and the package name? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to capture ACTION_MOVE MotionEvents in a view

2009-01-27 Thread info.sktechnol...@gmail.com
If I setOnTouchListener for a view the only events I get are ACTION_DOWN events. What do I need to do to capture ACTION_MOVE events which should occur when the user drags a finger across the view? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to start an activity in another package

2009-01-25 Thread info.sktechnol...@gmail.com
My application has 2 packages because one is shared with my other applications. I want to start an activity of the shared package. I tried the following: Intent intent = new Intent(); intent.setClassName(shardedPackageName,sharedActivityName); startActivity(intent); It throws an

[android-developers] Re: How to start an activity in another package

2009-01-25 Thread info.sktechnol...@gmail.com
at 9:47 AM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: My application has 2 packages because one is shared with my other applications. I want to start an activity of the shared package. I tried the following:   Intent intent = new Intent();   intent.setClassName

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread info.sktechnol...@gmail.com
Not the best solution, but may save your users some memory: Have 2 versions of the software, one with the database and one without. After the database is installed, have the user download the new version wothout the database. You could have a menu item in the large application that downloads

[android-developers] equivalent of AWT's FontMetrics

2009-01-20 Thread info.sktechnol...@gmail.com
I want to find out the width of a string if it is put into a TextView. I see the graphcis.Paint.FontMetrics. How do I get this from a TextView? How do I determine the width of a string from this? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] reduce height of a button

2009-01-15 Thread info.sktechnol...@gmail.com
What is the preferred way to reduce the height of a button and maintain the label in the center? --~--~-~--~~~---~--~~ 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: Problem with setting the background color of a listview item

2009-01-13 Thread info.sktechnol...@gmail.com
try: if(position ==0) row.setBackgroundColor(Color.CYAN); else row.setBackgroundColor(Color.BLACK); getView will sometimes return a view that was scrolled off the screen rather than creating a new one. On Jan 13, 4:17 pm, Alx alxw...@gmail.com wrote: Hi there When I'm trying

[android-developers] Re: Low on space

2009-01-10 Thread info.sktechnol...@gmail.com
Go to Settings - Applications - Manage Applications Use the hardware Menu button and Sort By Size. Near the top you will probably find Package Installer. If it is large, choose it and then Clear Data I had this problem too, until I figured it out. On Jan 10, 3:43 pm, Stoyan Damov

[android-developers] Meaning of numbers on Android Market Listing

2009-01-06 Thread info.sktechnol...@gmail.com
What is the meaning of the three numbers given for each app in the developer market listing? There is a number in paren right before the stars. There are also numbers for total and active installs. What makes an install active? --~--~-~--~~~---~--~~ You received

[android-developers] Re: Meaning of numbers on Android Market Listing

2009-01-06 Thread info.sktechnol...@gmail.com
of comments, and an active installation is one that hasn't been uninstalled. On Jan 6, 5:39 am, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: What is the meaning of the three numbers given for each app in the developer market listing? There is a number in paren right before

[android-developers] File.setLastModified(long) broken?

2009-01-03 Thread info.sktechnol...@gmail.com
setLastModified in the File class seems to always return false, even for files I have created on the SD card? Has anyone been able to get this to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android