Android :: How To Get USB Device List?
Jan 18, 2010
In my development environment, more than one USB device can be plugined in the Android device. If I want to get the USB device list of an Android device. What should I do? Of course, if there is only one USB device, it seems that we can access it as sdcard.
View 3 Replies
Jul 22, 2010
How do I get a list of all images in my android device?
update: Maybe there is a Content Provicer for all the images on the device.. (studying)
update: Getting hot, MediaStore.Images have the information.. now looking for how to get it..
View 1 Replies
View Related
Jan 4, 2010
Is there a way to programmatically list all available content providers on a device? No real use case, I just thought it might be neat to see what apps I have installed on my phone that have exposed content providers.
View 1 Replies
View Related
Sep 30, 2010
I have installed usb driver, selected the android device's debugging mode but i can't access the android device in the target android device's list.I am using htc wildfire as my android device. i chose the connection type of my device to my pc as Disk Drive.
View 1 Replies
View Related
May 24, 2010
I am new to android. I need to list available files in device or SDCard in the android emulator 1.5.
View 3 Replies
View Related
Mar 17, 2009
When I plug in the ADP1 and do the following: $ adb devices List of devices attached HT845GZ50887 device But, after connecting via the USB, my ADP1 device goes away after about a minute. I can also load an application from Eclipse to the ADP1 fine. But Eclipse lists in error in the Eclipse consolein about a min with: 2009-03-17 12:06:08 - DeviceMonitor]Connection Failure when starting to monitor device 'HT845GZ50887' : device (HT845GZ50887) request rejected: device not found If I then: $ adb devices List of devices attached Why would the device go away? USB debugging and Stay awake are both enabled. I've found that most of these types of problems are on Windows and have to do with the USB. I"m on Linux, though (gentoo).
View 2 Replies
View Related
May 24, 2010
I would like to know if I could access the internal device DB to fetch a list of all installed applications, their version, etc?
How can I read the settings on the device as well? Like email username, server, etc?
View 3 Replies
View Related
Jun 30, 2010
Programmability i want monitor IP ever connected to my Adnroid device. My initial thought is i can write a background service which will run tcpdump command and forward its output to inputStream. By putting any regular expression i can retrieve list of connected IP to my device.I think that would be bulky to continually run command like tcpdump.
View 1 Replies
View Related
Oct 29, 2009
I want to delete contact list and and available emails in the device. how do i do that I have tried this for contact deletion but getting exception.
View 2 Replies
View Related
Oct 15, 2009
I have two phones, one running 1.5 and the other on 1.6. When I connect the 1.6 device via usb, DDMS recognizes it and in the top-left pane shows: HT842....... | Online | 1.6, debug
It then lists the individual processes, I can select them and use various tools like allocation tracker.
But when I connect the 1.5 device, DDMS recognizes it but shows: HT95A....... | Online | 1.5
But it does not show any of the processes on the device, so I am not able to do use allocation tracker and such. The sysinfo tab works, and I can monitor logcat with filter and such in the bottom pane.
What am I missing here? Obviously the 1.5 device has USB debugging enabled. Why does it not show 'debug' in DDMS? I'm using SDK 1.5_r2 on linux (Ubuntu 9.04), if that makes a difference.
View 5 Replies
View Related
Nov 7, 2010
I am tired of having to got to mainscreen->settings->wireless and networks->bluetooth settings to se a list of paired devices and the name of the one that is connected. So I figured I'd wade through the morass of bluetooth widgets on the market and find one that not only turns on/off bluetooth, but also shows list of paired devices and their connect status.Lo-and-behold I couldn't find a one.Anybody out there know of a widget that does this (or even close)?
View 4 Replies
View Related
Nov 13, 2010
My application is built on 2.2, but it is backwards compatible down to 1.6. I've used reflection for the newer methods. When I try to run it on an emulator in Eclipse, it only lists my 2.2 AVDs. I need to test on 1.6 to ensure compatibility. I've tried building with Android 2.2 and with Google APIs 2.2 with no luck. (what's the difference, anyway?) I have set <uses-sdk android:minSdkVersion="4" targetSDK="8"/> in my manifest. I also tried targetSDK="4".
View 2 Replies
View Related
Nov 4, 2010
I am on my first Android application and I am on a timeline so details and examples will be useful since my knowledge is still minimal. I want my first screen to present the user with a list of activities to choose from. In my situation it is a recipe app where the user first chooses the type of food, such as, Beef, Chicken, or Pork. I want the application to launch an activity depending on the list item that the user clicked on. I am not sure if I should use a list view, a text view, a scroll view, a list activity, an activity group...
View 1 Replies
View Related
Nov 24, 2010
we are wroking on the displaying of mails from an email . we got the list of emails stored . we need to show a small text screen which consists of the some content of the body when the email in the list gets focus .
View 4 Replies
View Related
Apr 23, 2010
I'm trying to create a multiple selection list where the selection is represented graphically rather than with checkboxes.My list has checkboxes, but I want them to serve a different purpose. I'm using a cursor to hold my data and created a custom view binder for the SimpleCursorAdapter. I did this for the checkboxes and general flexibility.So far I haven't even been able to show one line as being selected. I've enabled multiple selection on the list and denied the children of the list item focusability. I've tried manually changing background color with the position fed in through the list item click listener. But the wrong items get changed and they don't even change to the right color. I've enabled touch focusability with no improvement either.Ideally, I'd like the trackball highlight focus bar to appear in multiple places. But I don't think this is possible unless you use the drawable directly. But I don't know how to find or apply it. My next idea was to have a slim view bar that changes color. But I had the same problem with the wrong item being selected so I never finished trying to guess the index position to see if this would work. My most recent idea is to completely swap out the view for another one if it's selected. But I have no idea how to do this either. I'm thinking of using an array list to store the _id s of the items that need a different view to get around the wierd selection problem. I'm also thinking of passing in the ID field as my from and the selection view as the to for my adapter. Then I'd intercept it with my binder and change the view accordingly. But once again, I'm not sure how to do this successfuly.
View 7 Replies
View Related
May 3, 2010
I am trying to display the text from json in a list view.But my problem is that i cant figure out how to display them in list view. I also want to get only some of the text from url(for example, alerttext and date). Can anyone help me in declaring the list adapter and list view in order to display the data in the way i want.
View 1 Replies
View Related
Jan 10, 2010
I'm trying to tackle a problem that seemingly many Android developers have, which is how to intersperse lists with non-list data, in one big scrollable pane.The model I have in mind is the screen for an individual app in the Market. You have a big description, a list of a few lazily loaded comments, and then some individual items that do different things, like visit the developer's web page, call them, etc. And then in between them all, are nice section headers.Emulating this approach seems to be extremely hard. I've read enough SO answers and mailing list posts to know not to put a ListView inside of a ScrollView, but I want the same effect without using addHeader() and addFooter() with very complex header and footer views. I've tried using a LinearLayout that I stock with views myself, but I can't get the pleasant click effects that default list items have (the orange background, white for long-click, etc.).
View 2 Replies
View Related
Feb 2, 2010
I'm pretty new to Android dev and still working out a lot of things.I've got a main menu showing using the following code, but can't work out how to disable selected items in the menu. Can anybody help me with some sample code?
View 2 Replies
View Related
Aug 23, 2010
I use tabs in my Android application and one of my tabs contains a listview. I'm noticing some weird behavior when I override isEnabled in my list's adapter and then try to use the D-pad to move up and down through the list and to my tabs.If the 0th item of the list is enabled, then everything works as expected - I can move down through the list, and then up again and once I reach the top of the list, pressing up moves focus to my tab.However, if the 0th item is DISABLED (isEnabled in my adapter returns false), then when I press up while position 1 is focused, the focus gets stuck. It doesn't move up to the tab as I would have expected and instead stays on position 1 of the list.
View 1 Replies
View Related
Jul 14, 2010
By Default in the Listview,focus will come on the list item.Instead of that, can I get only the border to the list item?I can achieve this by using a transparent image as a list selector.Is there any other simplest way to achieve this requirement?
View 1 Replies
View Related
Aug 31, 2010
I would like to after I have updated by listAdapter I want to make sure that the list is scrolled all the way to the bottom so that it displays the last element entered in the list How can I do this ?I tried this but no luck.
View 1 Replies
View Related
Nov 3, 2010
I have lot of lists: for example: Categories, and subCategories, in my case some Categories has subcategories, So What I want to do, is if the categories has subcategories I want to clean the recently list and show the subcategories,(This can be solved by creating new activity for only subcategories, but I would say that the most of the code woyld same)I wounder how can I updoate list whit new data?If possible to add some animation when clicking, so the list goes to left when clicking, and showing data comes from right,
View 1 Replies
View Related
May 28, 2010
Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios: Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming it knows the participating device's IP? device is connected over bluetooth - how are devices identified in this case? device is connected over mobile operator's network - this is the one I'm interested in and confused by - is there anyway for two or more devices to discover each other and communicate via the mobile operator's network? How does a device communicate with a backend server in this scenario? In other words, how do apps and devices communicate when not connected to a WiFi network?
View 2 Replies
View Related
Jun 6, 2010
I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have four tables in my db and call each in different activities and created all on the sqliteman. after the data is inserted I pull back the db onto the data folder of the emulator. it works perfect on the emulator but failed on the device. when I try to pull my db on the real device, it shows access denied problem
View 2 Replies
View Related
Mar 24, 2009
I have developed a sports game which is single player. Now I want to have one more game mode which is multiplayer.
My question is how can i do device to device connection in android using sets of api which can be :
1.Bluetooth - whose APIs are not currently available.
2.gtalkservice - removed from sdk1.0 3.wifi - I dont knw how to connect 2 devices using wifi apis . I have asked about wifi because we have developed a game on iphone which used wifi connection for multiplayer stuff.
Or is there any other apis which can be used for implementation of multiplayer in game ?
View 3 Replies
View Related
Oct 30, 2009
How do I map the device Y axis to the screen Y axis?I can't figure this out.I'm the developer of Tricorder, and I'm trying to make it so that the accelerometer and magnetometer indicators I draw always point in the right direction.On the G1 phone with the slider closed, all is well.But when I open the slider, I end up showing that gravity is pulling me to the left (if the phone is held with the display vertical).So, I know that the device, and hence sensor, Y axis is always in the direction of the earpiece; and the screen Y axis changes when I open the slider.And I know that I can use remapCoordinateSystem() to change the device axes to match the screen axes.But where do I find out what the device's orientation is?In other words, how do I compute the correct values for the X and Y parameters to remapCoordinateSystem()?
Configuration.orientation seems quite useless.Suppose it is set to LANDSCAPE.What does this mean?Does it mean a device which is "naturally" portrait (i.e. the sensor Y axis points to the narrow end), and which has been turned into landscape mode?If so, which way was it turned?Or does it mean a device which is naturally landscape?In other words, LANDSCAPE could mean that the screen axis is off from the sensor axis by +90, 0, OR -90 degrees.Not much help.So how do I do this?Obviously I want my app to work on all devices, not just the G1 phone.
View 2 Replies
View Related
Oct 29, 2010
I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be as generic as possible).Replicating the GUI is not that difficult, but I am having trouble getting started on the USB communication. I'd appreciate it if someone could point me towards an example, or the appropriate tutorial.
View 1 Replies
View Related
Feb 28, 2014
Basically I have an old iPod touch 2g on iOS 4.x and a Nexus 5.
I want to use my iPod as my media player but I'd like to be able to control music from my Nexus (only basic controls).
Is there an app on either device that allows this? I know tsk skipping can be done by some Bluetooth headphones so I'm hoping there's a way to make iOS accept command from my Nexus
View 1 Replies
View Related
Nov 3, 2010
I am on Android 2.1 and I have one multi column Custom listview Using BaseAdapter with an editable edittext at the end of the listview. If the data in the listview do not contain the data of user choice then user should be able to enter data. If the data is already there in the list user will be able to select the data using custom selector. If a selection is made in the list view and user wanted to enter data in the text field at the bottom after selection then the marker in the list view should be unselected. I tried to use onclick() method on edit text using click listener. First time when it is clicked, edit text is getting focus and onclick() method is not fired. And when it is clicked second time, onclick() method is fired and notifyDataSetChanged() method is called. I tried to call the notifyDataSetChanged() method from the Focus Listener, list view selection is gone in my first attempt and edit text is not receiving any data input from the keyboard (frozen).
View 1 Replies
View Related
Sep 20, 2010
I am getting a response from xml which is dynamic in nature .After parsing the xml , I able to generate a tree view. Now , I want to convert the tree view structure to a List view which will have multiple List(list within list & so on) depending on the depth of the xml.I am aware of the ExpandableListActivity which provide a two-levels of data.In my case , it can be more than two levels of data rather it should be dynamic in nature.I need any sample code to implement the dynamic List i.e a List within another List & so on.
View 1 Replies
View Related