[android-developers] Re: How can users enable compatibility mode?

2013-04-17 Thread Piren
You are using a tablet right? :) Big screen support only shows the "Zoom" icon on large screen devices (tablets, maybe phablets as well, never seen it on a Note though) On Wednesday, April 17, 2013 11:11:39 PM UTC+3, user123 wrote: > > Well, then that's my question. Why the device is not showing

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread Piren
that's not the point of the fragment... i meant that the fragment should handle both the logic (and data download) and the UI. then you can just plop it in any activity you want and you're set. Regarding the Application onCreate - Yeah, it will be before anything else, but you dont know how long

[android-developers] Re: Handler Post sequence

2013-04-17 Thread skink
Lew wrote: > > So how can I guarantee to Post code to be executed at the end of all > > graphic processing has been done, without PostDelayed() ? > > > > > > Start by using the correct method name. > > -- > Lew docs.mono-android.net/index.aspx?link=M %3aAndroid.OS.Handler.PostDelayed(Java.Lang.I

Re: [android-developers] How to offer new app to existing user base?

2013-04-17 Thread Nikolay Elenkov
On Wed, Apr 17, 2013 at 1:25 PM, Jungle Jim wrote: > > Is there some facility in Google Play to enables me to offer the new app to > my existing user base? If you are using Admob you can use house ads to promote your app. Set it show house ads only for a week or two, then return back to showing

Re: [android-developers] Re: How to offer new app to existing user base?

2013-04-17 Thread Jungle Jim
Good ideas. I thank you. On Wednesday, April 17, 2013 10:19:04 AM UTC-5, Paul-Peter Tournaris wrote: > > You could add a changelog in the existing app and suggest them to download > your new app! > > > On Wed, Apr 17, 2013 at 10:57 AM, dnk >wrote: > >> Not as far as I know of. Your best bet is up

[android-developers] MediaPlayer does not play ringtone when activity started from locked screen.

2013-04-17 Thread Inn0vative1
I am writing an alarm (kinda) app, which registers a broadcast intent with AlarmManager with the RTC_WAKEUP flag, to go off at a specified time. Works... When the broadcast is received, the receiver starts an activity that plays a ringtone with MediaPlayer using the STREAM_ALARM stream, and d

[android-developers] Re: Handler Post sequence

2013-04-17 Thread Lew
On Wednesday, April 17, 2013 11:33:21 AM UTC-7, Filipe wrote: > > Hi, > > Does Handler.Post() respects the "Post" sequence? > If you mean 'android.os.Handler' there is no such method 'Post()'. Did you mean 'post()' or a different type? A simplifyed version of what I am doing in my Activity i

[android-developers] Re: Handler Post sequence

2013-04-17 Thread bob
I looked at the source, and I'm not sure CodeA will execute before CodeB. Maybe try this? handler.postAtFrontOfQueue(CodeB); handler.postAtFrontOfQueue(CodeA); Or create a new Runnable that simply calls the run methods on the other two Runnables in sequence? Thanks. On Wednesday, April 17,

Re: [android-developers] Re: Mirroring animation?

2013-04-17 Thread Boyd Speer
My apologies, won't happen again...did not mean to intrude. On 2013-04-17, at 4:25 PM, Lew wrote: > b1 wrote: >> Using Touch class that implements onTouchListener (and matrix) to drag a >> crosshairs on an image aiming pad, how can I have the movements control >> another dot (imageview) in a a

[android-developers] Re: Mirroring animation?

2013-04-17 Thread Lew
b1 wrote: > Using Touch class that implements onTouchListener (and matrix) to drag a > crosshairs on an image aiming pad, how can I have the movements control > another dot (imageview) in a another part of the screen within a rectangle > proportioned the same (but a different size) as the aimin

[android-developers] Re: Handler Post sequence

2013-04-17 Thread Filipe
Hi, Thanks, this solves this problem. But in my project I have severall situations where I need to post code to run on the UI thread. If I call: Handler.Post(CodeA) Handler.Post(CodeB) Can I be sure that CodeA executes before CodeB? In some situations it does not seem like it. -- -- You r

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread bob
The documentation pertaining to your question is confusing: It sounds like 320 may very well be a "*magic number"*, and that nothing greater or lesser will work. But the docs do no

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread Mark Murphy
If you read the documentation: http://developer.android.com/guide/topics/manifest/supports-screens-element.html#largestWidth it says: "Note: Currently, screen compatibility mode emulates only handset screens with a 320dp width, so screen compatibility mode is not applied if your value for androi

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread user123
Ok, the issue is confirmed. I created a brand new project with a blank activity, and ran it on a tablet. The only modification I did was in the manifest, as follows: Then the app goes in compatibility mode - "Hello world!" is zoomed. Fine. But if I change to *321 dp *- It doesn't go

[android-developers] Re: Compatibility mode issues on 4.x

2013-04-17 Thread user123
Ok, the issue is confirmed. I created a brand new project with a blank activity, and ran it on a tablet. The only modification I did was in the manifest, as follows: Then the app goes in compatibility mode - "Hello world!" is zoomed. Fine. But if I change to *321 dp *- It doesn't go

[android-developers] Re: single device development scenario with questions

2013-04-17 Thread Lew
rh wrote: > Lew > wrote: > > That doesn't matter. Java is word-size independent. > > When I type make and it stops suddenly what > choice do I have Is there a secret FLAG? > Why are you using "make"? You don't use "make" to make Android applications. The usual tool is Ant. Are you doing

[android-developers] Re: How can users enable compatibility mode?

2013-04-17 Thread user123
Well, then that's my question. Why the device is not showing them. I put both min and target SDK to 8. I also don't have manifest element for explicit support of large screens. So this option should appear. But I don't see it. Just the action bar, with 3 dots for my custom menu and that's it :(

[android-developers] Re: single device development scenario with questions

2013-04-17 Thread Lew
rh wrote: > Lew > wrote: > > > rh wrote: > >> George Baker wrote: > > > (That's a reply to George Baker) > Well, duh. Look at the indent level of the replies. Of *course* that's a reply to George Baker, as indicated in my post by the attributions. I don't know why you kept repeating

[android-developers] Mirroring animation?

2013-04-17 Thread Boyd Speer
Using Touch class that implements onTouchListener (and matrix) to drag a crosshairs on an image aiming pad, how can I have the movements control another dot (imageview) in a another part of the screen within a rectangle proportioned the same (but a different size) as the aiming pad? The dot woul

[android-developers] Re: error message displays on gingerbread emulator but not icecream sandwich emulator

2013-04-17 Thread John Merlino
Take a look at my newer thread: https://groups.google.com/group/android-developers/browse_thread/thread/4568ef3e42fb23f8 I added the support library and used SupportMapFragment and still an issue. On Apr 17, 3:32 pm, Doug wrote: > > Binary XML file line #6: Error inflating class fragment > > Fra

[android-developers] Re: error message displays on gingerbread emulator but not icecream sandwich emulator

2013-04-17 Thread Doug
> Binary XML file line #6: Error inflating class fragment Fragments are not available in GB unless you are using the compatibility library and using only the fragment objects and activities available through it. Doug On Tuesday, April 16, 2013 2:48:06 PM UTC-7, John Merlino wrote: > > I have

[android-developers] Re: Handler Post sequence

2013-04-17 Thread bob
Maybe use something like this? View myView=findViewById(R.id.myView); myView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { //At this point the layout is complete an

[android-developers] Handler Post sequence

2013-04-17 Thread Filipe
Hi, Does Handler.Post() respects the "Post" sequence? A simplifyed version of what I am doing in my Activity is: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new AbsoluteLayout()); new Handler().Post(new Runnable() {

Re: [android-developers] Re: Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Robert Greenwalt
I agree - testing 80 sounds like a good idea to gain more info about what may be happening. On Wed, Apr 17, 2013 at 10:43 AM, bob wrote: > Is it an option to run the XMPP server on port 80? > > Or perhaps just set up a test server on port 80 to explore the hypothesis > that this will resolve th

Re: [android-developers] Re: Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread bob
Is it an option to run the XMPP server on port 80? Or perhaps just set up a test server on port 80 to explore the hypothesis that this will resolve the problem? Alternatively, you could also create a proxy that runs on port 80 and acts as an intermediary. Thanks. On Wednesday, April 17,

Re: [android-developers] Re: how to create a custom gauge in android

2013-04-17 Thread bob
If you don't use *save*() and *restore*() and something gets drawn after your needle, it will also be rotated just as the needle was rotated. So you would probably use something like this: *canvas.save();* canvas.rotate(45, 100, 100); canvas.drawBitmap(…); *canvas.restore();* Thanks.

Re: [android-developers] Re: how to create a custom gauge in android

2013-04-17 Thread abdallah mouhamed amine
thank you BOB that helps me a lot :) i used draw method to draw the needle (initial position) then i used rotate like you said to rotate it and it works correctly did i need to use save and restore methods? 2013/4/17 bob > Break the needle off of that image and put it in it's own image. > > The

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Robert Greenwalt
Thanks Long Pu for the reasoning for not using GCM. You only have this problem on sprint wimax, correct? Have to tried very frequent keep-alives? Figuring out roughly what the required period is may help us find the cause. We can talk with Sprint and Samsung about it, but the timeout info would

[android-developers] problems with android support library

2013-04-17 Thread John Merlino
In my Android SDK Manager, I have the Android Support Library installed. In my Downloads/android-sdk-macosx/extras/android/support directory, I have a v4, a v7, and v13. I copied android-support-v4.jar to the libs folder. Right clicked and selected Build Path > Configure Build Path. In the activity

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread mbaroukh
If using fragment, I suppose I could make only one activity that will handle logic (and data download) that will do what AndroidApplication should and many fragment that won't have to manage more than their own state. But that did not seems clean to me. >Doing it in OnCreate of the application

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread Piren
I'll reply here for both messages: Yeah it is android design, i dont like it myself but they did supply some help - Fragments... they are the middle ground between pure UI and BL... You can have a fragment that handles the whole thing and use it in both activities (i personally think that the co

[android-developers] Re: how to create a custom gauge in android

2013-04-17 Thread bob
Break the needle off of that image and put it in it's own image. Then use this function in *Canvas*: final void *rotate*(float degrees, float px, float py) Also, you will call *drawBitmap* in the Canvas class. Of course, you will want to *save()* and *restore()* the matrices before and after t

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread mbaroukh
Service or not every activity must implement a logic to wait for the download to complete isn't it ? So it must have a logic for it own process and a logic for the download. That make those activities more complicated than they have to be. Is it and Android design problem that have no solution an

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread mbaroukh
"Don't let the "UI" handle the data (activity), add a Business Logic layer to do that." I totally agree with that and data is loaded from a separate layer actually called by activity A. But I was looking how to avoid to have each activities call the initialisation of this layer. It seems obvio

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread RichardC
Use a Service to retrieve and manage the data, Bind the service from Activity A and B. If the data is available use it, if it not download it (in the service). On Wednesday, April 17, 2013 3:57:28 PM UTC+1, mbaroukh wrote: > > I have a problem that appear on every new developpement. > I never f

[android-developers] Re: Applications that relies on external datas.

2013-04-17 Thread Piren
Don't let the "UI" handle the data (activity), add a Business Logic layer to do that. I.E - create a class that is responsible for managing this data. if data is present, load from DB, if not, download for the net. Then let whichever activity that needs the data, interact with that class instea

Re: [android-developers] Re: How to offer new app to existing user base?

2013-04-17 Thread Παύλος-Πέτρος Τουρνάρης
You could add a changelog in the existing app and suggest them to download your new app! On Wed, Apr 17, 2013 at 10:57 AM, dnk wrote: > Not as far as I know of. Your best bet is update the old app and point > them to the new one. > > > On Tuesday, April 16, 2013 9:25:15 PM UTC-7, Jungle Jim wro

[android-developers] Applications that relies on external datas.

2013-04-17 Thread mbaroukh
I have a problem that appear on every new developpement. I never found a clean way to handle it so I'm asking for your help. Suppose you have an app that rely on data coming from network. Every activity needs those data. So my approach actually is to handle the download by the first activity and

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Long Pu
We have to consider multiple platforms(iOS, Android, Blackberry). On iOS, push notification is not an option for our application. If use GCM, we need another extra special design especially for android. On Mon, Apr 15, 2013 at 11:23 PM, Robert Greenwalt wrote: > Could you use GCM

Re: [android-developers] Re: Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Long Pu
I am connecting to tcp port 5222 which provides xmpp service On Tue, Apr 16, 2013 at 12:00 AM, bob wrote: > What port number are you using on the server? > > > Maybe use *port* *80* as it is more open? > > > Thanks. > > > > On Saturday, April 13, 2013 5:35:13 AM UTC-5, Long wrote: >> >> Hi Deve

Re: [android-developers] how to create a custom gauge in android

2013-04-17 Thread abdallah mouhamed amine
hi Parthi, am working on android project not on BB 2013/4/17 Parthi K > Buddy u can call directly progress dialog in bb we call Gauge > Thanks & Regards, > Parthiban.k > Software Engineer > Mode FinServer Pvt. Ltd. > Cell: +7204205850 > Email: parthisof...@gmail.com |parthiban.k > @modefinserv

[android-developers] Converting PCM to AMR-WB using AmrInputStream

2013-04-17 Thread Raneez
My Android application needs to convert recorded audio in WAV to AMR-NB and AMR-WB. And i am done with converting to *AMR-NB* using *AmrInputStream*. In AmrInputStream, the value for SAMPLES_PER_FRAME is hard coded to *8000 * 20 / 1000* and the audio has no changes even after changing SAMPLES

[android-developers] Re: Only Portrait and ReversePortrait in android 2.1 API Level 7

2013-04-17 Thread Ricardo Cardoso
any idea? 2013/4/15 Ricardo Cardoso > I have a doubt as to leave the screen only in portrait and > reversePortrait, tested code, but only when the screen turns > reversePortrait, I can not go back to portrait. why? > > in my MainActivity.class > > @Overridepublic void onConfigurationChanged

Re: [android-developers] how to create a custom gauge in android

2013-04-17 Thread Parthi K
Buddy u can call directly progress dialog in bb we call Gauge Thanks & Regards, Parthiban.k Software Engineer Mode FinServer Pvt. Ltd. Cell: +7204205850 Email: parthisof...@gmail.com |parthiban.k @modefinserver.com On Wed, Apr 17, 2013 at 3:34 PM, psyco wrote: > hi all, > > > >

[android-developers] Changing width of TabIndicator in View Pager

2013-04-17 Thread Ansh
Hi guys , I want to reduce the width of the tabIndicator of the StripTabTitle in view pager. Here is the details.Please help. -- -- You received this message because you are subscribed to the Google Gr

[android-developers] how to create a custom gauge in android

2013-04-17 Thread psyco
hi all, am trying to build a custom view witch displays a gauge, what i did is : 1-designed the gauge with photoshop 2-created the cutom View and it's .XML file 3-set the bakcground g

[android-developers] Re: How to offer new app to existing user base?

2013-04-17 Thread dnk
Not as far as I know of. Your best bet is update the old app and point them to the new one. On Tuesday, April 16, 2013 9:25:15 PM UTC-7, Jungle Jim wrote: > > I have written a new app that I want to publish this week. > > I have a number of existing users who have active installs of another app.

[android-developers] Re: How can users enable compatibility mode?

2013-04-17 Thread Piren
You don't enable it on the device.. the device does it for you. If the app wasn't designed for a tablet and meets the conditions (like having the targetSdk below a set level and/or having not declared it is destined for big screens) then the device will show the proper compatibility options li

[android-developers] How to take the focus on to the softkeyboard

2013-04-17 Thread Shashidhar
Hi, I am working on a project which does not have any touch interface. All it has is a remote control with 6 buttons (Enter, Back, next, prev, up and down arrow keys). Using these button we need to control the navigation of the app. Coming to my problem here, I have an edit text which shows the s

Re: [android-developers] Re: Security exception with launchMode="singleTask"

2013-04-17 Thread Piren
apparently not :) I do wonder though, does the same happen if you get a FileDescriptor and use it instead of a URI? On Monday, April 15, 2013 5:03:53 PM UTC+3, nobre wrote: > > Hi, is this supposed to be working after 2.3 ? I'm experiencing this > behavior on 4.0.3 and 4.1.1 , URI permissions