Re: [android-developers] Create an object class but error

2012-05-24 Thread Daniel Drozdzewski
oh dear, i suggest learning java first. D. On Thursday, 24 May 2012, HK Tsang hktsan...@gmail.com wrote: I've passed the code when I add player = new MyPlayer() in onCreate. but next step, I change it to array: MyPlayer[] players; . . . . onCreate players = new MyPlayer[4];

Re: [android-developers] How to create an ongoing notification, without the icon in the top bar.

2012-05-24 Thread Kristopher Micinski
No, because there will always have to be something there, it's a security feature of the system. kris On Thu, May 24, 2012 at 1:52 AM, Put_tiMe putt...@gmail.com wrote: I kind of figured that out, it shows a blank icon. But the draw back is it still uses up real estate. Is there no way we

[android-developers] SQLiteException: no such table

2012-05-24 Thread Ralph Bergmann | the4thFloor.eu
Hello, my app was released a year ago or so, but now one year later, I get the following error message: android.database.sqlite.SQLiteException: no such table: tracking: , while compiling: SELECT _id, ... How can it happen that the table does not exist? In one installation of thousands? The

[android-developers] java.lang.ClassNotFoundException

2012-05-24 Thread Ralph Bergmann | the4thFloor.eu
Hello, how can the following error happens? The app was build and exported via Eclipse. It has over 2300 installations but one user reports this error. java.lang.RuntimeException: Unable to instantiate application de.sportscheck.SportScheckApplication: java.lang.ClassNotFoundException:

Re: [android-developers] java.lang.ClassNotFoundException

2012-05-24 Thread TreKing
On Thu, May 24, 2012 at 1:22 AM, Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu wrote: It has over 2300 installations but one user reports this error. It's a fluke, likely caused by a bad install. Ignore it. Haven them re-install the app if you can.

[android-developers] Re: SQLiteException: no such table

2012-05-24 Thread imran ali
How can it happen that the table does not exist? In one installation of thousands? -- Seems bad installation of app. so, re-install and try. -- Another reason, phone is on low memory and having no space to create db. so DB has not created and your query is going to ask about table. So,

Re: [android-developers] Create an object class but error

2012-05-24 Thread HK Tsang
Yes you are right. Acturally I'm learning both together right now. I just can learn it by my-self and find some exsample to study on web. No one can teach me arround me. Therefore I just can ask something that I don't understand in here. I know that my knowledge is too a little. But I hope someone

[android-developers] CheckBoxPreference.setChecked() doesn't take effect in Activity Test

2012-05-24 Thread Ira.Han
Hi, I'm writing a test app which have a operation of click on the CheckBoxPreference, here is my code: public class MyActivityTest extends ActivityInstrumentationTestCase2MyActivity{ . @UiThreadTest public void testEnable() { CheckBoxPreference mMyEnable =

[android-developers] Is it possible to open android camera and get a media path at activity response?

2012-05-24 Thread Lidia
Hello for readers, I would like to open the android camera to look like this one Intent cameraIntent = new Intent(android.provider.MediaStore.INTENT_ACTION_VIDEO_CAMERA); startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST); Where user may capture an image, record a video or open

[android-developers] ListView with Simple adapter

2012-05-24 Thread shruthi santosh
My feeds list conatins both text feeds and audio feeds. I have a button to view the complete text and a button to play the audio feeds. I am checking the the type of the feed to make the appropriate button visible. The first four feeds in the list gets the proper buttons but the rest are not

Re: [android-developers] Create an object class but error

2012-05-24 Thread Daniel Drozdzewski
HK, I am sorry you feel this way - and don't worry, you have not disturbed me. I think that you would be much better off, learning Java first, outside of Android or any other platform. Simply start some tutorial, going through nuances of Java. Problems you are having are very easy to fix, once

[android-developers] Re: CheckBoxPreference.setChecked() doesn't take effect in Activity Test

2012-05-24 Thread imran ali
Hi, guess you are using PreferenceActivity. so, check your xml, what have you given android:defaultValue=?, either true or false? Hope it will help you. Regards Imran Ali On Thursday, May 24, 2012 2:10:36 PM UTC+5:30, Ira.Han wrote: Hi, I'm writing a test app which have a operation of

Re: [android-developers] Writing a file to /data/local?

2012-05-24 Thread Bas Verhoog
I declared it in the Manifest's Permissions tab in Eclipse. It's been declared right, but I couldn't look it up (at someone else's PC for a second). On Thursday, May 24, 2012 6:31:59 AM UTC+2, TreKing wrote: On Tue, May 22, 2012 at 10:54 AM, Bas Verhoog basverhoo...@gmail.comwrote: Also, I

Re: [android-developers] Create an object class but error

2012-05-24 Thread HK Tsang
Daniel, Thank you for your kindly recommandation. Anyway, I've find what's the problem there and solved. Thank you very much. HK On Thu, May 24, 2012 at 5:29 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: HK, I am sorry you feel this way - and don't worry, you have not

[android-developers] Re: ListView with Simple adapter

2012-05-24 Thread imran ali
can you post part of code where your doing visible/invisible of buttons. I think you are doing some mistake in getView(...) method of Adapter. and it is going to mess on scroll of listview. Regards Imran Ali On Thursday, May 24, 2012 2:56:38 PM UTC+5:30, shruthi santosh wrote: My feeds list

Re: [android-developers] Re: Send the user to Google Play application's page

2012-05-24 Thread Francisco M. Marzoa Alonso
That's right. Note you can use market:// url instead http:// scheme so the link is opened directly with Google Play. On 23/05/12 20:34, Bas Verhoog wrote: Hello, Good to see that you've found an answer. That means I'm most likely right :). -- You received this message because you are

Re: [android-developers] Re: Send the user to Google Play application's page

2012-05-24 Thread Francisco M. Marzoa Alonso
Nice to known that , thanks Treking. Although documentation is very vast and sometimes it is hard to find what you are looking for if you do not know where to search exactly. I agree that documentation is my friend, but most of the time discussion groups are even friendly than docs. Regards, On

[android-developers] Re: ListView with Simple adapter

2012-05-24 Thread kalandar
hi shruthi, I think you are using if condition inside the getView method to visible or invisible some buttons. try if... else condition instead of if , like this if(condition true) { button visible; } else { button false; } it will cure your problem let me know this

Re: [android-developers] Re: ListView with Simple adapter

2012-05-24 Thread shruthi santosh
here is the code for getView(), public View getView(int position, View convertView, ViewGroup parent) { View row=super.getView(position, convertView, parent); ViewHolder holder=(ViewHolder)row.getTag(); if (holder==null) {

Re:[android-developers] ListView with Simple adapter

2012-05-24 Thread Hyukmin Kwon
.h On May 24, 2012 6:27 PM, shruthi santosh shruthi.shr...@gmail.com wrote: My feeds list conatins both text feeds and audio feeds. I have a button to view the complete text and a button to play the audio feeds. I am checking the the type of the feed to make the appropriate button visible.

[android-developers]

2012-05-24 Thread Hyukmin Kwon
-- 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 For more options, visit

Re: [android-developers] Re: ListView with Simple adapter

2012-05-24 Thread shruthi santosh
i had tried if ...else condition.it did not wok.so i changed it to if...else if shruthi On Thu, May 24, 2012 at 4:22 PM, kalandar kasimk...@gmail.com wrote: hi shruthi, I think you are using if condition inside the getView method to visible or invisible some buttons. try if...

Re: [android-developers] Re: ListView with Simple adapter

2012-05-24 Thread imran ali
Hi, why are you doing this View row=super.getView(position, convertView, parent); though you are in getView() Method. so you will get convertView that is same. Ok, follow this, if(convertview==null){ 1. inflate view, 2. check type of data and set visibility 3.set tag

[android-developers] Re: android configuration change asynctask

2012-05-24 Thread Greenhand
Thank you! On 5月24日, 上午12時59分, Kostya Vasilyev kmans...@gmail.com wrote: Androidsources are available here: http://source.android.com/ For quickly jumping from docs to source, I often use this: https://chrome.google.com/webstore/detail/hgcbffeicehlpmgmnhnkjbjoldk... AndroidSDK Reference

[android-developers] Re: Seekbar thumb (scrubber control) clipping and offset

2012-05-24 Thread Karakuri Dev
Someone please help me with this, it has me stuck for two days. -- 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] Re: graphing app and widget?

2012-05-24 Thread Richard Pickett
Hey gents, I'm looking for a basic graphing app that will pull a feed from a server. xml, csv, whatever. would be nice if it also had a widget that would display latest readings, also pulled from server (could be in the main dataset, could be separate). I'm asking more do you guys know of one

[android-developers] Re: uses-feature glEsVersion

2012-05-24 Thread Darren
Did you ever get this figured out? I'm running into the same problem. Actually, the current version of my app doesn't use ES 2.0, so I want to leave this old one up for phones that don't support my new version of the app, which requires 2.0. When I uploaded the apk and tried to simultaneously

[android-developers] Having troubles incompatibility related with Google Play and some devices even supporting all size screens

2012-05-24 Thread m3n0R
Hi everybody! I would like to know, why there is incompatibility problem with my application in some android devices (like HTC Explorer, Galaxy Mini...). Here is my manifest: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.newin.android

[android-developers] Re: File download failing

2012-05-24 Thread Karakuri Dev
Forgot to include link to same question: http://stackoverflow.com/questions/10741980/android-file-download-throwing-errors -- 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] Is the performance of a 3.0 ViewPropertyAnimator dramatically worse than changing multiple properties of a view directly and invalidating it?

2012-05-24 Thread duadinam
Hi Droids, I'm a newbie developer working, looking for some advice. I'm working on a project with a custom drag and drop, and we can't use the drag and drop framework. However, many properties will be changing at once. I'm looking into using the ViewPropertyAnimator setX setY function

Re: [android-developers] Is the performance of a 3.0 ViewPropertyAnimator dramatically worse than changing multiple properties of a view directly and invalidating it?

2012-05-24 Thread Romain Guy
ViewPropertyAnimator is designed and implemented to be *faster* than animating multiple properties with ObjectAnimator, etc. Note that it only makes sense if you're animating the values. On Thu, May 24, 2012 at 10:22 AM, duadinam somethingcleve...@gmail.com wrote: Hi Droids, I'm a newbie

[android-developers] Conversion from 2.2 to 4.0.3

2012-05-24 Thread Anirudh Loya
* * *Hello Guys,* * * *I have developed an Android Application in version 2.2. Lately, I have learnt AdMob for advertisement does not support version 2.2 for developing an application's adds. **It supports all versions above 3.2. Now I have to convert my application from 2.2 to 3.2 or 4.0.3.* * *

[android-developers] GLES20.glLinkProgram() does not return

2012-05-24 Thread sebastian_bugiu
I have a LinkedQueue that stores the calls to anything from the GLES20 class. After loading it up I send a requestRender() call to GLSurfaceView and in onDrawFrame() I process the queue and call the actual GLES20 method. Yet when I call GLES20.glLinkProgram() the function never returns. I don't

Re: [android-developers] Conversion from 2.2 to 4.0.3

2012-05-24 Thread TreKing
On Thu, May 24, 2012 at 12:31 PM, Anirudh Loya loya.anir...@gmail.comwrote: Lately, I have learnt AdMob for advertisement does not support version 2.2 for developing an application's adds. What has given you that impression?

Re: [android-developers] Conversion from 2.2 to 4.0.3

2012-05-24 Thread Anirudh Loya
Because AdMob documentation says that ! Even In Android Manifesto files android:confgchanges, I can't add screenSize|smallestScreenSize ! Check it out . On Thu, May 24, 2012 at 1:43 PM, TreKing treking...@gmail.com wrote: On Thu, May 24, 2012 at 12:31 PM, Anirudh Loya

Re: [android-developers] Conversion from 2.2 to 4.0.3

2012-05-24 Thread TreKing
On Thu, May 24, 2012 at 12:47 PM, Anirudh Loya loya.anir...@gmail.comwrote: Because AdMob documentation says that ! Can you provide a direct link? I just have to question this as the vast majority of devices are for 2.3.X, so it seem borderline retarded that AdMob would cut support for all

Re: [android-developers] Conversion from 2.2 to 4.0.3

2012-05-24 Thread Anirudh Loya
Adds gets display in all versions above 1.5 ! That is not the issue. When I have developed application in 2.2 version, My logcat shows You must have AdActivity declared in AndroidManifest.xml with configChanges. Which I have already done. Can you atleast assist me in changing from 2.2 to 4.0.3

Re: [android-developers] Is the performance of a 3.0 ViewPropertyAnimator dramatically worse than changing multiple properties of a view directly and invalidating it?

2012-05-24 Thread David Ozersky
Hi Romain, Thanks for getting back to me...but I addressed my question to Droids...and you make Droids...does that you make you some kind of alien? :) Here is the other implementation I am thinking of -

[android-developers] Re: Conversion from 2.2 to 4.0.3

2012-05-24 Thread RichardC
Totally wrong. You only need to set your build platform to 15, NOT the uses-sdk element in your manifest. The current AdMob (6.0.1) still support running on android down to andoird-3 My apps are compiling using platform version 15 with uses-sdk android:minSdkVersion=4

Re: [android-developers] Re: Conversion from 2.2 to 4.0.3

2012-05-24 Thread Anirudh Loya
You only need to set your build platform to 15, NOT the uses-sdk element in your manifest. How do i set Build platform to 15 ?? On Thu, May 24, 2012 at 2:27 PM, RichardC richard.crit...@googlemail.comwrote: Totally wrong. You only need to set your build platform to 15, NOT the uses-sdk

[android-developers] Re: GLES20.glLinkProgram() does not return

2012-05-24 Thread RichardC
Have your tried a simple test case? I would suggest a skeleton program with just 1 fragment and 1 vertex shader and link them into a program. Are you calling glGetError and logging or aborting after every OpenGL ES API call? On Thursday, May 24, 2012 6:37:17 PM UTC+1, sebastian_bugiu wrote:

[android-developers] Re: GLES20.glLinkProgram() does not return

2012-05-24 Thread sebastian_bugiu
Well the simple case works. I check after each call and compiling works.. creating the program works...everything return success. But when linking it just remains in the native call, never to return. I suspected that creating the shaders and program in one requestRender() and then linking in the

[android-developers] Re: GLES20.glLinkProgram() does not return

2012-05-24 Thread sebastian_bugiu
This is the vertex shader. I think it's basic enough uniform mat4 view_proj_matrix; uniform vec4 view_position; attribute vec4 vertex; attribute vec3 normal; varying vec3 vNormal; varying vec3 vViewVec; void main(void) { gl_Position = view_proj_matrix * vertex; vNormal = normal;

Re: [android-developers] Is the performance of a 3.0 ViewPropertyAnimator dramatically worse than changing multiple properties of a view directly and invalidating it?

2012-05-24 Thread Romain Guy
ViewPropertyAnimator is optimized to perform animations. It's not meant to be used to discreetly set properties. On Thu, May 24, 2012 at 11:26 AM, David Ozersky somethingcleve...@gmail.com wrote: Hi Romain, Thanks for getting back to me...but I addressed my question to Droids...and you make

[android-developers] Re: Conversion from 2.2 to 4.0.3

2012-05-24 Thread RichardC
In Eclipse: right click your project properties android [check] Android 4.0.3 [OK] Then clean your project - from the Eclipse main menus: Project Clean [check] your project [OK] On Thursday, May 24, 2012 6:31:28 PM UTC+1, Anirudh Loya wrote: * * *Hello Guys,* * * *I have

Re: [android-developers] Re: Conversion from 2.2 to 4.0.3

2012-05-24 Thread Anirudh Loya
Thanks all ! It works now .. On Thu, May 24, 2012 at 2:51 PM, RichardC richard.crit...@googlemail.comwrote: In Eclipse: right click your project properties android [check] Android 4.0.3 [OK] Then clean your project - from the Eclipse main menus: Project Clean [check] your project

[android-developers] Tips or links for efficient low CPU threads?

2012-05-24 Thread Matt Quigley
There's something in the app that happens in the background sporadically (daily to weekly). It's CPU intensive, but I don't want it to slow down the device. Right now, I'm creating a thread with MIN_PRIORITY, but it doesn't seem to help in anyway from the perceived slowdown of the phone while

[android-developers] Re: Tips or links for efficient low CPU threads?

2012-05-24 Thread RichardC
If setting the thread priority does not work, then I can only think of: - break the job into small chunks and schedule an alarm for each chunk - and possibly schedule the jobs for what you hope the phone's owner is asleep - put lots of sleep(s) in your code - every other line

[android-developers] Re: Having troubles incompatibility related with Google Play and some devices even supporting all size screens

2012-05-24 Thread RichardC
Just a comment, I can't find android.permission.ACCESS_GPS list in the docs: http://developer.android.com/reference/android/Manifest.permission.html On Thursday, May 24, 2012 5:27:00 PM UTC+1, m3n0R wrote: Hi everybody! I would like to know, why there is incompatibility problem with my

[android-developers] Can I launch an Android Application from Linux service?

2012-05-24 Thread John Bachus
Can I launch an Android Application from a Linux service? If so, do you have sample code to do this? -- 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

[android-developers] Re: SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

2012-05-24 Thread Etienne
I am thinking there is a problem with how the group/child CursorLoaders are instantiated in onCreateLoader(). For the group CursorLoader i just want all groups in my phone. The child cursorLoader should contain all contacts within a group. Does anyone have any ideas what could be the

Re:: [android-developers] Re: SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

2012-05-24 Thread Kostya Vasilyev
Do you know for a fact that SimpleCursorTreeAdapter or ExpandableListView accepts null for the children list cursor? What will it expand in this case? Also, are you sure that this cursor/list can be filled in later, as your code does, after the loader completes, asynchronously? 25.05.2012 2:42

[android-developers] Access intent filter action directly from AndroidManifest

2012-05-24 Thread Ubuntu guy
Hi, I'm trying to start a service from an activity using the intent action specified in the Android Manifest. As of now, i have to hard code the intent action while creating the intent, Intent serviceIntent = new Intent(); serviceIntent.setAction(com.android.blah); This

[android-developers] Re: Incoming HTTP requests

2012-05-24 Thread x300
Add uses-permission android:name=android.permission.INTERNET / in AndroidManifest.xml under manifest header, before the application /application pair. See http://developer.android.com/reference/android/Manifest.permission.html On May 23, 7:12 am, kypriakos demet...@ece.neu.edu wrote: Hi

[android-developers] java.lang.UnsupportedOperationException: getBlob is not supported

2012-05-24 Thread Deepwinter
I want to return a BLOB as a row in a MatrixCursor, however I get the following error 05-24 19:20:42.850: E/AndroidRuntime(22661): java.lang.UnsupportedOperationException: getBlob is not supported on top of this stack trace 05-24 19:20:42.850: E/AndroidRuntime(22661):at

[android-developers] dlopen(libomx_sharedlibrary.so, ...

2012-05-24 Thread tang
I posted a message about finding the OMX interface from Android, after more research, I knew libomx_sharedlibrary.so exists in android 2.x.x, from V4.x.x, the opencore was dropped and it won't exist anymore, google provided OMXAL from ndk7, but only mediaplayer implemented, I tried to get

Re: [android-developers] Access intent filter action directly from AndroidManifest

2012-05-24 Thread TreKing
On Thu, May 24, 2012 at 7:27 PM, Ubuntu guy sam_...@yahoo.co.in wrote: I'm trying to start a service from an activity using the intent action specified in the Android Manifest. That's not what that's for. The intent information in the manifest is for the system to find components that match

[android-developers] Add additional blank element or select string in SimpleCursorAdapter for spinner

2012-05-24 Thread priya abc
Hello, Spinner spIdentification1=(Spinner) findViewById(R.id.spinner1); Cursor cursorIdentification= *this*.dbH1.getReadableDatabase().query( MasterIdentifierType,*new* String[] { IdentifierTypeUid _id, ExternalID,ObjectName, Description, ListOrder,CreatedDate, CreatedByUid,

[android-developers] Re: Launching settings from notification bar does not dismiss keyguard

2012-05-24 Thread Sarath Vipparthi
This behavior was on Android 4.0.2 . On Android 4.0.4, even launching settings from notification bar dismisses the keyguard, which seems logical. Thanks, --sarath On Tue, May 22, 2012 at 4:36 PM, sarath sarath.vippar...@gmail.com wrote: Hi All, On ICS, when slide lock is set, and there is a

[android-developers] Which is better, one trigger receiver and multiple services -- or -- one trigger receiver per service.

2012-05-24 Thread Put_tiMe
I have a situation where in I need to have 5 or more services running in the same package. Let's call it service A, B, C, D and E Which is a better way of doing this? Better in terms of memory and CPU usage (and hence battery usage and efficiency). 1. Have 1 main service running, apart from

[android-developers] Re: noob developer, application keeps restarting

2012-05-24 Thread Yan
Why? On May 21, 10:07 am, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, May 21, 2012 at 9:45 AM, Yan yinor...@gmail.com wrote: An easier but less graceful way is just to System.exit(0) in the onPause then start from scratch every time... You absolutely *should not* be doing