[android-developers] Re: Bluetooth Low Energy support on lollipop and previous

2015-01-29 Thread MathieuB
You shouldn't set a max sdk. You can set minSdk to 18, and targetSdk to 21. If you set a max, that means if there's a new android version, people won't be able to download your app, you'll have to make an update. As for the error you get, it's mainly a lint error. If the code is in an if

[android-developers] Re: Bluetooth Low Energy support on lollipop and previous

2015-01-28 Thread MathieuB
According to the official documentation : You can use Android 5.0 APIs while also supporting older versions by adding conditions to your code that check for the system API level before executing APIs not supported by your minSdkVersion

[android-developers] Re: How to display action bar in navigation with list activity

2015-01-12 Thread MathieuB
Personally, I have a layout containing my toolbar. I use merge. Something like this : toolbar.xml merge xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android.support.v7.widget.Toolbar

[android-developers] Re: Translate animation in oncreatview of the fragment

2014-11-24 Thread MathieuB
onActivityCreated() -- 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

[android-developers] Re: finish() does not dismiss AlertDialogs

2014-09-30 Thread MathieuB
Did you try to : dialog.dismiss(); Before calling finish() Le mardi 30 septembre 2014 06:21:46 UTC-4, pedr0 a écrit : Hi all, I am developing an activity which generate an AlertDialog and attach to it an onClickListener which calls the finish() method, I am experiencing a strange issue

[android-developers] Gradle Android Studio Github repo dependacy

2014-09-18 Thread MathieuB
Hello, Does anyone have an idea if it's possible to use a github repo as a dependancy, without maven. We are currently starting a new project and would like to import a private custom library to our project. We would like to just add the dependancy to the github repo of that custom library,

[android-developers] Re: create photo gallary

2014-08-10 Thread MathieuB
dear sir, google Le dimanche 10 août 2014 02:48:41 UTC-4, Bhavin a écrit : dear sir, for my application, I wanted to create photo gallary. in which i can add photo (from content provider) well as delete photo. how to do this? -- You received this message because you are subscribed to

[android-developers] Re: Context menu on long press on any icon

2014-07-15 Thread MathieuB
http://developer.android.com/reference/android/view/View.OnLongClickListener.html http://developer.android.com/guide/topics/ui/menus.html#FloatingContextMenu Next time it would be great if you have a look at google before. Le mardi 15 juillet 2014 05:38:45 UTC-4, sourabh a écrit : Dear All,

[android-developers] Re: Android XML

2014-07-11 Thread MathieuB
Did you do some kind of overriding on back button? If you normally use startActivity() in activity A to start B, then when you press back from B to A, it should act normally. Le vendredi 11 juillet 2014 01:50:31 UTC-4, janvi a écrit : Hello All, I have an issue in my App. I have three

[android-developers] Re: App memory vs extornal memory

2014-07-10 Thread MathieuB
Please don't mess up with the user storage by creating a folder like the other guy said. Use the folder allocated to your app. Have a look at http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Then when the user uninstall your app, it

Re: [android-developers] Android App Failing When downloaded From Google Play

2014-06-29 Thread MathieuB
Did you search just even a little bit on google? http://stackoverflow.com/questions/15409754/getlastknownlocation-returns-null-even-with-best-provider http://stackoverflow.com/questions/19621882/getlastknownlocation-returning-null You should check that _location isn't null and if it is, do

[android-developers] Re: Share Loader's data between multiple fragment

2014-06-04 Thread MathieuB
Like Doug said. That's sort of how i'm doing it and had no problem. So #2 kind of. Here's my onLoadFinished : @Override public void onLoadFinished(LoaderArrayListTour loader, ArrayListTour data) { CatalogTabFeatured featuredFragment = (CatalogTabFeatured)

[android-developers] Re: In-app payment system

2014-04-22 Thread MathieuB
If I understand your situation correctly, you shouldn't be using in-app billing if it's to buy flowers. Refer to this section : http://developer.android.com/google/play/billing/billing_overview.html#products You can use In-app Billing to sell only digital content. You cannot use In-app

[android-developers] Re: Data getting null when the app in background

2014-01-15 Thread MathieuB
Use onSavedInstanceState to save your data and retrieve it in onCreate ( if(savedInstance != null) ...) On Wednesday, January 15, 2014 12:47:23 PM UTC-5, abhay_401 wrote: Hi, In my activity there are two spinners,listview and a button GO. When the user select the options from the spinners

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-15 Thread MathieuB
, November 15, 2013 8:53:19 AM UTC-8, 12169 wrote: Hi , android:text=”Your new text string” eclipse is not showing this option in ctrl+space On Wednesday, November 13, 2013 7:51:47 AM UTC-8, MathieuB wrote: Let's say you named this layout, with your textview tv_layout. Use that in your

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-13 Thread MathieuB
Let's say you named this layout, with your textview tv_layout. Use that in your other layout to include it. Note that you can override other value like layout_width, id, etc. : include android:text=”Your new text string” layout=”@layout/tv_layout”/ -- You received this message

[android-developers] Re: how to track the location continously...

2013-10-16 Thread MathieuB
http://developer.android.com/training/location/receive-location-updates.html You're welcome! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: Nested JSON Parsing with Volley

2013-09-06 Thread MathieuB
Well, you have 4 lines of code in your try/catch block...just debug it and find what cause the error. We gave you hint with the getString(temp) being one of the problem. We won't code at your place. If you are not able to do that, then go back to the basic. -- You received this message

Re: [android-developers] Nested JSON Parsing with Volley

2013-09-05 Thread MathieuB
Is it me or getString(temp) can't work. Temp is 297.009 in your json, not a string. -- 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

[android-developers] Open remote image in Gallery

2013-06-25 Thread MathieuB
Hello, I have an app with thumbnails and when the user touch the thumb, I would like to open the full image in fullscreen. I try opening the image in the default Gallery app, but it doesn't work on all devices. Here's the snippet : Intent intent = new Intent(Intent.ACTION_VIEW,

[android-developers] Need help with background loading

2013-05-07 Thread MathieuB
Hi! In my app, I have a loader that calls a webservice and gets a result from it. Based on that result being positive, it would show an alertdialog to tell the user there is an update available for some files (that are parts of my app). Problem is : I'd like to start that loader on app

[android-developers] Re: Need help with background loading

2013-05-07 Thread MathieuB
Thanks for the reply! That works, indeed, but what I really wanted to achieve was to show the alertDialog even if the user is not in the launcher activity anymore. For example : In home activity (Activity A), I start the loader. The onLoadFinished is not yet called and the user goes in

[android-developers] Re: Need help with background loading

2013-05-07 Thread MathieuB
We misunderstood! I understood your solution and used it. I launch an activity as a dialog on onLoadFinished. But the loader is initialized in my main activity. So if I goes to another Activity (eg Activity B), and the onLoadFinished is not called yet, then the dialog will not appear because

[android-developers] Share Loader data for three fragments

2013-05-02 Thread MathieuB
Hi there, I'm using ActionBarSherlock and a FragmentPagerAdapter to display three tabs which are each associated to a fragment. Each fragment consists in a listview. The data are all the same for each listview, only difference is that they are filtered differently depending of the tab. So

[android-developers] Re: WebViews: return an array to javascript-interface

2013-04-30 Thread MathieuB
My guess is that you cannot send a Java array to javascript directly. Maybe if you convert the Java array to JSONArray before sending it to javascript, then you could parse the JSONArray when received. -- -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: WebViews: return an array to javascript-interface

2013-04-29 Thread MathieuB
Not enough information to clearly understand. There may be different reasons why it's not working. You need to give more details/code -- -- 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] New In-app billing (v3)

2012-12-10 Thread MathieuB
Hello everyone! Today, the Developers blog announced a new version of the in-app billing system : http://android-developers.blogspot.ca/2012/12/in-app-billing-version-3.html Just wanted to discuss about it. How is it compared to implementing in-app billing with v2? I did try the v2, and it

[android-developers] Re: In-App billing draft apk not appearing in Developer Console

2012-12-06 Thread MathieuB
Are you using the new or old developer console? I've noted some functionality missing in the new interface. On Thursday, December 6, 2012 5:55:01 PM UTC-5, jb wrote: Hi, I'm trying to test In-App billing on my app. I registered a test account in my Google Play account. I uploaded a new,

[android-developers] Re: navigating UP

2012-12-04 Thread MathieuB
why don't you simply use finish() ? -- 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: navigating UP

2012-12-04 Thread MathieuB
did not meant to be rude :) Pleasure -- 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] Fragments slow to load when coming back

2012-11-27 Thread MathieuB
Hello! Here's the situation : I have a parent activity that have 3 fragments associated with it. Basically, there is the actionBar and three tabs. Each tab holds a fragment in which there is a listview. The data are the same for all the 3 listviews, just filtered in different way so, in the

[android-developers] Re: Localized Images in Google Play

2012-11-02 Thread MathieuB
Sadly not, from my experience. Had the same problem with my banner on Google Play. No way to have a different one for each languages. Google Play have many adjustments to do in my opinion. They are becoming the leader and have exceeded Apple over the # of apps on the store. Now they need to

[android-developers] Re: Google Checkout Account

2012-10-24 Thread MathieuB
Its really badly documented. Google should do something about it as it is not normal. On Wednesday, October 24, 2012 6:13:27 AM UTC-4, katarina wrote: Thanks Ralph! On 24 окт, 12:03, Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu wrote: Am 24.10.12 09:27, schrieb katarina:

[android-developers] Re: In-app billing for canadian

2012-10-15 Thread MathieuB
Hi, Ok guys, i'm glad to hear that. I'll try to investigate more and find what is causing the issue. Weird thing is i'm not the only one reporting that problem. I found on other forums that people in Canada receive the message Canada is not supported when trying to register a merchant

[android-developers] Re: In-app billing for canadian

2012-10-15 Thread MathieuB
Finally, it seems I was wrong and i'm really happy to notice it! I was registered as a developer on our dev console but wasn't the admin. When I was trying to register the google checkout account, I was going directly to checkout.google.com and it said Canada wasn't supported. Today I try with

Re: [android-developers] In-app billing for canadian

2012-10-14 Thread MathieuB
Thought the same thing when I read it, they said it clear. But when it's time to open a google checkout account so I can receive money, it says only available to US and UK... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] In-app billing for canadian

2012-10-14 Thread MathieuB
You mean you have a google checkout merchant account? And you register for in-app billing? -- 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

[android-developers] In-app billing for canadian

2012-10-13 Thread MathieuB
Hello, I'm a canadian developer working on an android app. It is currently free on the google play store. The strategy for this app, from the beginning, was to someday implement in-app billing. So the user download the free app, goes through a list of items, some free and some not, usual

[android-developers] Re: Webview shows white blank page in Ice Cream Sandwitch

2012-10-05 Thread MathieuB
Strangely, the exact same problem happened to me today. Was testing my map embedded in a webview on android 4.0.4...and around 3 times out of 4, it was showing a blank page...don't really understand why. I'll try to call the destroy() method on the onDestroy() and see if it helps... What is

[android-developers] Re: WebView in Andoird 3.x and 4.x does not load JavaScript files

2012-07-11 Thread MathieuB
Do you absolutely need to load the files from a server? You could put them in the asset folder. -- 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