[android-developers] implicit intent launch Activity

2010-01-21 Thread xiaowei guo
hi all: i found a surprised problem descripted following manifest.xml application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.IntentMainActivity android:label=@string/app_name intent-filter action

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Andre
Link to my .apk file: http://rapidshare.com/files/338665093/Asteroids.apk.html You can use following command to see output from the app: adb logcat dalvikvm:D Asteroids:D *:S There is a little issue with gc somewhere during the app init, not solved yet..., and after this I have no gc calls

[android-developers] Orientation change crash in tab activity with list activity.

2010-01-21 Thread NoraBora
When views with different type have same id and screen orientation changes, either java.lang.ClassCastException: android.view.AbsSavedState$1 or java.lang.IllegalArgumentException: Wrong state class -- expecting View State will occur. (depends on the view's order) Because

Re: [android-developers] Orientation change crash in tab activity with list activity.

2010-01-21 Thread Mark Murphy
This means we cannot use ListActivity ExpandableListActivit at the same in one tab activity. Presumably not, if your analysis is correct, and I suspect it is. To get the visual effect you want, use ListView and ExpandableListView as the contents of the tabs, not activities. Then, you can

[android-developers] Problem in sending sms

2010-01-21 Thread Nemat
Hi. I am trying to send sms using SmsManager class.Here is my code: PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, SMSSender.class), 0); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(9001100444, null, This is test message, pi, null); SMS is sent

[android-developers] Does any changes in the child of listview is reflected in its adaptor.

2010-01-21 Thread Manoj
Hi can anybody tell me exactly how can i get the the exact status of the listview items.(I have used checkbox as the listview item) -- 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] Example on how to use Scroller in an activity

2010-01-21 Thread Sonic..
Hello I tried googling for any example on how to use Scroller for doing manual handling of scrolling, but couldn't came across one. I would be grateful if anyone could please help me out in this, on how to use a Scroller in an activity. Thanks in advance -- You received this message because

[android-developers] Re: Example on how to use Scroller in an activity

2010-01-21 Thread Manoj
You can add scrollView to your layout and then add what you want to scroll as a single child to that scrollview. -- 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] Access Download Manager DB

2010-01-21 Thread Manjunatha M
Hi, I want to access Downloads databases in my Activity. But I am seeing a SecurityException. Even though I added the permission in my Manifest file, I still see the same crash happening. Here is the Java Code.. mDownloadCursor = managedQuery(Downloads.CONTENT_URI, new

[android-developers] How to implement SyncML Device management objects in android

2010-01-21 Thread saikiran n
Hi, I want to implement SyncML Device management and gone through following document http://www.openmobilealliance.org/tech/affiliates/syncml/syncml_dm_std_obj_v11_20020215.pdf In that they have specified SyncML DM supports 3 types of device management objects 1 The DevInfo management object 2 The

[android-developers] Re: Example on how to use Scroller in an activity

2010-01-21 Thread Sonic..
I know, but then I require to move two seperate layouts horizontally simultaneously. and these layouts are not child of one parent, so it's not possible to add them in a single HorizontalScrollView. It is for this reason that I thought that I need to scroll them programmatically using Scroller.

[android-developers] Re: Example on how to use Scroller in an activity

2010-01-21 Thread skink
On Jan 21, 10:23 am, Manoj linkex.ma...@gmail.com wrote: You can add scrollView to your layout and then add what you want to scroll as a single child to that scrollview. hi Scroller has nothing to do with ScrollView Scroller is just a thing to simulate some kind of mechanics (kinetics?)

[android-developers] Re: Saving the contents of an array

2010-01-21 Thread free1000
One way could be to use StringTokenizer Google for the java.util.StringTokenizer java class. Save your string array by concatenating the contents with eg: a comma to your prefs string Then read the string and use StringTokenizer to split the prefs string using the comma as the token, and load

[android-developers] Re: How to implement SyncML Device management objects in android

2010-01-21 Thread Miguel Paraz
On Jan 21, 5:26 pm, saikiran n saikiran@gmail.com wrote: Bearer- Type of the bearer(I didn't get information about this) TelephonyManager can give you this. Oem-original equipment manufaturer((I didn't get information about this) I don't think there is a method to get the OEM - even the

[android-developers] New AChartEngine release

2010-01-21 Thread Dan Dromereschi
Hi all, We are proud to announce a new release for the AChartEngine charting library. You can download it here: http://code.google.com/p/achartengine/downloads/list As it is an open-source project (Apache License 2.0), everyone is welcome to contribute: * join the AChartEngine group

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread skink
On Jan 21, 9:22 am, Andre andranik.abra...@gmail.com wrote: Link to my .apk file: http://rapidshare.com/files/338665093/Asteroids.apk.html You can use following command to see output from the app: adb logcat dalvikvm:D Asteroids:D *:S There is a little issue with gc somewhere during the

[android-developers] How to close an application?

2010-01-21 Thread pink 444
Hi, In my application i have to close the application. Hence i am using System.exit(1). But some times it is trying to restart entire application. What is the problem? How can i close an application safely? Thanks in advance. -- You received this message because you

[android-developers] How to execute Replace command

2010-01-21 Thread saikiran n
Hi, In SyncML Device management Replace command is used to replace DevInfo or DeviceDetails But i don't know how to acheive this. We can read the DevInfo from android.os.Build API This is only readable , how to execute this Replace command in remote device management using SyncML. Thanks in

[android-developers] Run application from last Activity/state

2010-01-21 Thread ayanir
Hello, I have an application with several Activities. My A Activity has the Manifest Intent filter parameters: action.MAIN and category.LAUNCHER. after its being loaded I call Activity B and finish() A since I don't use it anymore. After I run my application, go from Activity A to B and press

[android-developers] Re: Access Download Manager DB

2010-01-21 Thread Manjunatha M
is there any work around to test this?? I am not able to push my apk to /system/app. it says out of memory. Any other way?? On Thu, Jan 21, 2010 at 2:54 PM, Manjunatha M man...@gmail.com wrote: Hi, I want to access Downloads databases in my Activity. But I am seeing a SecurityException. Even

Re: [android-developers] How to close an application?

2010-01-21 Thread Mark Murphy
In my application i have to close the application. No, you don't. Hence i am using System.exit(1). Please do not do this. But some times it is trying to restart entire application. What is the problem? You are trying to close the application. Please do not do this. If

Re: [android-developers] Access Download Manager DB

2010-01-21 Thread Mark Murphy
I want to access Downloads databases in my Activity. You cannot do this from an SDK application. But I am seeing a SecurityException. That is because you cannot do this from an SDK application. Even though I added the permission in my Manifest file, I still see the same crash happening.

[android-developers] Android 2.1 bug: uses res/layout-v3 instead of res/layout

2010-01-21 Thread Stefan Klumpp
In addition to the general res/layout folder I have a res/layout-v3 folder for backward compatibility with Android 1.5, which has problems with some RelativeLayouts. It works perfectly with all phones and emulator versions tested so far. Except of 2.1 (emulator and Nexus One). They choose to

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Andre
Hi skink, thanks for test. On what device you tested? What FPS you got, when not shooting bullets? Yes, I think I should avoid any rotation operation on Canvas... Best Regards, Andre On 21 янв, 12:41, skink psk...@gmail.com wrote: On Jan 21, 9:22 am, Andre andranik.abra...@gmail.com wrote:

[android-developers] Accessing google calendar through Android using the given protocol

2010-01-21 Thread Nikhil Agarwal
I need to insert,update,delete events in google calendar using android. I tried using the gdata calendar protocol directly from http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html but I could not go beyond authenticating the user. I was able to authenticate the user and I

[android-developers] Accessing google calendar through Android using the given protocol

2010-01-21 Thread Nikhil Agarwal
I need to insert,update,delete events in google calendar using android. I tried using the protocol given at http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html but I was unable to go beyond authenticating the user. I was able to authenticate the user and I extracted the

[android-developers] Accessing google calendar through Android using the given protocol

2010-01-21 Thread Nikhil Agarwal
I need to insert,update,delete events in google calendar using android. I tried using the protocol given at http://code.google.com/apis/calendar/data/2.0/developers_guide_protoc... but I was unable to go beyond authenticating the user. I was able to authenticate the user and I extracted the Auth

[android-developers] Loop audio from mic to earpiece?

2010-01-21 Thread draf...@gmail.com
Hi all, I was wondering is it possible with Android to record from the mic and play the sound back out the earpiece with just a 1 second delay? I have seen the tutorials and can currently record from the mike and save a 3gp file to the sd card. However is it posssible to record and say stream

[android-developers] Re: Problem in sending sms

2010-01-21 Thread Nikhil Agarwal
Probably your SMSSender.class also sends a SMS. Once SMS is sent, it will pass an intent to the SMSSender activity. On Jan 21, 5:02 pm, Nemat nemate...@gmail.com wrote: Hi. I am trying to send sms using SmsManager class.Here is my code: PendingIntent pi = PendingIntent.getActivity(this,

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread Michael
AudioRecord and AudioTrack are the classes you need. If you use them in streaming mode then you can pipe data out of AudioRecord straight into AudioTrack and you should be able to acheive the desired effect. I have done something similar, but without the delay. Mike On Jan 21, 11:28 am,

[android-developers] Re: Does any changes in the child of listview is reflected in its adaptor.

2010-01-21 Thread Nikhil Agarwal
I suppose you mean that how can we extract which items are checked. That can be done using:- SparseBooleanArray checkedItems = getListView().getCheckedItemPositions (); You can check each item's state by using its position. So for the 0th position, use checkedItems.get(0) and check if it is true

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread draf...@gmail.com
Hi Mike, Thanks for the prompt reply. I was looking at the AudioRecord class but had somehow missed the AudioTrack class, thanks for pointing it out. From looking at the classes I think what I have to do is read the recording data and put it straight into a streamed AudioTrack, would I be

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread skink
On Jan 21, 11:54 am, Andre andranik.abra...@gmail.com wrote: Hi skink, thanks for test. On what device you tested? What FPS you got, when not shooting bullets? Yes, I think I should avoid any rotation operation on Canvas... Best Regards, Andre a friend of mine tested your apk on his

[android-developers] Question about background task applications?

2010-01-21 Thread Tom
Is it possible to developp an application which : - run in background (I know that it's possible with Services) - is impossible to close or to stop ? Best Regards Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Synchronizing AudioTrack and AudioRecord

2010-01-21 Thread Omer Gilad
Hello, My application uses AudioTrack in streaming mode and AudioRecord simultaneously. My problem is that I start them at the same time, but I have no guarantee that they will actually start playback\recording in the same timestamp. The reason I need this kind of accuracy is because I use echo

[android-developers] Re: Does any changes in the child of listview is reflected in its adaptor.

2010-01-21 Thread Manoj
Mr. Nikhil can you send me the code to use this method . Thanks in advance -- 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

[android-developers] scanDirectories() using MediaScanner when media files are deleted like BlueTooth?

2010-01-21 Thread skan95
Dear. If media files are deleted using the BlueTooth, how should I handle it? Should scanDirectories() be called? In the case that new media files are transferred via BT, scanFile() is called. But if media files are deleted, what should be done? Please let me know the process. Thanks. BR. --

[android-developers] MediaScannerConnection and delete media file.

2010-01-21 Thread skan95
Dear According to MediaScannerConnection, * MediaScannerConnection provides a way for applications to pass a * newly created or downloaded media file to the media scanner service. * The media scanner service will read metadata from the file and add * the file to the media content provider. *

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread TonyDoc
Hi all, interesting thread, here's my tuppenceworth. My first attempt at a simple game took the same approach, things looked favourable when I first threw a few dozen sprites onto the canvas along with some simple game logic to try and get a handle on fps and timing. I was getting around 40-45fps

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread Michael
Hi Donal, Yeah if you kick the record off and the play, then you can sit in a loop reading the data out of Record and putting it into play (on a thread other than the UI thread of course). Not 100% sure about the earpiece, but you specify a stream when you create the AudioTrack and I think a

[android-developers] Re: Market access on the emulator?

2010-01-21 Thread TonyDoc
Option 1. Get hold of the APK from the developer and install it on your emulator Option 2. If the app is unprotected, use a backup utility to copy the APK off your phone and onto your SD card, then copy it onto the emulator install. Option 3. Make (or google for) an AVD with the market app

[android-developers] Custom ClassLoader - Urgent!

2010-01-21 Thread Lior
Hi guys, I'm trying to replace the class loader with my custom class loader. I don't want to replace the default functionality, only add new functionality. The goal is that every new class instance that calls: getClass().getResourceAsStream(resName) will load the requested resource in the way I

[android-developers] Re: How to close an application?

2010-01-21 Thread pink 444
Thanks for your replay. And i went through the link , which you specified. As i understood process will be killed by android only. But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Instead of waiting till android system

[android-developers] Forcing a mobile data connection

2010-01-21 Thread Adrian Jackson
I'm working on an app that needs to make certain requests over the mobile network rather than WiFi, as it relies on data added by the mobile operator which isn't added when connecting over WiFi. Searching through the discussions on the subject and the API documentation, it appears that there is

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Andre
Hi TonyDoc, I agree with you, recently I've started to study Open GL ES... But I think it worth to know, what limitations exist for Canvas? And what kind of games can be implemented with Canvas? As we know, thanks to google, simple 2D games like Snake, Tetris and so on, can be created without

[android-developers] Re: Nexus GPS antenna is always active when Use GPS Satellites is checked...

2010-01-21 Thread Alain
I have intermittently the same problem on my Milestone/Droid. The GPS comes on on its own. I end up turning off the Use GPS setting to preven the battery from draining. On Jan 21, 2:42 am, String sterling.ud...@googlemail.com wrote: On Jan 20, 9:21 pm, Richard Schilling

Re: [android-developers] Custom ClassLoader - Urgent!

2010-01-21 Thread Karl Pauls
On Thu, Jan 21, 2010 at 2:50 PM, Lior lior.gon...@gmail.com wrote: Hi guys, I'm trying to replace the class loader with my custom class loader. I don't want to replace the default functionality, only add new functionality. The goal is that every new class instance that calls:

[android-developers] creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, Can i create a package (apk) that has no activities, but only a View? If yes, what exactly i have to change in the manifest to allow this? The view will be in package A, and the activity will be in package B. How can a class in B instantiate the view in A? Any tips are welcome. Ps: package

[android-developers] Re: Android 2.1 bug: uses res/layout-v3 instead of res/layout

2010-01-21 Thread Lance Nanek
The documentation states that version qualifiers are for that version and higher, not just that version: http://developer.android.com/guide/practices/screens_support.html#qualifiers Resources that are for use only on a specific API Level or higher. For example, if your application is designed

[android-developers] UPnP

2010-01-21 Thread Abhi
Hi, Need help in understanding how to build UPnP stack in Android? Anyone? Abhi -- 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

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread draf...@gmail.com
Hi Micheal, Thanks again, I now have it recording in PCM format from the mic and saving it to the sd card and then playing it back through the ear piece. So I just have to look into how to into piping the AudioRecord straight into the AuditTrack. So with the AudioRecord instead of creating a

Re: [android-developers] creating activity-less packages

2010-01-21 Thread Mark Murphy
Can i create a package (apk) that has no activities, but only a View? Not really. How can a class in B instantiate the view in A? It can't. Ps: package A is a library-only and should have no icons displayed at the applications list. Package it as a JAR and include that JAR in B. -- Mark

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread Michael
Hi Donal, Once you have constructed an AudioRecord instance you can call startRecording and then you can use the various read methods to pull the PCM data out. Likewise once you have constructed an AudioTrack and called play you can use one of the write methods to push the data you got from

[android-developers] Bitmap formats

2010-01-21 Thread Neil
There are several bitmap formats: ALPHA_8, ARGB_, ARGB_ and RGB_565 but where are they described? How am I supposed to know which one to use? Regards Neil -- 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: Loop audio from mic to earpiece?

2010-01-21 Thread Donal Rafferty
Really sorry to keep annoying you Micheal, head just doesn't seem to be functioning properly today. I currenlty have the AudiRecord buffer set up like this: static final int bufferSize = 8; final short[] buffer = new short[bufferSize]; short[] readBuffer = new short[bufferSize]; File file =

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, Thanks for the reply. Is there a way to prevent the application list from displaying an apk? I'll try to do another approach: use shareUserId and using two activities, one calling the other. Once (if) i succeed, i'll post the results here to help others. guich -- You received this message

Re: [android-developers] Display TextFile

2010-01-21 Thread TreKing
On Wed, Jan 20, 2010 at 8:35 PM, perumal316 perumal...@gmail.com wrote: Suppose I have a text file in /data folder, is there any way I can display the textfile to user through an app? Sure. If you want to do this yourself, just read the contents of the file and dump it to a TextView or

[android-developers] Re: Google Map retains the reference to the context of the enclosing activity?

2010-01-21 Thread Katsiaryna
Still no luck. Seems I should report it as a bug... On Jan 15, 6:27 pm, Katsiaryna katsiaryna.nali...@ndrc.ie wrote: Hello All, I am trying to get rid of the memory leaks in my application. The structure of the application is as follows: the main tab activity includes several other

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Mark Murphy
As i understood process will be killed by android only. Correct. But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Does the user close each Web page in their Web browser when navigating a Web site? Or do they just

Re: [android-developers] Re: creating activity-less packages

2010-01-21 Thread Mark Murphy
Thanks for the reply. Is there a way to prevent the application list from displaying an apk? No. That would be a security violation. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you

Re: [android-developers] Question about background task applications?

2010-01-21 Thread Mark Murphy
Is it possible to developp an application which : - run in background (I know that it's possible with Services) - is impossible to close or to stop ? No. Users can always stop background services using the Settings application. -- Mark Murphy (a Commons Guy) http://commonsware.com Android

[android-developers] activity stack issue :help please

2010-01-21 Thread Sudeep Sharma
Hi, I am seeing an issue regarding Activity stack . Suppose i launch dialler app from Home screen and exit from it. After that i go to Settings---Call Settings--Operator Selection and then press the back key. Instead of seeing the CallSettings activity dialler app is activity is shown.

[android-developers] Intent filter for text/calendar ?

2010-01-21 Thread jarkman
I've been trying (and failing) to write an intent filter which will allow my app to handle text/calendar attachments received in the GMail or email apps I don't really know if my failure is because the mail apps are just not looking for apps to handle these attachments, or if I am getting the

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Well... Very strange that Android doesn't support the creation of application libraries... I putted this in the xml: android:sharedUserId=totalcross But when i run, i get INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID Seems that it is not correctly formed... any tips of a valid shared user id?

[android-developers] Re: creating activity-less packages

2010-01-21 Thread Diego Torres Milano
Both must be signed with the same signature. On Jan 21, 5:40 pm, guiha...@gmail.com guiha...@gmail.com wrote: Well... Very strange that Android doesn't support the creation of application libraries... I putted this in the xml:       android:sharedUserId=totalcross But when i run, i get

[android-developers] Re: How to close an application?

2010-01-21 Thread Vladimir
But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Because this is how it is done in Android. If you change it, users will get confused and eventually annoyed. On Jan 21, 3:58 pm, pink 444 pnk...@gmail.com wrote: Thanks for

[android-developers] Junit testing on Android

2010-01-21 Thread Loki117
Morning all, I am currently setting up a number of JUnit tests to get some decent coverage of my applications. I have noticed that Android does not seem to produce XML output files for the JUnit tests run on device I understand that if I like I can export them via eclipse however this is not an

[android-developers] Re: Doc of java.util.Formatter. %$ available or not?

2010-01-21 Thread Diego Torres Milano
Use: String.format(It is %d and %d again!, 10) On Jan 21, 3:37 am, Farproc farp...@gmail.com wrote: http://d.android.com/reference/java/util/Formatter.html In the doc above there is The two characters $ immediately following the % sign indicate that the previous value should be used again

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I thought that the debugging signature (which is the same for all applications) would work... since i'm using the emulator. thx guich -- 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] Re: Loop audio from mic to earpiece?

2010-01-21 Thread Michael
Hi Donal, I have pulled together some of my code to form an example. I have no idea if this code would compile, but it should be pretty close and should serve as an example to get you going. android.os.Process.setThreadPriority (android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);

Re: [android-developers] Re: creating activity-less packages

2010-01-21 Thread Mark Murphy
I thought that the debugging signature (which is the same for all applications) would work... since i'm using the emulator. Hmmm... If you have not done so already, fully uninstall both apps, then try installing them. If you have been upgrading in place, it may not apply the new user ID. --

Re: [android-developers] Intent filter for text/calendar ?

2010-01-21 Thread Mark Murphy
I've been trying (and failing) to write an intent filter which will allow my app to handle text/calendar attachments received in the GMail or email apps I don't really know if my failure is because the mail apps are just not looking for apps to handle these attachments, or if I am getting

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, I used the option wipe user data and tried to reinstall the package. The problem occurs with the very first installed package using the id. In other words: the emulator if fully clean, and when i try to install the first package, the error occurs. It occurs with all packages i try to install

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Also, i just tried to sign with another key and it gives the same result: R:\adb install tcvm-android.apk 914 KB/s (614355 bytes in 0.656s) pkg: /data/local/tmp/tcvm-android.apk Failure [INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID] guich -- You received this message because you are

Re: [android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread Donal Rafferty
Thanks Mike, Your a legend, have that working now, I owe you a pint! Many thanks, Regards, Donal On Thu, Jan 21, 2010 at 5:02 PM, Michael nicholls...@googlemail.com wrote: Hi Donal, I have pulled together some of my code to form an example. I have no idea if this code would compile, but

[android-developers] Re: Intent filter for text/calendar ?

2010-01-21 Thread jarkman
On Jan 21, 5:11 pm, Mark Murphy mmur...@commonsware.com wrote: I've been trying (and failing) to write an intent filter which will allow my app to handle text/calendar attachments received in the GMail or email apps I don't really know if my failure is because the mail apps are just not

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread Michael
No worries. Had a week off in summer and spent some of it watching the tennis in the sweltering heat and learning how the AudioRecord and AudioTrack stuff works. Just polishing some of it up to release my first app, but glad it could be of use to someone else as well. I look forward to that pint

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Got it. Althought not mentioned anywhere, the id must have dots. Seems to be a restriction: it must be in the form of a package. So, i used totalcross.app.sharedid and it succeed. HTH, guich -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: creating activity-less packages

2010-01-21 Thread Mark Murphy
I used the option wipe user data and tried to reinstall the package. The problem occurs with the very first installed package using the id. In other words: the emulator if fully clean, and when i try to install the first package, the error occurs. It occurs with all packages i try to install

Re: [android-developers] Re: Intent filter for text/calendar ?

2010-01-21 Thread Mark Murphy
Well, what I'd like to happen is this: - Receive a mail with a text/calendar attachment in the GMail (or email) app - Click on the attachment - See my app open to handle it Sounds reasonable. What actually happens is that the mail apps show the attachment is there, but don't offer any

[android-developers] Re: AdWhirl - any experience with it?

2010-01-21 Thread westmeadboy
Yeah thanks, I didn't realise that about house ads either. I've configured it all - the house ads are running but none are showing up (confirmed by looking at the stats over the last couple of days). Does something need to be set in the app itself? On Jan 21, 1:16 am, Seni Sangrujee

[android-developers] Re: Intent filter for text/calendar ?

2010-01-21 Thread jarkman
On Jan 21, 5:34 pm, Mark Murphy mmur...@commonsware.com wrote: Well, if you hunt through Google Code Search, you'll find a number of sample intent filters that use android:mimeType. See if any of those are treated properly by the mail client. If one does, try mirroring their intent filter.

[android-developers] Creating dialogs from a thread

2010-01-21 Thread Dirk Vranckaert
I'm working on an application which loads some data from the net in a thread. However when something goes wrong (no internet connection or sth) I'dd like to create a dialog to show an error message to the user. However my code works fine not using threads but creating a dialog from my thread makes

Re: [android-developers] Creating dialogs from a thread

2010-01-21 Thread TreKing
On Thu, Jan 21, 2010 at 11:56 AM, Dirk Vranckaert dirkvrancka...@gmail.comwrote: So does anyone of you guys knows what I am doing wrong here? Can't you create a dialog from within a thread? No. If so, what's the best way of handling my exceptions here? There are various options, but you

[android-developers] bug: Android emulator keeps timing out

2010-01-21 Thread guiha...@gmail.com
Hi, This is a really odd bug. Seems that if you try to access the /data/ data folder, the emulator bails out after some seconds. Try this: adb shell ls -l /data/data Wait 1 minute, then try again: it will say: error: device not found. This happens in eclipse's File Explorer too. Hope it will

[android-developers] Re: adding voice search

2010-01-21 Thread Achanta
Thank you Schwiz and David for the replies. they were helpful. I included the part that David advised and it works great. Now I have a requirement with the search in my project. I need to provide a widget like the quick Search box in the main page of the app..ie., it should always be visible. It

[android-developers] Re: Mystery Segfault after exiting game. Happens reliably but unable to track it down.

2010-01-21 Thread Robert Green
I'm not sure what to post yet. I don't know what's causing it. My gut tells me that it has something to do with the surface or gles, but since it doesn't happen as a result of any method call that I make, I can't tell. It's something in Android causing it, probably as a result of something I

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-21 Thread Nathan
From the interface methods on SQLiteDatabase, it seems very much like it is intended for one instance of SQLiteDatabase per open database, and that you share it between threads. You can apparently even set locking enabled. = public void setLockingEnabled (boolean lockingEnabled)

[android-developers] Re: adding voice search

2010-01-21 Thread schwiz
I think you would override onActivityResult like I did in my project. On Jan 21, 12:17 pm, Achanta krishna.acha...@gmail.com wrote: Thank you Schwiz and David for the replies. they were helpful. I included the part that David advised and it works great. Now I have a requirement with the

[android-developers] Creating a proper Splash/Loading screen

2010-01-21 Thread Chris
Hello all, I have an application that uses OpenGL on a GLSurfaceView. The problem is that the initial load takes quite a while processing textures and getting things ready. What i want to do is have a simple PNG displayed (with a slight animation) while the GLSurfaceView is getting ready. As

[android-developers] Re: Android Performance Monitoring..

2010-01-21 Thread Menion
try look at this ... http://developer.android.com/intl/fr/guide/developing/tools/traceview.html i mean, very usefull ;) On Jan 21, 10:54 am, bharat yeahbha...@gmail.com wrote: Guys, I am working on a project where I need to measure the performance of an app in terms of memory and CPU cycles

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, I got it working with this: public class Stub extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { //super.onCreate(savedInstanceState); Intent intent = new Intent(android.intent.action.MAIN);

[android-developers] Re: Custom ClassLoader - Urgent!

2010-01-21 Thread fadden
On Jan 21, 6:31 am, Karl Pauls karlpa...@gmail.com wrote: Since the 'test' TestClass instance is created with reference to the new class-loader, I'd expect that after this line executes, test.getClass().getClassLoader() will return an instance of CustomClassLoader, but I always get the

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I have one more question: can i load the view of another package, instead of calling another activity? In the sample above, i would call setContentView(LoaderView) someway. This would be perfect for me. thx guich -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Keep activity running while in sleep mode

2010-01-21 Thread Mark Murphy
I am newer to Android development and I have a app that needs to run a command even if the phone goes to sleep. I have it running as a service but it runs randomly when. Is there a way to have the service run even when the phone is sleeping. Use AlarmManager. Keep your service stopped

Re: [android-developers] Keep activity running while in sleep mode

2010-01-21 Thread Mark Murphy
I am newer to Android development and I have a app that needs to run a command even if the phone goes to sleep. I have it running as a service but it runs randomly when. Is there a way to have the service run even when the phone is sleeping. Use AlarmManager. Keep your service stopped

[android-developers] Re: Working in Windows 2000

2010-01-21 Thread Doug Aitken
Guich, Ubuntu (or even Xubuntu, to run something lighter) will work really well for you if you can do that. On Jan 18, 10:19 pm, guiha...@gmail.com guiha...@gmail.com wrote: Thanks for all suggestions. I'll try to run linux, either in a partition or in virtualbox. cheers     guich -- You

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Dirk Vranckaert
I certainly will try it out later this evening (studying for my certification right now) but is there any more detailed/advanced explanation about why I can't run a bunch of code in a thread and at the end of the thread start a dialog? Why I have to start a nested thread with just the dialog

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-21 Thread Nathan
On Jan 21, 11:08 am, jotobjects jotobje...@gmail.com wrote: You might want to look into the transaction paradigm/pattern: http://developer.android.com/reference/android/database/sqlite/SQLite... Transactions are the well understood way to get consistent results with multiple readers and

[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)

2010-01-21 Thread Smelly Eddie
Surely someone has an idea. I have continued to search the SDK reference and resources but I can't even ind an allusion to the layout/ formatting issues with high-density screens. On Jan 20, 6:32 pm, Smelly Eddie ollit...@gmail.com wrote: Hello Group -  I am hoping someone that has formatted

  1   2   >