[android-developers] Associate app with Email attachement

2012-05-14 Thread Kanika Sayal
I am developing a simple application where the requirement says that If there is any email attachment with .csv file extension then on long press of that email attachement should open an option to user that Download and open this attachment with MYAPP. So When the user clicks on MyAPP then it

Re: [android-developers] convert arraylist to xml

2012-05-14 Thread Kanu Sayal
*[Associate App with Email Attachment]* Hi, I am developing a simple application where the requirement says that If there is any email attachment with .csv file extension then on long press of that email attachement should open an option to user that Download and open this attachment with MYAPP.

[android-developers] Associate app with Email attachement

2012-05-14 Thread Kanu Sayal
*[Associate App with Email Attachment]* Hi, I am developing a simple application where the requirement says that If there is any email attachment with .csv file extension then on long press of that email attachement should open an option to user that Download and open this attachment with MYAPP.

[android-developers] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Simon Giddings
I am in the process of developing a map based application and have put inplace my own zoom controls. As a consequence, I query the maximum zoom level when the map mode is changed. However, when going to satellite mode, the maximum zoom level is returning a value too high. I can say this

[android-developers] Re: which android phone has Environment sensors hardware?

2012-05-14 Thread Rajender
Hello, So there is no phone in market to measure Room Temperature with Sensor : TYPE_AMBIENT_TEMPERATURE Android ICS version has Sensor : TYPE_AMBIENT_TEMPERATURE api implementation. if any android phone is available in market, let me now. Thanks regards, Rajender On May 11, 4:07 am, gjs

Re: [android-developers] Image scaled, scroll, zoom, without margin

2012-05-14 Thread huberte
I did android:adjustViewBounds=true android:scaleType=fitXY great on portrait mode, but landscape does not fit, why ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-14 Thread Dianne Hackborn
On Sun, May 13, 2012 at 8:05 PM, William Kelley williamtkel...@gmail.comwrote: My question wasn't about battery life, but I'll address it anyway. Users who install apps that use long running services are usually fully aware that it will affect battery life. There is basically no relationship

[android-developers] unable to resolve static method while generating jasper report.... suggestion needed... ?

2012-05-14 Thread mateen sysfore
Hi all, I want to generate pdf report, so i am use jasperreport jar, but for generating jasper report i need to write statement as follows *JasperCompileManager.compileReport(somefile.jrxml);* now the problem is that android is not supporting any static methods from my jar file (or may be i

Re: [android-developers] Image scaled, scroll, zoom, without margin

2012-05-14 Thread huberte
In scrollview width=fill_parent works, but the image is ugly Le lundi 14 mai 2012 02:47:50 UTC-4, huberte a écrit : I did android:adjustViewBounds=true android:scaleType=fitXY great on portrait mode, but landscape does not fit, why ? -- You received this message because you

[android-developers] convert Byte value to Image

2012-05-14 Thread arun
hai friends.. how to convert byte value to image... if u any one known plz help me... -- 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,

Re: [android-developers] Re: how to know that headset is plugged in?

2012-05-14 Thread Farhan Tariq
What do you mean check current mode? Wouldn't AudioManager.isWiredHeadsetOn() do the job? On Mon, May 14, 2012 at 7:00 AM, lbendlin l...@bendlin.us wrote: I would check the current audio mode, and then test am.isSpeakerphoneOn()to be false. On Sunday, May 13, 2012 8:11:54 PM UTC-4, Farhan

Re: [android-developers] Need help for thread cancelable queue pattern.

2012-05-14 Thread Fabien R
On 11/05/12 13:10, Tolriq wrote: And a little supplemental question that is linked to this, the sync process can be for example a function that call 3 functions that each takes a lot's of time, in each functions I can check for thread.interrupted to stop it, but from documentation it clears

Re: [android-developers] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Fabien R
On 14/05/12 08:35, Simon Giddings wrote: However, when going to satellite mode, the maximum zoom level is returning a value too high. I can say this because when I zoom in to the maximum zoom level, the emulator displays a black background with the roads overlayed onto it. If I zoom out

Re: [android-developers] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Simon Giddings
I have already done this to confirm my suspicion. Subsequent calls to getMaxZoomLevel will return 22 as opposed to 21, the maximum zoom level. After having done abit more research, I have found that there is a logged issue : Issue 2761: Satellite view max zoom level one notch above

Re: [android-developers] How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-14 Thread Fabien R
On 10/05/12 06:25, Kevin Chang wrote: I woudl like to develop a Web Application. It has different UI design for Phone and Tablet because they have different screen size. I always Take user agent of browser to know what device access my application. Then I can know to give appropriate size

Re: [android-developers] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Fabien R
On 14/05/12 10:19, Simon Giddings wrote: I have already done this to confirm my suspicion. Subsequent calls to getMaxZoomLevel will return 22 as opposed to 21, the maximum zoom level. Can't you force the value to 21 if it's 22 ? -- You received this message because you are subscribed to

[android-developers] NullPointerException android.graphics.Bitmap.createBitmap(Bitmap.java:468)

2012-05-14 Thread viktor
Please help me with exception. I have single resources folder. /res/drawable I create a custom button from one of the resource with some color effect. This works for ldpi, hdpi, xdpi devices, but when I run an app on the mdpi device it crashes. My code: Bitmap b1 =

Re: [android-developers] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Simon Giddings
Obviously, but this would be a kludge - no guarantee that it is correct. On Monday, 14 May 2012 10:38:21 UTC+2, the_edge123 wrote: On 14/05/12 10:19, Simon Giddings wrote: I have already done this to confirm my suspicion. Subsequent calls to getMaxZoomLevel will return 22 as opposed to

[android-developers] Receiver

2012-05-14 Thread iñaki
Hi, I've been a bit trying to get this issue, can you give me some clue. I have an application with a receiver that is waiting c2dm notifications if android application decides to destroy it(internal), I can still get notifications but I can not throw ... I guess because there is no context in

[android-developers] sync adapter

2012-05-14 Thread Live Happy
how to add to the sync adapter new record to sync as in Google there is sync contact sync gmail etc i implement the sync contact so how to add new sync record to get data from servers where i can modify in sync contact adapter to can use the performSync to get those data thx on advice -- You

Re: [android-developers] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread lbendlin
It's definitely better than waiting for Google to fix it. On Monday, May 14, 2012 5:32:26 AM UTC-4, Simon Giddings wrote: Obviously, but this would be a kludge - no guarantee that it is correct. On Monday, 14 May 2012 10:38:21 UTC+2, the_edge123 wrote: On 14/05/12 10:19, Simon Giddings

[android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread spotleo
Dianne or Romain Guy? Or anyone else can provide any suggestions? On Thursday, April 26, 2012 1:45:34 PM UTC+8, spotleo wrote: Hi, I have a reusable UI component Fragment A that has been used throughout various Activities and they all worked fine. The controller logic is placed

[android-developers] Conditional PreferenceScreen

2012-05-14 Thread Giuseppe
I have multiple PreferenceScreen in my Main Preferences and for some of them I need to check from a global variable if the user is enable to open this. How can I conditionally block the opening of a PreferenceScreen during the onClick Event? Return false don't work. Thank you. -- You

[android-developers] Ads on my game, Where to start learning?

2012-05-14 Thread Francisco M. Marzoa Alonso
Hi there, I have deployed my first casual game yet to Google Play. I planned to release also a free version with ads. So what is the fastest way to add ads to my game? Links to docs on the issue are very wellcome. Thanks a lot in advance, -- You received this message because you are

[android-developers] Re: Ads on my game, Where to start learning?

2012-05-14 Thread RichardC
One place to look is: https://developers.google.com/mobile-ads-sdk/ Other developers may recommend different ad networks. On Monday, May 14, 2012 3:49:56 PM UTC+1, Fran wrote: Hi there, I have deployed my first casual game yet to Google Play. I planned to release also a free version with

[android-developers] Re: Receiver

2012-05-14 Thread iñaki
Hi, I´ve solved my previous question... Extends receiver via intents has fixed my probem. Iñaki On 14 May 2012 12:43, iñaki inaki.s...@gmail.com wrote: Hi, I've been a bit trying to get this issue, can you give me some clue. I have an application with a receiver that is waiting c2dm

[android-developers] create Config file - URGENT please

2012-05-14 Thread dillipk
Hi , I want to create a config file inside the ABSOLUTE PATH of the application at the time of installation. Would this be possible? The reason for this is, before even first time running the app, user can edit/specify the DNS/port and other settings in the config file. Mandatory

[android-developers] Re: Associate app with Email attachement

2012-05-14 Thread A. Elk
You can't force an app you don't own to use only your app to handle an Intent. That's not the Android design philosophy. The best you can do is put in an intent filter in your manifest for an intent. When that intent is matched, your app will get it, unless other apps also match. If more than

Re: [android-developers] create Config file - URGENT please

2012-05-14 Thread Justin Anderson
I want to create a config file inside the ABSOLUTE PATH of the application at the time of installation. Would this be possible? Nope, sorry... The reason for this is, before even first time running the app, user can edit/specify the DNS/port and other settings in the config file. Not going

Re: [android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Justin Anderson
You could always try it and see... You've been waiting weeks for an answer, and probably could have figured it out in a matter of hours by just trying it to see what happens. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 14, 2012 at 7:15 AM,

Re: [android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Dianne Hackborn
You are saying use a fragment tag inside of the item layout of a ListView? No this will not work. This is going down the path of really abusing ListView. The design of ListView is about efficiently scrolling through a large number of items, being able to cycle through them at a 60fps frame

[android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Nadeem Hasan
Why don't you factor out the functionality into a custom widget and use it in both the listview and fragment? -- 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] repo init returns error

2012-05-14 Thread bsquared
Just setting up environment and I get this error. $ repo init -u https://android.googlesource.com/platform/manifest File /home/android-dev/bin/repo, line 184 except OSError, e: ^ I looked at repo script and found the error here: if not os.path.isdir(repodir): try:

Re: [android-developers] convert Byte value to Image

2012-05-14 Thread Justin Anderson
http://lmgtfy.com/?q=android+convert+bytes+to+image Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 14, 2012 at 1:16 AM, arun aruna...@gmail.com wrote: hai friends.. how to convert byte value to image... if u any one known plz help me...

[android-developers] Re: Associate app with Email attachement

2012-05-14 Thread Nadeem Hasan
And how will the system know to map any file to this custom mimetype? You can register an intent filter with your own custom mimetype but that won't do anything at all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] how to get id or value previous viewflipper

2012-05-14 Thread Justin Anderson
Ok But, I guess, we should discuss here regarding this thread, shouldn't we? Sorry... my bad. I answered this on my phone and thought your comment was coming from the OP. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, May 13, 2012 at 1:19 PM,

[android-developers] An app inside the other

2012-05-14 Thread Lucas Diego
Hi everyone, I'd like to know if is possible to launch an app inside the other developed by me. I'm trying to run a previous installed app inside a Tabhost for instance. If it is, how could I do this?! Any help would be appreciate. Thanks -- You received this message because you are

Re: [android-developers] An app inside the other

2012-05-14 Thread Kristopher Micinski
Basically, you can't do this. You can google the history of this group, this has been discussed at length before. For example, I remember one person demonstrating the utility of a stumbleupon like service for apps. But basically, the sandboxing and security policies atop which the platform is

[android-developers] Is there a way to Bypass bluetooth and play directly through phone speakers

2012-05-14 Thread Tommy Hartz
Hi, I was wondering if it is possible to play audio through the phone speakers while a Bluetooth headset is connected. It is important that this audio is played through the phone rather than the Bluetooth incase the Bluetooth is not in the persons ear. Thanks in advance, Tommy -- You

Re: [android-developers] Is there a way to Bypass bluetooth and play directly through phone speakers

2012-05-14 Thread vijay Badawadagi
check Audio policy manager in Android, there is priority based routing changing that should help Thanks Vijay On Mon, May 14, 2012 at 3:23 PM, Tommy Hartz droi...@gmail.com wrote: Hi, ** ** I was wondering if it is possible to play audio through the phone speakers while a Bluetooth

[android-developers] Re: create Config file - URGENT please

2012-05-14 Thread dillipk
Hi Justin, Thanks for your valuable information.. I think, I have to change my requirements and act on what android supports. Coming from a windows background, it's bit surprising to me... I thought this is a common practice.. Anyways.. thanks for time.. Best, DK On May 14, 12:45 pm,

[android-developers] Can we block certain sms messages from reaching the default messaging app?

2012-05-14 Thread Farhan Tariq
Hi all, I aim to make an app that would store sms messages with certain words contained in an sms, and stop it from reaching the default messaging app. I realize that I need to place a broadcast receiver for sms messages in my app, but how do I ensure that If a message contains a KEYWORD, the

Re: [android-developers] Re: create Config file - URGENT please

2012-05-14 Thread Justin Anderson
Thanks for your valuable information.. I think, I have to change my requirements and act on what android supports. No problem. Coming from a windows background, it's bit surprising to me... I thought this is a common practice.. It is common-place in a desktop-type environment... Not so

RE: [android-developers] Is there a way to Bypass bluetooth and play directly through phone speakers

2012-05-14 Thread Tommy Hartz
Thanks, I will give this a try and see what happens. No one would happen to have any links to some examples that do work so I am not screwing around with stuff? I don't have a Bluetooth so I have to export the app, send it to a co-worker who has one then have them try to get the right

[android-developers] how to make cursor blink ( appear) when edit text gets focus.

2012-05-14 Thread Mike Adams
we have two edit texts, one for width and one for height, XML below. I'm able through the xml make it so if you hit next in width the focus goes to height. Programmaticly by using postdelayed i can change like 100ms after they hit enter ( if they don't have next on phone) focus to move to high

Re: [android-developers] Re: Add application licencing to apk

2012-05-14 Thread huberte
You were right Jteagle, I switched and it's a;looot easier ! Le lundi 7 mai 2012 13:57:17 UTC-4, JTeagle a écrit : Take a look at the instructions here: http://developer.android.com/guide/market/licensing/setting-up.html#add-library Particularly, look a few lines down where it starts If

Re: [android-developers] Image scaled, scroll, zoom, without margin

2012-05-14 Thread huberte
here the code, it's working : ?xml version=1.0 encoding=utf-8? ScrollView android:id=@+id/scrollView1 android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/exp1_image

[android-developers] get and set volume of microphone

2012-05-14 Thread Ngọc Thủy Đỗ Thị
Hi all! I tried to set the volume of microphone with AudioManager, but I'm not able to do that. Is there any way? I'm using AudioRecord to record sound from microphone. Thanks for help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] get and set volume of microphone

2012-05-14 Thread chengdong diao
I know in linux ,there is a tool: amixer 2012/5/15 Ngọc Thủy Đỗ Thị andy.need5sp...@gmail.com Hi all! I tried to set the volume of microphone with AudioManager, but I'm not able to do that. Is there any way? I'm using AudioRecord to record sound from microphone. Thanks for help! -- You

[android-developers] What can't boot, which delete .git in kernel?

2012-05-14 Thread wang nungchao
Hi All I use TI platform, and check out source code form TI website.(http:// omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes) If I delete .git file in kernel and build, I can't booting Android. I trace Makefile in Kernel ,but I haven't search anything about git key word. So How

Re: [android-developers] What can't boot, which delete .git in kernel?

2012-05-14 Thread chengdong diao
why you delete .git? 2012/5/15 wang nungchao nungc...@gmail.com Hi All I use TI platform, and check out source code form TI website.(http:// omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes) If I delete .git file in kernel and build, I can't booting Android. I trace

[android-developers] pairing problem, I believe this to be a bug in Android 4.0.3

2012-05-14 Thread Jim Morris
I have developed an Android app that communicates with a Blue Bamboo Bluetooth printer. I have no trouble communicating with the printer on a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3). When my app runs on the P-3113, I get the following problem. When the P-3113 is trying

[android-developers] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread Paresh Joshi
In the latest version of my app, I updated the manifest file to include support for ICS version. When activating the APK file, I got a warning (that I apparently ignored) about newest version supports fewer devices than previous version. Later that day I saw couple of posts in forums where

[android-developers] Re: What can't boot, which delete .git in kernel?

2012-05-14 Thread wang nungchao
Because I will commit our svn server, our partners will modify source code in our project. On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote: why you delete .git? 2012/5/15 wang nungchao nungc...@gmail.com Hi All I use TI platform, and check out source code form TI

[android-developers] Re: What can't boot, which delete .git in kernel?

2012-05-14 Thread wang nungchao
Because I will commit our svn server, our partners will modify source code in our project. On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote: why you delete .git? 2012/5/15 wang nungchao nungc...@gmail.com Hi All I use TI platform, and check out source code form TI

Re: [android-developers] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread TreKing
On Mon, May 14, 2012 at 10:39 PM, Paresh Joshi pareshjosh...@gmail.comwrote: I used targetSDK as 14 to enable action bar. In the PLAY store the app shows requires android 2.1 and up Your min is 7 which is 2.1. Thus, your app requires 2.1 and up. Also, maxSDKVersion should not be used:

[android-developers] Re: Proguard and PreferenceActivity

2012-05-14 Thread Dusk Jockeys Android Apps
Indeed, it is fine to call SetContentView in a PreferenceActivity, as long as your content xml contains a ListView with id list, as the OP example clearly does. I use this all the time to add extra useful stuff around the standard list of Preferences, such as Live previews of the changing

Re: [android-developers] Re: What can't boot, which delete .git in kernel?

2012-05-14 Thread chengdong diao
after deleted .git,what command have you used? maybe some commands related with .git changed the source code. 2012/5/15 wang nungchao nungc...@gmail.com Because I will commit our svn server, our partners will modify source code in our project. On 5月15日, 上午10時50分, chengdong diao

Re: [android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread spotleo
Hi MagouyaWare, I did try it and it works perfectly at the moment. I'm just worried whether there will be any problems I need to be aware of. thanks On Tuesday, May 15, 2012 12:56:55 AM UTC+8, MagouyaWare wrote: You could always try it and see... You've been waiting weeks for an answer, and

[android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread spotleo
Hi Nadeem, The reason why I chose fragment over widget is that fragment has callback methods such as onCreate(), onResume, onPause, onDestroy that I need in order for my UI component to work properly. This implies that clients can just declare my fragment in their layout and it'll all work. If

Re: [android-developers] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread Paresh Joshi
Thanks for the prompt response. I had the min maxSDKVersion as 7 in my older version of APK also so that should not have mattered. On Monday, May 14, 2012 9:06:44 PM UTC-7, TreKing wrote: On Mon, May 14, 2012 at 10:39 PM, Paresh Joshi pareshjosh...@gmail.comwrote: I used targetSDK as 14 to

Re: [android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Justin Anderson
and I believe fragment is here to solve this problem Not according to Dianne... She said you shouldn't be doing this and it would cause problems. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 14, 2012 at 10:26 PM, spotleo l...@spotleo.com

[android-developers] How to add a OnClick Listiner to a imageview in a simpleadapter

2012-05-14 Thread shruthi santosh
I have a imageview in the simpleadapter and on click of that image i want to display more information on that image. I tried the getView() method, public View getView( int position, View convertView, ViewGroup parent ) { LayoutInflater

Re: [android-developers] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread santhosh
Hi, i think it was the not issue of uses-sdk setting in the manifst file google play store filter the application if the device is not have some features which is using user app adduses-feature setting into our manifest and set required option value to true or false, see below code that

Re: [android-developers] How to add a OnClick Listiner to a imageview in a simpleadapter

2012-05-14 Thread Ibrahim Sada
after the brace closes just show that text view it may work just try it once On 15 May 2012 10:55, shruthi santosh shruthi.shr...@gmail.com wrote: I have a imageview in the simpleadapter and on click of that image i want to display more information on that image. I tried the getView()