[android-developers] Play The All Mp4 Videos

2011-10-28 Thread Muthu S
Hi All I try to play all remote MP4 videos in android app anybody know the solution for this .I applied the same post one month before but no one know this answer for this issue kindly help me. -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

Re: [android-developers] Nullpointer on fresh app install

2011-10-28 Thread Ankur Avlani
When I try to Install the APK that's when I get this error. It just happens on this device. On Fri, Oct 28, 2011 at 10:32 PM, Kristopher Micinski < krismicin...@gmail.com> wrote: > what is mCurrentContent in your program? Typically when you freshly > install an app, you might not have set up da

Re: [android-developers] Nullpointer on fresh app install

2011-10-28 Thread Kristopher Micinski
what is mCurrentContent in your program? Typically when you freshly install an app, you might not have set up databases that you expect to have (for example, in development), and so you might get null refs when you try to look up things that just haven't been created. Are you saying this problem

Re: [android-developers] regarding POJO

2011-10-28 Thread Kristopher Micinski
This is common problem, typically people use "intents" in android. Kris On Sat, Oct 29, 2011 at 1:13 AM, nageswara rao rajana wrote: > Hi, >     I have four activities in my application.In each activity i want to > enter data that should be carried to last activity. >     Then the whole informat

[android-developers] How to obtain A-GPS data via Android phone

2011-10-28 Thread Kenneth WON
Dear all, I am developing an android app, which want to obtain the A-GPS position. I tried searching in Google, it seems no any hint, and I just know how to obtain GPS position. What is the principle of A-GPS? And What do I need to do so the app can obtain A-GPS position? Thanks and Regards, Ken

[android-developers] regarding POJO

2011-10-28 Thread nageswara rao rajana
Hi, I have four activities in my application.In each activity i want to enter data that should be carried to last activity. Then the whole information should be send to server. My doubt can i use POJO class to store data from each activity. And at last activity i will send stored data

[android-developers] Re: Type 4 Nfc Forum Tag Emulation Question

2011-10-28 Thread bjthe4th
If anyone is wondering, it was a really simple mistake on my part. The NFC Forum had come out with a new version of the Mapping document. Android requires the tag state that it is at 2.0 in the Compatibility container. I changed the value and my issue was solved. Hope this can at least help som

[android-developers] Nullpointer on fresh app install

2011-10-28 Thread Ankur Avlani
Hi, I have been trying to install the my APK on my device and I get the following exception: 10-28 16:45:18.150 I/InstallAppProgress(32006): Finished installing com.wellcore.newyu 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity: onResume called, mCurrentContent ==nomulti 10-28 16:

[android-developers] Re:Tab host

2011-10-28 Thread jaggu
Hi i have tab host in 1st screen in the next screen also same tabhost i have display how to call thanks jagadeesh -- 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

[android-developers] Re: Android SDK is the must buggy SDK in the entire mobile ecosystem.

2011-10-28 Thread Indicator Veritatis
They really do not like Windows at Google. I remember a news item claiming that they were requiring all of their own developers to get off of Windows and use either Ubuntu Linux or Apple OS X for development. Of course, they were supposed to continue to test for Windows compatibility before releas

Re: [android-developers] protected mode?

2011-10-28 Thread Kristopher Micinski
On Fri, Oct 28, 2011 at 2:13 PM, bob wrote: > On the recent x86 desktop processor, protected mode is used to ensure > processes don't jack with other processes' memory.  How does Android > and the ARM processor typically handle this? > This isn't really an arm thing, pretty much all processors ha

[android-developers] Re: protected mode?

2011-10-28 Thread Indicator Veritatis
The ARM processor family has one unprivileged user mode and six privileged ones. In order for VIZIO's explanation to hold water, someone would have to have written bad code for one of these modes, almost certainly in the kernel. Did VIZIO do their own build of Android and its kernel for this table

[android-developers] Re: Should I use the same certifcate for all my apps or a different one per app?

2011-10-28 Thread Indicator Veritatis
If you only release one app that will be available in both free and paid version, then I see no advantage. If you plan to release other apps, you could achieve the same effect by adding to your test checks on the package names as well as on the certificate. So I still see no need for multiple certi

[android-developers] Unable to execute dex: Section limit 1203336 exceeded by annotation

2011-10-28 Thread Matt Quigley
It's one of those rare moments that I've stumbled across an error that doesn't even exist on Google search (neither web search nor code search). I'm rather proud of it, in fact - it means I'm breaking stuff better than others :) [2011-10-28 17:21:19 - Dex Loader] Unable to execute dex: Section lim

Re: [android-developers] Nexus NFC PN544 Stack/Hardware

2011-10-28 Thread bjthe4th
I was wondering if these issues were ever figured out. I have a custom tag that also has some long processing times. I've noticed that the setting of the max FWT in the TB(1) byte of the ATS seems to have no effect. It times out on waiting for a response much quicker than the documentation would

Re: [android-developers] Re: Preview of ADT with library project fixes

2011-10-28 Thread Xavier Ducrohet
Haven't fixed the layout editor issues yet. Working on it. we'll push a fix as soon as we have it. On Fri, Oct 28, 2011 at 4:44 PM, Michael A. wrote: > I still can't export my Android projects on Windows 7 using the Eclipse > export tool (with Linux, for some reason, it works). > > http://code.go

Re: [android-developers] Re: Android fragmentation study

2011-10-28 Thread Greg Donald
On Thu, Oct 27, 2011 at 9:32 PM, Zsolt Vasvari wrote: > I don't have a problem with it, and if I did, I'd just develop for > iOS. I do, and am. > I'd suggest you should consider the same instead of whining about > something you cannot change. http://news.cnet.com/8301-17938_105-20126706-1/frida

[android-developers] Re: Preview of ADT with library project fixes

2011-10-28 Thread Michael A.
I still can't export my Android projects on Windows 7 using the Eclipse export tool (with Linux, for some reason, it works). http://code.google.com/p/android/issues/detail?id=21170 Also still seeing the problem with included layouts not working in the layout editor. http://code.google.com/p/an

[android-developers] Type 4 Nfc Forum Tag Emulation Question

2011-10-28 Thread bjthe4th
Hello, I am trying to emulate a Type 4 Tag, to store Ndef Messages. (Kind of like a custom made card). I am trying to connect to the Nexus S. I progress through the Collision Detection and selection portions just fine. RATS and PPS are both fine as well. The Ndef Tag application is selected, an

[android-developers] How do I launch the Android Emulator's browser with a given URL from my app?

2011-10-28 Thread JustAnotherDev
Hi, I'm looking for a way to start the emulator and launch a given URL in its browser from my app which is a web site editor. Do you have any suggestion? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] Re: Fwd: Android Calendar to sync after adding events programmatically

2011-10-28 Thread David Toledo
Hi Michael The event if are add to calendar and can sync to google calendar, I want know if is possible when appears new events related to this event sync automatically. Example: I have this url http://ical.wunderground.com/auto/ical/TX/College_Station.cs?units=english The events from url was im

[android-developers] Re: Fwd: Android Calendar to sync after adding events programmatically

2011-10-28 Thread Michael Chan
Hi David, If you add events programmatically, it should be sync'ed automatically. Can you give me a bit of context as what you are trying to do? Are you asking about forcing a sync when sync is disabled? Or are you writing a sync adapter and need to know when something changes? Thanks, Mike On

[android-developers] Re: "\n" Does NOT work ?

2011-10-28 Thread Studio LFP
"\n" works if you are on a Unix based system. If you are using a Windows (DOS) based system, you'll want to use "\r\n". Are you looking at your file in an text editor like notepad on a Windows system? Steven Studio LFP http://www.studio-lfp.com On Friday, October 28, 2011 4:43:17 PM UTC-5, me

Re: [android-developers] basic question: SharedPreferences and PreferenceActivity

2011-10-28 Thread John Goche
Thanks Kostya, I also found the following stackoverflow page helpful: http://stackoverflow.com/questions/2614719/how-do-i-get-the-sharedpreferences-from-a-preferenceactivity-in-android On Fri, Oct 28, 2011 at 11:50 PM, Kostya Vasilyev wrote: > PreferenceActivity by default uses this preference s

[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-10-28 Thread sblantipodi
tips or tricks, find the navigation button... On Oct 28, 6:21 pm, sblantipodi wrote: > As title. > Where is the navigation button? > > I can see this button in WXGA800 resolution only. Why? -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

Re: [android-developers] Re: (Scrolling a Table) Can't Figure Out Compiler Error

2011-10-28 Thread Mark Phillips
The Since API level 12. is grayed out on my screen...I just noticed it thanks to you! Sorry about the dumb question. Mark On Fri, Oct 28, 2011 at 2:40 PM, Kostya Vasilyev wrote: > onGenericMotionEvent > Since API level 12. > > Are you targeting Android 3.1? > > > 2011/10/29 Mark Phillips > >>

Re: [android-developers] basic question: SharedPreferences and PreferenceActivity

2011-10-28 Thread Kostya Vasilyev
PreferenceActivity by default uses this preference storage: PreferenceManager.getDefaultSharedPreferences(Context) Comes in handy if you want to read those preference values outside your pref activity. Or you can tell PreferenceActivity to use a pref file with a specific name, in your subcla

[android-developers] basic question: SharedPreferences and PreferenceActivity

2011-10-28 Thread John Goche
Hello, I know this is really basic but I am trying to get to grips with preferences. I have defined an xml file and started a PreferenceActivity to read that XML file so as to create and store some preference key-value pairs. However this is in activity B. In activity A which launched B I also wa

[android-developers] "\n" Does NOT work ?

2011-10-28 Thread melis
Hello, i'm using \n but it does not create a new line? Is there anyone knows why? mCurrentFile.write("z: "+String.valueOf(value[a * 4 + 3])+" \n"); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

Re: [android-developers] Re: (Scrolling a Table) Can't Figure Out Compiler Error

2011-10-28 Thread Kostya Vasilyev
onGenericMotionEvent Since API level 12. Are you targeting Android 3.1? 2011/10/29 Mark Phillips > Can someone help me understand why the compiler is complaining about this > code. I get two errors: > > The method onGenericMotionEvent(MotionEvent) is undefined for the type > HorizontalScrollVi

[android-developers] Re: Replacement for java.security.CodeSource

2011-10-28 Thread jcpalmer
There is a package I found: android.content.pm. The overview starts with "Contains classes for accessing information about an application package, including information about its activities, permissions, services, signatures, and providers." I am looking to verify the signature of a file downloa

[android-developers] Re: (Scrolling a Table) Can't Figure Out Compiler Error

2011-10-28 Thread Mark Phillips
Can someone help me understand why the compiler is complaining about this code. I get two errors: The method onGenericMotionEvent(MotionEvent) is undefined for the type HorizontalScrollView The method onGenericMotionEvent(MotionEvent) of type MyHorizontalScrollView must override a superclass metho

[android-developers] GPS filtering

2011-10-28 Thread Ab Caballero
Using requestLocationUpdates(), the GPS fetches more than one location fix per interval. I have attempted to use hasAccuracy() and getAccuracy() to filter the amount of data that is fetched. However, it doesn't limit the fetch to one single point. Is there any way to filter the data so that I captu

Re: [android-developers] Re: get first row from cursor

2011-10-28 Thread Kostya Vasilyev
Nope, the initial position is *before* the first row. ... which is why a loop like this loops over all rows, first included: cursor = db.query(...) while (cursor.moveToNext()) { cursor.getString(...) } ... and: Android cursors aren't kept open (as far as the database goes) - query() preloads d

[android-developers] Preview of ADT with library project fixes

2011-10-28 Thread Xavier Ducrohet
hey all, We've just pushed a preview of an update to ADT that should fix building library projects. It is a manual download as we are looking for feedback before we publish it to the public repository. You can see more details and download it here: http://tools.android.com/download thanks Xav --

[android-developers] Replacement for java.security.CodeSource

2011-10-28 Thread jcpalmer
Noticed in the java.security.CodeSource java doc online that the class overview says: "Legacy security code; do not use. " Has something changed? Is not in my aging disk version of the doc (should upgrade but that is not the point) -- You received this message because you are subscribed to the

[android-developers] Re: get first row from cursor

2011-10-28 Thread lbendlin
there is no need to use cursor.moveToFirst() when you open the cursor the first time. It already is at the first row. You only need moveToFirst() when you want to iterate through a recordset again. Although I think if you need to do that then something's not right in your app design. keeping c

[android-developers] Re: Load Map

2011-10-28 Thread lbendlin
show what you have tried. -- 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+unsubscr...@googlegroups.com

[android-developers] Re: Stack overflow error

2011-10-28 Thread Studio LFP
Put a log output in your onFocusChange and run it again. I think you may find you are causing an infinite loop. Notice in your error log that they are all on the same millisecond and you have multiple onFocusChange hits. Without more code, I can't validate this for sure, but I've seen this bef

Re: [android-developers] Android WifiLock WIFI_MODE_SCAN_ONLY not working

2011-10-28 Thread Irfan Sheriff
The system can always override to make a connection. scan only wifilock ensures wifi is not shutdown and kept up for scans. On Thu, Oct 27, 2011 at 4:14 AM, Vasco Fernandes < vasco.m.fernan...@gmail.com> wrote: > Hi, > > I'm trying to block the wifi connections. I want my application to turn on >

[android-developers] Stack overflow error

2011-10-28 Thread vani reddy
10-29 00:32:31.026: ERROR/AndroidRuntime(312): java.lang.StackOverflowError 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.requestChildFocus(ViewGroup.java:431) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.addViewInner(ViewGroup.java:199

[android-developers] Prevent StackView from animating automatically

2011-10-28 Thread Joan Pujol
Hi, I've a StackView android widget and I want it to don't animate automatically leaving always at the top the same item unless the user change it manually. Cheers, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Contact Prediction

2011-10-28 Thread Studio LFP
You may want to check out the AutoCompleteTextView here: http://developer.android.com/reference/android/widget/AutoCompleteTextView.html You can put a cursor adapter behind it that connects to the contacts in the device. Steven Studio LFP http://www.studio-lfp.com On Friday, October 28, 2011

[android-developers] Should I use the same certifcate for all my apps or a different one per app?

2011-10-28 Thread Ricardo Amaral
I suppose the documentation recommends one certificate per developer, so all apps belonging to someone, are, somehow, associated to that one developer. But I'm wondering if there is anyone out there using one different certificate per app and what are the advantages of doing so? If any... But

[android-developers] Contact Prediction

2011-10-28 Thread David Toledo
Hi All Exist some way for make Contact Prediction, I've saw that some apps dialer or contact list, ("Go Dialer", "Youlu Address Book"). Appears in your contact list, contact from gmail or skype, these infomation is saves in some "provider" Best Regards David -- You received this message becau

[android-developers] protected mode?

2011-10-28 Thread bob
On the recent x86 desktop processor, protected mode is used to ensure processes don't jack with other processes' memory. How does Android and the ARM processor typically handle this? One reason I'm wondering is because my VIZIO tablet got jacked up and required a factory reset. I called VIZIO tr

[android-developers] Re: How to call native (JNI) code from test application

2011-10-28 Thread mellery451
argh - you are correct. I just checked the LogCat output and I now see that the library is in-fact being loaded, but the method call itself is failing to resolve. Upon further inspection, it turns out I renamed my method but forgot to rename it in the native implementation file. Fixed that and now

[android-developers] Re: How do you use and debug your apps in your main phone?

2011-10-28 Thread Ricardo Amaral
Thank you all for all the answers, I have lot to think about now :) -- 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 andro

[android-developers] Re: How to call native (JNI) code from test application

2011-10-28 Thread Studio LFP
The static initializer of your Java wrapper should be loading the library. Do you have a System.loadLibrary() call in there? If you do, make sure you have copied the .so file into the proper location in the libs directory of your project. Steven Studio LFP http://www.studio-lfp.com On Friday,

[android-developers] Re: Xperia Neo bootloader unlock question

2011-10-28 Thread Danny.Zubiate
As stated on the Unlocking the Boot Loader article at http://unlockbootloader.sonyericsson.com/, "you may void the warranty of your phone and/or any warranty from your carrier if you unlock the boot loader." The warranty is only voided if you unlock the boot loader. Getting the code from the webs

[android-developers] How to call native (JNI) code from test application

2011-10-28 Thread mellery451
I'm building an app and I have a corresponding test application for it. One of the first items I have added is some native code for a well- encapsulated computation (hashing). I now want to test this native code from my test application. I've imported the JNI wrapper class into my InstrumentationTe

[android-developers] Re: How do you use and debug your apps in your main phone?

2011-10-28 Thread MB
You could store your data in sdcard instead of storing it in per-app storage area. Deleting the app does not wipe the data the app stores on the sdcard. The best option would be to buy a low end Android device from Craigslist/Amazon/Ebay etc. Your time is much more valuable than what a low end dev

[android-developers] Synchronizing video events...

2011-10-28 Thread blake
Does anyone have any suggestions about how to force video events to happen at an exact time? I've been thinking about an application that would require two adjacent phones to display the same thing at exactly the same time and I'm wondering what that granularity of "exact" is going to be. Some te

Re: [android-developers] How do you use and debug your apps in your main phone?

2011-10-28 Thread Josh Lefler
Depending on how your app stores data, you could adb pull the data files prior to installing the development version, do your testing, reinstall the production version, then adb push the data files back to your device to restore the production state.I do this with a small app of mine that uses sqli

Re: [android-developers] close my browser

2011-10-28 Thread Kristopher Micinski
Not a question for this list, but in general, you don't "close" applications. Why do you want to do this? I suspect that any problems with this can be solved by clearing the history.. kris On Fri, Oct 28, 2011 at 6:49 AM, venugopal reddy wrote: > Hi > > I want to close my browser. I can go bac

Re: [android-developers] How do you use and debug your apps in your main phone?

2011-10-28 Thread Kristopher Micinski
Except that there are people who distribute debuggable apks... Kris On Fri, Oct 28, 2011 at 12:17 PM, Ricardo Amaral wrote: > Yes, that's another solution. But something I really wanted to avoid. > > If the whole thing was automatic, it would be great. For instance, the > android:debuggable attr

[android-developers] Fwd: Android Calendar to sync after adding events programmatically

2011-10-28 Thread David Toledo
Hi All is possible that some trigger in Android Calendar can be to sync new events after adding events programmatically. Thanks David -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] SDK 4, R15, where is the navigation button?

2011-10-28 Thread sblantipodi
As title. Where is the navigation button? I can see this button in WXGA800 resolution only. Why? -- 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 t

[android-developers] Re: Android SDK is the must buggy SDK in the entire mobile ecosystem.

2011-10-28 Thread sblantipodi
If you read better, I posted a solution two minutes later that I opened this thread that doesn't require external tool. This is only one of the dozens of problems with this alpha sdk without quality control. I can say for sure that this is the worst SDK in the mobile market. On Oct 28, 4:52 pm,

Re: [android-developers] APK removing time message popup

2011-10-28 Thread Mark Murphy
On Fri, Oct 28, 2011 at 5:29 AM, NAVI NEW wrote: > I have a created app apk , i am installing that one on devices  but i > want message from side when user removing this specific application > from his own device . Fortunately, this is not supported. > Is this possible in android when removing t

Re: [android-developers] How do you use and debug your apps in your main phone?

2011-10-28 Thread Ricardo Amaral
Yes, that's another solution. But something I really wanted to avoid. If the whole thing was automatic, it would be great. For instance, the android:debuggable attribute could be used for something like this. As long as that attribute is true, the app could behave as an app with a different pac

Re: [android-developers] How to load a html file from sd card in a webview ?

2011-10-28 Thread Mark Murphy
webView.loadUrl(Uri.fromFile(...).toString()) where ... is a File object pointing to your file and webView is your WebView. On Fri, Oct 28, 2011 at 7:41 AM, Jovish P wrote: > How to load an html file which downloaded to SDCard  through my application > in a webview ??? > > > Regards , > Jovish P

Re: [android-developers] Disable video output on the application

2011-10-28 Thread Mark Murphy
On Fri, Oct 28, 2011 at 7:45 AM, Ricardo Silva wrote: > For security term of using and published videos, I need to disable all > the video output on the android devices. > How I can disable through the API or other way? There is no concept of video output in the Android SDK. Device manufacturers

Re: [android-developers] A question regarding publishing an application in android market

2011-10-28 Thread Mark Murphy
On Thu, Oct 27, 2011 at 6:16 AM, Kobi wrote: > I developed an application which has the following permissions on its > "androidManifest.xml" file: > android.permission.CALL_PHONE" > android.permission.READ_PHONE_STATE" > The problem is that I cannot download this application through > "Android Mar

Re: [android-developers] Re: Install an android app on Google TV

2011-10-28 Thread Mark Murphy
http://googletv.blogspot.com/2011/10/update-on-google-tv.html 2011/10/28 John Davis : > I have a logitech revue. Will they ever enable marketplace on these > things? I would love to install AngryBirds on my 55" tv. > > On Thu, Oct 27, 2011 at 7:32 AM, Punith Raj wrote: >> Hi dillipk, >> >> Goog

Re: [android-developers] Re: Account suspended

2011-10-28 Thread Kristopher Micinski
That's for a chrome extension... so I'd say... no. Kris On Fri, Oct 28, 2011 at 11:56 AM, JackN wrote: > You? > > http://www.chillingeffects.org/dmca512c/notice.cgi?NoticeID=131464 > > > > On Oct 26, 5:27 am, Sy wrote: >> I received an email yesterday informing me that my developer account >> h

[android-developers] Re: get first row from cursor

2011-10-28 Thread André
Thanks both of you. It worked! On Oct 28, 5:35 pm, Kostya Vasilyev wrote: > 28.10.2011 19:12, André пишет: > > > cursor.moveToFirst(); > > while (cursor.moveToNext()) { > > ...} > > > When I use this code the first row in my cursor seems to be skipped. > > Of course - the code moves to first row,

[android-developers] Scrolling a Table

2011-10-28 Thread Mark Phillips
I have a table with 10 columns and 11 rows. All the columns are the same size, except the first and last. I only want to display three columns at a time - the first, a middle column, and the last column. Vertical scrolling is handle normally. My layout is: LinearLayout ScrollView (for vertica

[android-developers] Re: Account suspended

2011-10-28 Thread JackN
You? http://www.chillingeffects.org/dmca512c/notice.cgi?NoticeID=131464 On Oct 26, 5:27 am, Sy wrote: > I received an email yesterday informing me that my developer account > has been suspended. > > "Your Android Market Publisher account has been suspended due to > multiple suspension violatio

[android-developers] Re: Load Map

2011-10-28 Thread Andrei
Did this check does not work ( On 28 окт, 05:42, lbendlin wrote: > you can  make your mapview a singleton and then check it via > > if (myMapView != null) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

Re: [android-developers] Update Fragment View

2011-10-28 Thread raunak
Yes, you are right! 1 Fragment represent one UI. Better way to tackle my problem would be to include both layout in one xml, and use hide/show in setVisibility();. This approach would be much cleaner than de-attaching, re-attaching the fragment. Thanks for your input, which led me to the answer

[android-developers] Re: get first row from cursor

2011-10-28 Thread Studio LFP
Remove the cursor.moveToFirst(). The moveToNext() will move the pointer to the first row the first time through the while statement. If you need to reset the cursor before the while loop, try using cursor.moveToPosition( -1 ). Steven Studio LFP http://www.studio-lfp.com On Friday, October 28

Re: [android-developers] get first row from cursor

2011-10-28 Thread Kostya Vasilyev
28.10.2011 19:12, André пишет: cursor.moveToFirst(); while (cursor.moveToNext()) { ...} When I use this code the first row in my cursor seems to be skipped. Of course - the code moves to first row, then moves to next row, then does "..." It feels wrong to make the cursor jump back one ste

[android-developers] get first row from cursor

2011-10-28 Thread André
cursor.moveToFirst(); while (cursor.moveToNext()) { ...} When I use this code the first row in my cursor seems to be skipped. It feels wrong to make the cursor jump back one step in while every time. How would I get the first row ? //André -- You received this message because you are subscribed

Re: [android-developers] How i can make that a polygon fill the 80% of the width of the screen?

2011-10-28 Thread John Davis
Hello Saez, This looks like opengl code which uses glut library for windows/linux. I suggest you look into Ed Burnette's Hello Android book. It shows you how to draw a cube in opengl on android. Start there. John F. Davis 独树一帜 -- You received this message because you are subscribed to the G

[android-developers] Best practices for bundling a custom ringtone/notification sound with your app?

2011-10-28 Thread Russell Stewart
I have been developing for Android for quite a while now, but for the first time I am going to be bundling a few custom notification sounds with my app. I am curious if there is any standard practice for making those sounds available to the user? I currently have the mp3 files in in the "assets

[android-developers] Re: Android SDK is the must buggy SDK in the entire mobile ecosystem.

2011-10-28 Thread Peter Sinnott
There are a lot of tools for helping with issues like this. http://www.emptyloop.com/unlocker/ Kinda sad really. It makes it look like no one in the installer team bothers to test with the most popular platform. On Oct 28, 1:48 pm, sblantipodi wrote: > Obviously I closed everything before posti

Re: [android-developers] How to get updated c2dm registration Id.

2011-10-28 Thread Studio LFP
I don't think the ID you get for the device expires. If you give the user the option of unregistering, then you would use the same register routine again to get a new ID. If the user uninstalls the application, it also unregisters and you would need to get a new ID if they reinstalled. If neith

[android-developers] 3G+USB_tethering doesn't work on http

2011-10-28 Thread fycd
Hi all: Now I find that when I use 3G+USB_tethering. my PC can't access any website. but,it can access MSN, access ftp, it can sand and receive Email with Email-client(such as Evolution). and it just CAN'T access any website. I don't know whether it is wrong with the configuration of my PC's bro

[android-developers] How i can make that a polygon fill the 80% of the width of the screen?

2011-10-28 Thread saex
I have a simple square (polygon), and i want that it fills the 80% of the width of the screen In other words, i want to position the square on the center on the center of the screen, but with a width of the 80% of the total width of the screen How can i do it? I can't find examples/tutorials abou

[android-developers] Re: Newb Learning to Debug

2011-10-28 Thread Studio LFP
Check out the log functions here: http://developer.android.com/reference/android/util/Log.html You drop them in and around the functions you want to debug to output variables and status. Doing this helps you confirm in real-time that things are going well. There are times where you will not be

Re: [android-developers] HTC opengles blank screen (and ANR) issues.

2011-10-28 Thread Raghav Sood
I don't have an HTC, but this happens on my Optimus One occasionally. If I use the phone without restarting for around 30-40 days, the apps will work fine for ages and then suddenly every single opengl app starts showing a black screen. Restarting fixes it instantly. I'm running 2.3.3, stock. Than

Re: [android-developers] How to get updated c2dm registration Id.

2011-10-28 Thread Manikandan M
Hi All, Any ideas. Thanks Manikandan On Fri, Oct 28, 2011 at 3:50 PM, Manikandan M wrote: > Hi All, > > Is that any other way to do this without registering at particular > interval. > > > Thanks > Manikandan > > > On Fri, Oct 28, 2011 at 2:52 PM, Manikandan M wrote: > >> Hi All, >> >> As i kn

[android-developers] Re: Including SWF file in my android project

2011-10-28 Thread Jeremy Dagorn
And? What do you want to do exactly? If you want to play the file, you have to opened it in a webview I guess, or maybe just open it (if there is a flash player on your phone it will play it without issues probably..). You could stored it in the assets' folder of your application. Could you be mor

Re: [android-developers] How do you use and debug your apps in your main phone?

2011-10-28 Thread Studio LFP
You can always change the package name to add "beta" or something in it somewhere. The same application can live on your device twice if the package names aren't the same. I've done it before and as long as you are using storage that is specific to the app instead of a common directory on the S

Re: [android-developers] HTC opengles blank screen (and ANR) issues.

2011-10-28 Thread John Davis
Enable the opengl debugging so that output goes to the logcat. It will also cause an exception to break execution if an opengl error occurs. On Thu, Oct 27, 2011 at 3:02 AM, Affine Studios wrote: > We're having an issue with our app/game on what seems to be many HTC > devices where a blank scree

Re: [android-developers] A question regarding publishing an application in android market

2011-10-28 Thread John Davis
Possibly. The marketplace app filters available apps by the host platform capabilities. On Thu, Oct 27, 2011 at 6:16 AM, Kobi wrote: > I developed an application which has the following permissions on its > "androidManifest.xml" file: > android.permission.CALL_PHONE" > android.permission.READ_PH

Re: [android-developers] Re: Install an android app on Google TV

2011-10-28 Thread John Davis
I have a logitech revue. Will they ever enable marketplace on these things? I would love to install AngryBirds on my 55" tv. On Thu, Oct 27, 2011 at 7:32 AM, Punith Raj wrote: > Hi dillipk, > > Google TV is supported only for android version 3.1 and above, Install > the updated versions and you

Re: [android-developers] Android developer discussion forums?

2011-10-28 Thread John Davis
I like #android-dev on irc.openprojects.net. -- John F. Davis 独树一帜 -- 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 and

Re: [android-developers] emulator

2011-10-28 Thread John Davis
You are not specifying a virtual disk image. In other words, you are running just the emulator but not an emulator running a specific machine. Put in terms of vmware, you are running a vmware software, but not the vmware software plus your pc's disk image. In terms of real hardware, you are boot

Re: [android-developers] how to make app run forever with out exit

2011-10-28 Thread John Davis
Hi Sureshmca, Try to search for 10 innovations in Android presentaion. One of them is that apps never exit. The apps are suspended. You can use the application manager to force stop or uninstall the application. I am not certain if you can use this method to uninstall another applicaiton thoug

Re: [android-developers] Re: How do you use and debug your apps in your main phone?

2011-10-28 Thread John Davis
On Fri, Oct 28, 2011 at 9:58 AM, Ricardo Amaral wrote: > I already use the emulator a lot for development but it's always good to > test on a real device and I do it from time to time just to make sure > everything works. I think I'll wait until I buy a new Android phone, I have > an HTC Hero and,

Re: [android-developers] First Question ... be gentle

2011-10-28 Thread John Davis
2011/10/28 Francisco Dalla Rosa soares : > http://lmgtfy.com/?q=java+override > I can't of nicer way to do this :) > > > 2011/10/28 JBlaza >> >> I have looked on several other forums. i am new to the java programming >> community, and i am looking for a clear understanding of the @overide >> annot

[android-developers] Re: How do you use and debug your apps in your main phone?

2011-10-28 Thread Ricardo Amaral
I already use the emulator a lot for development but it's always good to test on a real device and I do it from time to time just to make sure everything works. I think I'll wait until I buy a new Android phone, I have an HTC Hero and, as you can imagine, got stuck in time; I'll use that for de

Re: [android-developers] How do you use and debug your apps in your main phone?

2011-10-28 Thread Ricardo Amaral
I think I'll have to add that to my todo list... Too bad there are no better alternatives. :/ -- 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

Re: [android-developers] New to Android

2011-10-28 Thread John Davis
Hi Sean, If you have an already built .apk file, you can use the command line to install it on the emulator. adb install foo.apk John On Fri, Oct 28, 2011 at 3:35 AM, MANISH RAJ wrote: > Hi Sean Thomas, > As you wrote there you want run a project which is already you have. If > you have pro

Re: [android-developers] opengl and sketchup problem

2011-10-28 Thread John Davis
On Fri, Oct 28, 2011 at 7:57 AM, Latimerius wrote: > On Thu, Oct 27, 2011 at 8:38 PM, John Davis wrote: >> That is what I kind of what I tried to do (I used GL_VERTEX_ARRAY, >> INDEX_ARRAY was not there.): > > That's correct, sorry, I got distracted. GL_INDEX_ARRAY is a different thing. > >> Usi

[android-developers] new features of ICS

2011-10-28 Thread Zhihong GUO
Hi all, It is said in Android 4.0 platform information that: the CSS 3D transformations are supported. can someone tell me what kind of hardware required by this feature? CPU, GPU, MEMORY and others? Thanks a lot. James -- You received this message because you are subscribed to the Google Grou

Re: [android-developers] Newb Learning to Debug

2011-10-28 Thread John Davis
Hi On Fri, Oct 28, 2011 at 9:10 AM, nester wrote: > So I'm making progress on my first real android app (not hello world). > So far everything is going pretty smooth... except for debugging. I > just can't figure it out for the life of me! > Good. Keep at it. > I've been able to insert breakpo

[android-developers] Error in documentation

2011-10-28 Thread Arnaud VALLAT
Hello, how can I report an error in the documentation? Regards -- 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-

  1   2   >