[android-developers] album art

2012-03-08 Thread masood shaik
Hi All, How to fetch album art from media provider database. please provide some sample code Thanks & Regards Masood -- 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

[android-developers] Difficulty rendering an octahedron (2 pyramids attached at the bottom to each other)

2012-03-08 Thread geoklee
I am having difficulty with my homework project rendering an octahedron by modifying an existing project that renders a pyramid. The hint given is to change the vertices, colors, and indices objects. I did that but the best I could generate is the existing pyramid with 1 or 2 faces of the inverted

Re: [android-developers] destroy every activity as soon as the user leaves it

2012-03-08 Thread 陈孟
thanks Mark,I tried in debug mode.But there is no information in the LogCat...so what should I do if I wanna fix this bug in my app? 2012/3/8 Mark Murphy > Don't check the checkbox. Or, fix the bugs in your application, by > using adb logcat, DDMS, or the DDMS perspective in Eclipse to examine >

Re: [android-developers] destroy every activity as soon as the user leaves it

2012-03-08 Thread Mark Murphy
Don't check the checkbox. Or, fix the bugs in your application, by using adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and looking at the stack trace generated by your error. On Thu, Mar 8, 2012 at 3:49 AM, roger wrote: > Hi > In android 4.0,click the 'developer options',

Re: [android-developers] Re: UI design

2012-03-08 Thread Ricardo Santos
A table view with three rows would do the job too... On Wed, Mar 7, 2012 at 6:00 AM, moktarul anam wrote: > Hi > this will be simple listview and use custom adapter > > Moktarul anam > > On Wednesday, 7 March 2012 11:37:06 UTC+5:30, megha agrawal wrote: >> >> Hello All, >> >> I want to create a

Re: [android-developers] Exception coming while shutting down android device

2012-03-08 Thread Mark Murphy
On Thu, Mar 8, 2012 at 5:25 AM, Abhishek Sharma wrote: > I want to shutdown android device from application on pressing key. This is not possible from an ordinary SDK application. > Code snippet: > public void poweroff() > { >   ShutdownThread.shutdown(context, true); > } There is no ShutdownTh

Re: [android-developers] Problem launching service from init.rc in Android 4.0

2012-03-08 Thread Mark Murphy
Firmware questions belong on http://source.android.com. On Mon, Mar 5, 2012 at 11:16 AM, Aglets wrote: > I was able to launch a service from init.rc in Android 2.3.4 without a > problem. Now in Android 4.0 ICS the same application does not launch. > I can execute it successfully from the ADB comm

[android-developers] Re: Scroll position is not the same when orientation changes.

2012-03-08 Thread Put_tiMe
I think I have a hint as to what is going on. Basically my first focussable item is not right on top. So when the layout changes, the current focussable item is brought into view. During this calculation, the scroll is set. That is why my top portion of the layout is scrolled out. How do I pre

Re: [android-developers] SharedPreferences

2012-03-08 Thread Mark Murphy
The stuff that should be "cleared" "when the application is closed by the OS" are not preferences, so do not implement them as such. Use static data members or something along those lines, so they will go away automatically when Android terminates the process. On Tue, Mar 6, 2012 at 10:00 AM, Alej

Re: [android-developers] Android 2.2 + SQLite + Defining & Enforcing referential integrity constraints

2012-03-08 Thread Chalavadi Sagar
I think foreign key in Quens_Ans table must be a primary key. Kind Regards, Ch.B.Sagar On Mon, Mar 5, 2012 at 4:04 PM, Jay Khimani wrote: > I'm developing an Android 2.2+ app with SQLite db support. I'm trying to > define referential integrity constraints while creating the tables. I've > also

Re: [android-developers] Advanced Features of ActionBar with ActionBarSherlock, v4 support library

2012-03-08 Thread Mark Murphy
On Wed, Mar 7, 2012 at 12:13 PM, David Ozersky wrote: > The top level of tabs will hold categories of Feeds, or types, and the > second level will hold the feeds themselves.  (If possible, I would like lo > to learn how to add more levels).  Is this possible? The action bar itself does not suppor

Re: [android-developers] Re: Looking for LocationManager use for cycling app

2012-03-08 Thread Ifor
I have been gathering quite a lot of personal battery usage stats with my biking app while testing mostly with a SE Xperia Active but there is quite a lot of variation with differenrt devices. I have a number of options to vary what is on. With these options the runtime varies from a worst of

Re: [android-developers] HOw to extract only number

2012-03-08 Thread harshita agrawal
if you enter only 5002 the it gets null value in space1 so it's crashed.To solve these problem you can do like this: str=txt.getText().toString(); int space1=str.indexOf(" "); if(space!=null){ s=str.substring(0, space1); } else { s=str; } On Tue, Mar 6, 2012 at 11:06 AM,

[android-developers] SERVICE_NOT_AVAILABLE from C2DM when the sender id is invalid.

2012-03-08 Thread abruzzo
I'm currently implementing the registration of a device for C2DM notifications and so far I'm able to get a notification id back when I send a valid gmail account as the sender id so I think that the process is working correctly. My question is does anybody understand why I would get a "SERVICE

[android-developers] Android, 3.0+ spinner dialog style

2012-03-08 Thread Alexandros
I am trying to change the drawable used as background in the spinner dialog. Prior 3.0 it works fine, I just change the AlertDialog style to use my images, but that does not work when the activity is inheriting from a Holo theme. I am trying to find which style I have to override but I simply c

[android-developers] Android 2.2 + SQLite + Defining & Enforcing referential integrity constraints

2012-03-08 Thread Jay Khimani
I'm developing an Android 2.2+ app with SQLite db support. I'm trying to define referential integrity constraints while creating the tables. I've also enabled the foreign key support by executing db.execSQL( "PRAGMA foreign_keys=ON;" ); in onCreate and onOpen methods of SQLiteOpenHelper. Afte

[android-developers] Android Cashing Internet Data

2012-03-08 Thread Filip Lukic
Does anyone know what is the best way of cashing and displaying data from internet (web service)? concepts, tutorials, examples are very welcome. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

[android-developers] Sharing private data between apps of differing permissions

2012-03-08 Thread Iain King
In order to minimise the required security for my apps I would like to split them into 2: the core app which has effectively no required permissions, and a manager app which will have internet access/write to SD/etc permissions. That way users can happily install the base app without having to

Re: [android-developers]

2012-03-08 Thread harshita agrawal
use the IsPressed(),IsFocused() method.if it is true ,change the button images On Mon, Mar 5, 2012 at 4:12 PM, teja divya wrote: > > how to change the button images according to the state of the button that > is button pressed,button focussed ??? > -- > ..divyateja > > -- > You received thi

[android-developers] updating Fragments in a ViewPager

2012-03-08 Thread Jane Wayne
i am having problems trying to update/replace Fragments in a ViewPager. the problem is that the old fragments simply won't get replaced by the new ones. i have read a couple of solutions on stackoverflow, and tried them, but it still doesn't work. anyone have any ideas why? i will explain what i am

[android-developers] Cursor Subclass onChange() notifications

2012-03-08 Thread Deepwinter
I have written a custom subclass of MatrixCursor which handles some behind the scenes data updates (from the network) asynchronously. When new data has been added to the data store (not sqlite), the MatrixCursor subclass calls onChange(true). I have a dataSetObserver registered as docum

Re: [android-developers] Re: sqlite database on phone creash

2012-03-08 Thread harshita agrawal
I think emulator is getting old database whatever u have used before. so uninstall the application, run the new application.it'll be also crash.. There is problem in your code not in phone.can you tell me what's error coming. On Mon, Mar 5, 2012 at 9:23 PM, Chris Stratton wrote: > On Monday, Ma

[android-developers] GALAXY TAB + ACR 122U RFID READER (HELP DRIVER)

2012-03-08 Thread andrea.vita...@gmail.com
Hi, I'm developping android application for sansung galaxy tab 10.1 and NFC reader (ACR 122U) usb WHen I plug-in the usb (qith the usb adapter kit sansung) and run dmesg in root mode I give this error: usb usb2: New usb device found, idVendor 1d6b idProduct=0002 usb usb2: New Usb device String:

[android-developers] Re: NFC Secure Element

2012-03-08 Thread Janhouse
Anyone tried it on ICS yet? And are there new patches or something? On Friday, February 10, 2012 9:47:18 PM UTC+2, malls wrote: > > When the card emulation is detected, the call is routed > to nfc_jni_transaction_callback() of SecureElement. From here the event is > posted to NfcService for exam

[android-developers] AWOL: ArchWikiOffline - Code Review

2012-03-08 Thread exiquio
Perhaps this is the wrong venue to make this request. If so, pardon me and ignore. I am not a decent Java developer and I am new to Android development, but I want to learn and I learn best by doing: ArchWiki Offline: https://github.com/tetractysproductions/ArchWikiOffline Alphas of the software

Re: [android-developers] Re: sqlite database on phone creash

2012-03-08 Thread harshita agrawal
check Your database that it has data what u have entered.if it has entered value than check the value of cursor which are coming from query for fetching the value from database. On Tue, Mar 6, 2012 at 10:49 AM, Jagruti Sangani < jagruti.sang...@inextrix.com> wrote: > hello below is my code of dat

[android-developers] android virtual device how to choose web camera?

2012-03-08 Thread boy on9
when i open the web carmera app of the avd, it seems automatically choose my TVcard device for the camera, how do i correct it to choose the right device? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

Re: [android-developers] Database Problem

2012-03-08 Thread harshita agrawal
have u closed database .if not ,close your database On Tue, Mar 6, 2012 at 12:15 PM, abhijeet tomar wrote: > Hello Developers, > > I got exception 'close() was never explicitly called on database / > pkg/ db ' > and i am not closed the database...where is the problem if u know > about that > pl

[android-developers] Re: Google Play

2012-03-08 Thread EhyehAsherEhyeh
As someone recently said in an article I don't care enough about to track down to link to (sorry, whoever wrote it); it's not the best name, but it's not the worst name either. It's a fair point that no name would be objectively "best", as is proven by the plethora of discussions about what would b

[android-developers] about: favorites

2012-03-08 Thread Teddy
Hello sir, actually in our project there is an option of favorites. what i want to do is i want all those applications that has been visited several times to be in favorites. for this im going to use shared preferences. i have thought having a counter i will increment that counter everytime a parti

[android-developers] Does Android Beam work nicely with Google Wallet

2012-03-08 Thread miranosys1
Android Beam (SNEP) and Google Wallet (Card Emulation) are using 2 different NFC technology and I was wondering if they work nicely together on phone with 4.0.3. I can't test this on 4.0.3 since Google wallet will not run on my region/carrier (Canada). My experience has been with 2.3.6 and the

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Anirudh Loya
It should be in a single folder until i used in my app ! It works fine. Check my structure above... On Thu, Mar 8, 2012 at 3:47 AM, Alik Elzin wrote: > The resolution means a lot. > It means a stretched(/squashed) vs. non stretched image. > > > On Thursday, March 8, 2012 1:35:50 PM UTC+2, Kostya

[android-developers] Advanced Features of ActionBar with ActionBarSherlock, v4 support library

2012-03-08 Thread David Ozersky
Hi, I'm a newbie Android programmer and I've been assigned a task to develop an App with Fragments and an ActionBar. I'd like to develop an ActionBar with Tabs that lead to another dropdown. My app will be an advanced RSS feed reader for tablets. The top level of tabs will hold categories

[android-developers] destroy every activity as soon as the user leaves it

2012-03-08 Thread roger
Hi In android 4.0,click the 'developer options',there is a checkbox named ' don't keep activities'. When it was checked, my app didn't work! When I launch another activity from my main activity,the app will be closed! so...anyone know how solve this problem? -- You received this message because y

[android-developers] i get an error when i try and launch my apk file saying there is a problem passing the package

2012-03-08 Thread alexb
I built an application in eclipse for testing purposes it works in the emulator without any problems. I then copied the project named listviews from my workspace to a dropbox folder. I then went onto my phone went to the drop-box went to the bin directory and found the listviews.apk file. I then cl

[android-developers] Re: Multi-choice alert dialog

2012-03-08 Thread Emanuel
Hi!!! I try to write in English because my English isn't great. I only hope that isn't late. Well you try to show the dialog but you don't put the show() method and I don't know why you put a return. The code is the following: case PEOPLE_CHOSING_DIALOG: >                         AlertDialog.Buil

[android-developers] Draw icons depending of zoom

2012-03-08 Thread Grontag
Hi all. I am developing an application that draws icons on a map. But i need to draw them dynamically: if the user does zoom in the map, if zoomLevel is > 10, draw this icon, in other case draw that other icon. I've been the whole morning reading and searching the web, and found nothing that works

[android-developers] call receiver

2012-03-08 Thread deepu
hi dude i need src for local host call receiver to android -- 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-develo

[android-developers] file categorizer

2012-03-08 Thread ANKIT GUPTA
how can we develop file categorizer in android so that it can perform follows 1.The application should be stored on the memory card. 2.Categorization of file types specified by the user should only be done. 3.The application should be available to work in minimised mode. 4.The performance of th

[android-developers] Save Last Coordinates Map

2012-03-08 Thread concave
Hi all, im a newbie here I already try to search this solution but doesn't found any answer. What i want to ask is, it's possible to save last coordinates ?if so, can anybody here tell me how to do it's Thanks, and sory for my bad english -- You received this message because you are subscribed to

[android-developers] SQLite and SQL injection

2012-03-08 Thread Red Planet
Hi! How can I protect my queries if I like to use rawQuery method? For example, I wrote a query String query = "SELECT " + DbHelper.TABLE_WORDS + "." + DbHelper.WORDS_WORD + ", " + DbHelper.TABLE_TRANS + "." + DbHelper.TRANS_WORD + " FROM " + DbHelper.TABLE_WORDS + " INNER JOIN " + Db

[android-developers] Re: [Android - developers] Saving Latitude and Longitude value

2012-03-08 Thread agung wiguna johan
Update : I found the solution,but still getting error. Use 2 location variable to get the previous position before changed : public void onLocationChanged(Location newLocation) { prevLocation = currentPosition; currentPosition = new Location (newLocation); int lat1 = (int) (currentPosition.getLati

[android-developers] SharedPreferences

2012-03-08 Thread Alejandro Alves
Hello, I want to have some preferences stored "forever" by my application, for example username, remember me, etc...and other preferences to be stored only until the application is closed, or the user logs out. So basically my question is how do I delcare which preferences must be stored for ever,

[android-developers] [Android-developers]

2012-03-08 Thread agung wiguna johan
Hi all I have an problem here. I was developing an map application, and it have feature to rotate the map when user changed direction. I know the easiest way to rotate it is, with the Orientation sensor. But for know, i need to rotate it without sensor. IMHO it's possible to rotating map with the a

[android-developers] Adding "PushLink" jar to my app to make it self-updating

2012-03-08 Thread Defozo
Welcome! At first, I want to say that I'm beginner in Android programming. I was trying to add the jar file from http://push-link.com/ to make my application self-updating. I've added the jar (this one) to the classpath (copied jar file -> right click -> Build Path -> Add to build path...), I've a

Re: [android-developers] Re: Android how to send the hex code out?

2012-03-08 Thread Robert Young
Serial port by definition is a string protocol, characters above 128 like ( 0xFA ) are [control codes]. Examine the difference between binary and string representation 2012/3/7 Todd Grigsby > "0x" implies that the characters that follow are byte data in hex > notation. The "0x" is not part

[android-developers] TextView,Button and List view in the same screen

2012-03-08 Thread Rakesh Boyapally
I want Textview , List view and Button on the same screen.I'm using customer list view adapter ... please help me ASAP !! -- 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.c

[android-developers] How to turn on-off the physical keyboard programmatically?

2012-03-08 Thread eddie
Everytime I plug a keyboard or scanner, the soft keyboard no longer shows when EditText is in focus. I've already tried to force the soft keyboard to always show using the inputManager, but it only works when the physical keyboard is unplugged. inputManager = (InputMethodManager) context.getSyst

[android-developers] Re: Emulator for nfc in india

2012-03-08 Thread Gaara
Checkout OpenNFC. Caution: works best only if you are working on a windows environment! Else if you are a linux hacker like me, you are gonna have one hell of a difficult time! On Friday, March 2, 2012 12:50:24 AM UTC+5:30, Shantanu Jain wrote: > > Hi, I am a college student in India and my co

[android-developers] Parsing this string in Android

2012-03-08 Thread andyjohnson
I have made a simple web service which I return a list of values, this is the code: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string HelloWorld() { string[][] JaggedArray = new string[5][]; int i = 0; for (int r = 0; r < 5; r++)

[android-developers] Problem launching service from init.rc in Android 4.0

2012-03-08 Thread Aglets
I was able to launch a service from init.rc in Android 2.3.4 without a problem. Now in Android 4.0 ICS the same application does not launch. I can execute it successfully from the ADB command line but I can't get it to launch from init.rc. Any ideas? -- You received this message because you are

Re: [android-developers] Re: Help me on selecting a name to a game..

2012-03-08 Thread Kostya Vasilyev
This is what I get after clicking on the link: Мы сожалеем. Таблица по указанному URL не обнаружена. Проверьте правильность URL и убедитесь в том, что владелец таблицы не удалил её. Дополнительную информацию можно найти в справочном центре Документов Google. "Владелец Таблицы" would be a great

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
The resolution means a lot. It means a stretched(/squashed) vs. non stretched image. On Thursday, March 8, 2012 1:35:50 PM UTC+2, Kostya Vasilyev wrote: > > 1280 * 720 by itself doesn't really mean much > > Do you mean the Galaxy Nexus? That screen is "extra high density", so its > folder is draw

Re: [android-developers] Re: Re : spinner from HttpPost

2012-03-08 Thread vivek elangovan
Hi seshu, thanks for the sample but i m not familiar with JSON and also my query is i m able to retrieve the xml data from my server using HttpPost , what i need is i need set that value to my second spinner. On Thu, Mar 8, 2012 at 5:08 PM, Seshu wrote: > Hi Vivek, > Open this l

Re: [android-developers] How to format a String in an email

2012-03-08 Thread Kostya Vasilyev
Line breaks in emails are represented by CR/LF, not by a single "\n". http://www.ietf.org/rfc/rfc2045.txt -- Kostya 8 марта 2012 г. 9:42 пользователь ravi . написал: > I'm trying to send an email in Java but when I read the body of the > email in Outlook, it's gotten rid of all my linebreaks. I

[android-developers] Re: Re : spinner from HttpPost

2012-03-08 Thread Seshu
Hi Vivek, Open this link and see this example.. http://www.vogella.de/articles/AndroidJSON/article.html Thanks & Regards, S.Seshu. On Mar 8, 10:33 am, vivek elangovan wrote: > Hi members, >                      Using HttpPost i am able to retrieve the following > data in my response > >

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Kostya Vasilyev
1280 * 720 by itself doesn't really mean much Do you mean the Galaxy Nexus? That screen is "extra high density", so its folder is drawable-xhdpi. A 8-9" tablet could conceivable have a 1280 * 720 screen, but that would be "medium density", drawable-mdpi. Android running on a notebook with a 1280

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
Thanks you Anirudh. As I asked Zsolt: So if I have the same background drawable suited for other resolution screen - 720×1280 - what folder should it be? On Thursday, March 8, 2012 12:33:00 PM UTC+2, Anirudh Loya wrote: > > > Dude... Check this flow. > > [image: Inline image 1] > > > -- You re

[android-developers] Scroll position is not the same when orientation changes.

2012-03-08 Thread Put_tiMe
I have a scroll view activity under which I have lot's of UI objects. Now let's say when the activity starts up, the view is right on top. Now if I change the orientation of the phone, I observe that my activity has automatically scrolled to a different position. I don't want the scroll positi

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Anirudh Loya
Dude... Check this flow. [image: Inline image 1] On Thu, Mar 8, 2012 at 1:48 AM, Alik Elzin wrote: > What should the folder's name be? > > > On Thursday, March 8, 2012 11:37:42 AM UTC+2, Anirudh Loya wrote: >> >> Create another Drawable folder above drawable-hdpi and paste all your >> images th

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
What should the folder's name be? On Thursday, March 8, 2012 11:37:42 AM UTC+2, Anirudh Loya wrote: > > Create another Drawable folder above drawable-hdpi and paste all your > images there. It will work fine. > > > -- You received this message because you are subscribed to the Google Groups "

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Anirudh Loya
Create another Drawable folder above drawable-hdpi and paste all your images there. It will work fine. On Thu, Mar 8, 2012 at 1:26 AM, Alik Elzin wrote: > So if I have the same background drawable suited for a G-S - 720×1280 - > what folder should it be? > See my point? I don't see the guideline

[android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Alik Elzin
So if I have the same background drawable suited for a G-S - 720×1280 - what folder should it be? See my point? I don't see the guidelines for this. It's hard to make great looking apps this way. On Thursday, March 8, 2012 8:05:54 AM UTC+2, Zsolt Vasvari wrote: > > Put it into NODPI and let the

<    1   2   3