[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-06-05 Thread Mark Hansen
Well, still not working. I've built a brand new Intel-based desktop PC. Installed Windows 7 Professional 64-bit and Android Studio 2.1.1 (along with various other software needed, like Java 8, etc.). I have the Samsung OEM USB drivers installed and also installed the USB driver that comes with

[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-30 Thread Mark Hansen
I just tried to install Android Studio 2.x on a different laptop, which I've never used before for Android development. It is running Windows 7 Home Premium and is an AMD-based laptop. AS runs okay (although a bit slow) but I'm not able to connect to my phone device via adb. It also says

[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-29 Thread Mark Hansen
I tried installing Android Studio 2.x on my PC at work. It is also running Windows 7 (although it is Enterprise edition). On that machine, I was able to connect my phone and 'adb devices' recognized it. I was prompted (on the phone) to allow USB debugging and was even able to deploy a sample

[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-28 Thread Mark Hansen
It's really acting like there is something on my machine which is preventing the phone/tablet devices from accepting the debug command (prompt, whatever it is) so the device just doesn't ask. As I've said, I tried uninstalling Android Studio (which includes the SDK) and removing the .android

[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-28 Thread Mark Hansen
On Thursday, April 28, 2016 at 12:05:16 AM UTC-7, gjs wrote: > > Enable developer options on your Android devices I have Developer Options enabled. In fact, I think that's the only way you can get to the other options. -- You received this message because you are subscribed to the Google

[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-27 Thread Mark Hansen
I just tried a second device (this one is a Samsung Galaxy Note 10.1 2014 Edition tablet) which was also previously working (with the older version of ADT) and it reacts the same way (unauthorized). I then tried my wife's brand new note 5 and to my surprise, it does the same thing. I tried all

[android-developers] Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-24 Thread Mark Hansen
I've asked this on Stack Overflow, but so far no solution: http://stackoverflow.com/questions/36816530/why-does-adb-devices-show-unauthorized-with-no-allow-prompt-on-the-device I've installed Android Studio 2.0 on my Windows 7 PC. This included the Android SDK. I've done Android development on

[android-developers] onWindowFocusChanged from Back Button on Previous Activity

2010-06-11 Thread Mark Hansen
I have an Activity where I show a user a Dialog on the onCreate(), the user is then allowed Click OK to dismiss the dialog, Click RULES to read some rules, Click 'HIDE to hide the dialog in the future. The problem I'm having is when the user click view rules, which launches the browser and then

[android-developers] Re: Problem launching my own (camera) application on press of Camera-button (part 2)

2010-04-14 Thread Mark Hansen
Has anyone had any success getting around the problem outlined here, looks like it's fairly common problem, and I've seen apps that have seemed to get around this? On Mar 22, 10:13 am, Streets Of Boston flyingdutc...@gmail.com wrote: I don't know either, It would be great if one of the

[android-developers] Application Launch Animation

2010-04-14 Thread Mark Hansen
Is there a way to get rid of the animation that is displayed when an application starts on the android platform. Basically, I want my Application to mimic Sound and Display Animations No Animations when launched? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Application Launch Animation

2010-04-14 Thread Mark Hansen
version prior to 2.0? Basically I want to distribute my app as 1.5... but since I can't set this flag, phones running 2.0 will see the animation... unless there's another way to do this? On Apr 14, 4:56 pm, Mark Hansen stonedon...@gmail.com wrote: Is there a way to get rid of the animation

[android-developers] Customizing the Gallery Control

2010-04-13 Thread Mark Hansen
I'm interested in customizing the Gallery control by adding a text description below each image. I've created a view as such: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content

[android-developers] Retrieving PackName from RecentTaskInfo

2010-04-09 Thread Mark Hansen
I'm trying to the the application and icons for Recent Tasks, but I can't seem to get the appInfo using the RecentTaskInfo. The getApplicationInfo call is what is failing due to the getPackageName() returning null. ActivityManager manager =

[android-developers] PreferenceActivity Validation on Checkbox

2010-03-25 Thread Mark Hansen
I'm working on the settings for an application I have, and one of the checkboxes enables or disables a service. The service requires a login and password, and one other checkbox to be checked in order to function. I've messed with the android:dependency flag, but what I would rather do is in the

[android-developers] Re: AnimationDrawable and Out of Memory Errors

2009-12-11 Thread Mark Hansen
:52 pm, Mark Hansen stonedon...@gmail.com wrote: So I want to start an animation when my application starts that always visible in the application.  So reading about the AnimationDrawable it was stated to use onWindowFocusChanged instead of onCreate() to ensure that animation would start

[android-developers] AnimationDrawable and Out of Memory Errors

2009-12-10 Thread Mark Hansen
So I want to start an animation when my application starts that always visible in the application. So reading about the AnimationDrawable it was stated to use onWindowFocusChanged instead of onCreate() to ensure that animation would start properly in the UI thread. @Override

[android-developers] Re: Positioning Elements with Various Resolutions

2009-11-17 Thread Mark Hansen
Ok, I discovered this on the Motorola site: http://developer.motorola.com/docstools/library/Support_for_Multiple_Screen_Resolutions/ What this means is that when content is scaled up to full screen, the horizontal (X*1.5) and vertical (Y*1.77) scaling factors are different. As a result, when

[android-developers] Positioning Elements with Various Resolutions

2009-11-16 Thread Mark Hansen
Wondering if someone can fill me in on how to best approach this.. I have a background image that I lay various elements imageviews and textviews. Since the new devices obviously have new resolutions I'm trying to rework my layouts but I'm stumped. Here's the first few lines. ?xml version=1.0

[android-developers] Re: Positioning Elements with Various Resolutions

2009-11-16 Thread Mark Hansen
Here are two images that illustrate my question: This is correct, not how the dice are centered in the box and the gray box lines up with the top and corners of the white outline below. http://dl.dropbox.com/u/26335/Capture11-16-2009-5.20.44%20PM.jpg This is in the emulator that is setup like

[android-developers] Uploading a File with HttpClient and HttpPost

2009-11-09 Thread Mark Hansen
Gah let me try posting this in the correct forum... I'm working on an application that does an upload to a webserver, but struggling with the actual fileupload.. code: byte[] data = params[0]; // this is my picture data in a ByteArray HttpClient httpClient = new DefaultHttpClient(); HttpPost

[android-developers] Detecting onTouchEvent on Bitmaps in SurfaceView

2009-10-21 Thread Mark Hansen
I'm implementing a SurfaceView then laying various Bitmaps in the onDraw event. I'm curious of a best practice in regards to detecting if one of the Bitmaps has been touched by the user? I know I can override the onTouchEvent and capture the screen press there, but I'm if I should implement

[android-developers] Handling Resolutions with the Canvas

2009-10-19 Thread Mark Hansen
I'm currently working on a 2D application using the canvas, and I curious how other developers would handle this issue. The application has a background that then has bitmaps drawn on top of it in very specific locations. Obviously with screen resolutions this becomes a bit problematic. First,

[android-developers] ListView onListItemClick to Create a Context Menu?

2009-08-20 Thread Mark Hansen
This maybe against the way the Android team wants this to work, but if not I can't seem to come up with a way to do this. Basically I have a list view that I want to create a ContextMenu when onListItemClick received. So when the user clicks on a list item I want them to choose the action from

[android-developers] (application) cannot be installed on this phone

2009-06-10 Thread Mark Hansen
Has anyone had an error along the lines of (application) cannot be installed on this phone., where the application name is in place of (application). This is on cupcake, I have my version minSdkVersion set to 3, and I've had no problems prior to this new version. Runs fine in the emulator, so

[android-developers] HTML strike tag with HTML.fromHtml

2009-03-18 Thread Mark Hansen
I'm using HTML.fromHtml to convert some text with HTML for a TextView. I can't seem to get the strike tag to render though, is there a way to get this to render with this method? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Changing Font Size On Tab Activity

2009-02-18 Thread Mark Hansen
Is there a way to change the font size on a tabbed Activity? I can add an icon but I'd like to shrink the font a bit? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Populating a listadapter

2009-02-18 Thread Mark Hansen
I load a pretty hefty data feed from a server also in XML and parse it, I used the SAX parser and it's pretty snappy. How are you parsing your data? On Feb 18, 3:35 pm, Ivan Soto ivanso...@gmail.com wrote: Hi, I've built an application that loads XML from a server, then creates a list of

[android-developers] Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Hansen
Is there some method in which i can identify a phone, a serial number or something similar that's accessible by code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Hansen
: Mark Hansen wrote: Is there some method in which i can identify a phone, a serial number or something similar that's accessible by code? That depends on how you define identify and phone. ;-) You can get at the IMEI number via android.telephony.TelephonyManager's getDeviceId() method

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Hansen
That should work nicely.. thanks for the information. On Feb 14, 11:02 am, Mark Murphy mmur...@commonsware.com wrote: Mark Hansen wrote: Basically I'm reporting a score via a webservice, instead of having a login password I was just wanting to use a unqiue phone id to track the user

[android-developers] SaxParser with POST to URL

2009-01-22 Thread Mark Hansen
I have an API I'm using that requires me to POST instead of use GET to submit my credentials before receiving back my XML response. I've parsed a bunch of various XML services like this, but this is the first time I've run across having to post to the URL. Basically they want a username and

[android-developers] How to Handle Delays/Waits

2008-11-14 Thread Mark Hansen
I'm trying to figure out the best way to do this, and hoping someone can help... I've created a AnimationDrawable using XML and have no problem setting that to an ImageView to display. The question is, what's the proper way to hold the animation for a specific amount of time, say so that the

[android-developers] Re: Image buttons

2008-10-30 Thread Mark Hansen
I ended up using ImageViews and making multiple images, I'd be curious if there was a better way as well. On Oct 30, 5:48 am, Arun Mankad [EMAIL PROTECTED] wrote: Can somebody tell me how o create buttons with images that have different image for focused and clicked state -- Arun Mankad

[android-developers] Re: Tips for Orientation

2008-10-30 Thread Mark Hansen
, methods and constants available to get theoretically the exact same information, I wondered if there was a preferred method. On Oct 24, 12:39 pm, Mark Hansen [EMAIL PROTECTED] wrote: Setting this android:screenOrientation=sensor as mentioned above worked perfect.. it switched

[android-developers] Re: Updating Imageviews During functions

2008-10-29 Thread Mark Hansen
:01 am, Mike Reed [EMAIL PROTECTED] wrote: ImageView, like all subclass of View, cannot be called from any thread   other than the UI thread. That said, what is the update you are try to do? On Oct 28, 2008, at 10:24 AM, Mark Hansen wrote: Opps.. I start the Runnable with the following

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mark Hansen
.. is there a better method of doing this? Thanks, Mark On Oct 27, 5:44 pm, Mark Hansen [EMAIL PROTECTED] wrote: I have some image views I'd like to update as somethings change in a function in an activity. I can't seem to get them to refresh, at least not in away that appears visible

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mark Hansen
Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add that.. On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote: Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mark Hansen
. That said, what is the update you are try to do? On Oct 28, 2008, at 10:24 AM, Mark Hansen wrote: Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add that.. On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote: Some more info: I declared

[android-developers] Updating Imageviews During functions

2008-10-27 Thread Mark Hansen
I have some image views I'd like to update as somethings change in a function in an activity. I can't seem to get them to refresh, at least not in away that appears visible on the phone. I've tried running them in a seperate thread, and even from that thread using a custom handler to do the

[android-developers] Re: Tips for Orientation

2008-10-24 Thread Mark Hansen
Setting this android:screenOrientation=sensor as mentioned above worked perfect.. it switched the view as the phone changed. I then only created alternate XML files for the layouts that needed tweaking and it worked like a charm. On Oct 24, 2:24 pm, ksmith44 [EMAIL PROTECTED] wrote: As a

[android-developers] onSaveInstanceState / onRestoreInstanceState Called on First Application Run

2008-10-22 Thread Mark Hansen
I'm not sure if this is intended or not, but I had some compalints from users about my application failing on the first run after the install. After wiping the data on the emulator I notice when I debug that onRestoreInstanceState and onSaveInstanceState are called. This is not the case when

[android-developers] Re: onSaveInstanceState / onRestoreInstanceState Called on First Application Run

2008-10-22 Thread Mark Hansen
Fast day today.. hoping someone else might know about this? Mark On Oct 22, 10:10 am, Mark Hansen [EMAIL PROTECTED] wrote: I'm not sure if this is intended or not, but I had some compalints from users about my application failing on the first run after the install. After wiping the data

[android-developers] Re: Tips for Orientation

2008-10-20 Thread Mark Hansen
://code.google.com/android/reference/android/R.styleable.html#And... http://code.google.com/android/reference/android/R.styleable.html#And... On Oct 19, 3:23 pm, Mark Hansen [EMAIL PROTECTED] wrote: I was thinking Android switched orientation automatically based on the phones position but I'm finding from

[android-developers] Re: Tips for Orientation

2008-10-20 Thread Mark Hansen
the two, you will need to override onConfigurationChanged() and re-inflate your view hierarchy and re- initialize anything else depending on that or changing resources at that point. On Oct 20, 5:19 am, Mark Hansen [EMAIL PROTECTED] wrote: I've actually created layouts for both vertical

[android-developers] Re: Apps for Democracy Contest $20,000 in Prizes

2008-10-20 Thread Mark Hansen
Looks like spec work, which I implore other devs to avoid: See http://www.no-spec.com/ for more information. On Oct 19, 5:56 pm, corbett3000 [EMAIL PROTECTED] wrote: So we're hosting an app dev challenge here in DC (anyone from anywhere can enter) and our first submission was an iphone

[android-developers] Re: Browser based installation fails on G1

2008-10-20 Thread Mark Hansen
Did you set the mime types .apk files on your webserver? application/vnd.android.package-archive On Oct 20, 4:41 pm, InC [EMAIL PROTECTED] wrote: Here's the adb logcat output from the exception - I/ActivityManager(   53): Displayed activity

[android-developers] Re: Tips for Orientation

2008-10-20 Thread Mark Hansen
orientation policy is to select the orientation based on the keyboard: when the keyboard is closed it is portrait, when open it is landscape.  Pressing Ctrl+F12 in the emulator is exactly the same as sliding the keyboard out on the G1. On Oct 20, 11:57 am, Mark Hansen [EMAIL PROTECTED

[android-developers] Clearing Touch Mode?

2008-10-14 Thread Mark Hansen
Is there a way in code to switch an application from Touch Mode to Keyboard mode, or is this handled only via pressed on the screen or keyboard? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Saved Instance State and ListViews

2008-10-10 Thread Mark Hansen
The list is pulled from a remote feed over the web, so I was trying to prevent having to reload the listview via another web pull. Basically I just want the application to save everything and then restore itself when the user changes orientation, instead of having to make another full call back

[android-developers] Re: Saved Instance State and ListViews

2008-10-10 Thread Mark Hansen
Thanks for the input.. I ended up just saving out my data from the pull as suggested, it was already an ArrayList and I just jammed it in with the putSerializable and it works fine. Thanks for the help guys. On Oct 10, 10:26 am, Mark Murphy [EMAIL PROTECTED] wrote: Mark Hansen wrote

[android-developers] Re: setText() of TextView does not update instantly

2008-10-02 Thread Mark Hansen
Is it running in a thread? I know you can't have visual updates if it's inside or one? On Oct 2, 5:13 am, Urakagi [EMAIL PROTECTED] wrote: Hi, I have a TextView displaying current time in a ListActivity, which will play music. I use a class to update the TextView, but while the MediaPlayer

[android-developers] Re: Bug with Ellipsize in ListView?

2008-10-02 Thread Mark Hansen
I've went back and verified the text in the ListView is indeed clean. I'm at a loss as to where the empty block is coming from, any other ideas? Perhaps submit as a bug? On Sep 25, 8:40 am, Mark Hansen [EMAIL PROTECTED] wrote: Hrmm.. well what's weird is the API is truncating the string

[android-developers] Re: Download image from server

2008-10-01 Thread Mark Hansen
I followed this short tutorial a while back for downloading an image via http, maybe it can point you in the right direction... http://www.anddev.org/gallery_with_remote_images-t769.html On Oct 1, 6:51 am, Nemat [EMAIL PROTECTED] wrote: Hi, I have to download an image from server.But I got

[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-26 Thread Mark Hansen
I ran into the same problem and ended up using the localName since it appeared to be providing the same information. I did have to tweak a few things to get it to work, but yea I'm not sure what changed either. --~--~-~--~~~---~--~~ You received this message

[android-developers] Bug with Ellipsize in ListView?

2008-09-24 Thread Mark Hansen
I was implementing a view this morning with Ellipsize and noticed some characters appearing after the ... http://dl.getdropbox.com/u/26335/ellipsize.png Notice the middle two lines have a box like it has an unrenderablecharacter. Is this a bug, or am I doing something strange?

[android-developers] Re: JavaScript Prompt or something Similar in Android?

2008-09-23 Thread Mark Hansen
I actually ended up using the AlertDialogSamples.java SDK examples and found a pretty easy implementation. Encase anyone run's across this in the future. On Sep 23, 3:27 pm, Mark Murphy [EMAIL PROTECTED] wrote: Is there any easy way of doing a similar thing with Android without creating a

[android-developers] Images and Layout Questions

2008-09-18 Thread Mark Hansen
I'm making a fairly simple application, but I'd like to dress it up with some custom buttons and backgrounds. The problem is I'd like to control the layout of them to make sure it looks a certain way. I'm not really sure what to do resolution wise to make sure this will work once the actual

[android-developers] Re: Mouse Gesture for Navigation?

2008-09-12 Thread Mark Hansen
Ok, I'll keep trying it.. for some reason the events aren't firing such as Fling etc. On Sep 12, 10:12 am, Kavi [EMAIL PROTECTED] wrote: ListView is a kind of View, so you should be able to attach the GestureDetector to your ListView as well.

[android-developers] Re: Mouse Gesture for Navigation?

2008-09-11 Thread Mark Hansen
, Mark Hansen [EMAIL PROTECTED] wrote: I was wondering if this is easily implementable with the current SDK... basically I'd like to use a hold and drag left or right for navigation. So if the user wanted to change say a page they would hold their finger down and then push left or right

[android-developers] ContextMenu onClickListener on a ListView with CustomAdapater

2008-09-09 Thread Mark Hansen
I've got the context menu showing up properly but can't seem to catch the onclick event on it. I'm guessing I'm missing something fairly obvious but I'm stumped.. anyone have any ideas? Code here: notesCursor = nm.GetAllNotes(); NotesViewAdapter nva = new

[android-developers] Re: ContextMenu onClickListener on a ListView with CustomAdapater

2008-09-09 Thread Mark Hansen
Ok, I implemented onContextItemSelected and am now able to get ahold of the menu click.. the issue now is that I can't seem to get the position of the the ListView click. In other words, the user holds down on the ListView which spawns the ContextMenu, but the value for the ListView position is

[android-developers] Re: ContextMenu onClickListener on a ListView with CustomAdapater

2008-09-09 Thread Mark Hansen
Yea I tried both of those, neither seem to return the position on the ListView. It appears onListItemClick is never called when I when I'm creating my ContextMenu. On Sep 9, 5:59 pm, Mark Murphy [EMAIL PROTECTED] wrote: In other words, the user holds down on the ListView which spawns the

[android-developers] Re: ContextMenu onClickListener on a ListView with CustomAdapater

2008-09-09 Thread Mark Hansen
does not exist in touch mode. Instead, in onContextItemSelected(), you can get the ContextMenuInfo, cast it to AdapterContextMenuInfo, and this will give you the target view, the position and the id. On Tue, Sep 9, 2008 at 3:19 PM, Mark Hansen [EMAIL PROTECTED] wrote: Yea I tried both of those

[android-developers] Resetting Preferences?

2008-08-27 Thread Mark Hansen
Can someone give me some direction on how to restore the emulators preferences back to default? I'm afraid to just start deleting files at random :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Is android:choiceMode implemented?

2008-08-26 Thread Mark Hansen
I have a ListView and I'm trying to show the last selected item clicked/touched or navigated too, from what I can gather setting the choiceMode to singleChoice shoudl achieve this, but it doesn't appear to be doing anything... ListView android:id=@android:id/list

[android-developers] TextView with Vertical Scrolling

2008-08-24 Thread Mark Hansen
Not sure if this is a bug, or I'm just not implementing it correctly. I have a TextView that sometimes has text that is larger than the vertical area Ive set for it. So I ended up putting the TextView into a ScrollView.. shown at the bottom of the post. The problem I'm having is I update the

[android-developers] Color or Formatting portions of a TextView Text

2008-08-23 Thread Mark Hansen
I'm looking for the best practice regarding displaying portions of a TextView texts as say a color or for instance bolding certain words? I was looking at HTML.fromHTML(text) as a method of doing this, this doesn't seem to work if I wrap a font tag say around my block of text? Thanks for any

[android-developers] showAlert in latest SDK

2008-08-22 Thread Mark Hansen
I've been going over a bunch of examples and for the life of me can't figure out how to get showAlert to generate a dialog. I'm fairly new to both Android and Java development so I could easily be missing something, but I'm stumped. This is the menu option selected override in a class that is

[android-developers] Re: showAlert in latest SDK

2008-08-22 Thread Mark Hansen
Ahh ok, thanks guys, works great.. On Aug 22, 7:39 pm, Randy McEoin [EMAIL PROTECTED] wrote: What follows is how I did it.   The part that was not obvious from the sample code was the need for show().  Note that you can skip the setIcon() and it'll use a default one.  And you can skip the