Re: [android-developers] Any suggestions for Ad platform in addition to AdMob

2013-08-20 Thread Miguel Morales
I suggest you take a look at: https://github.com/mopub/mopub-android-sdk/wiki/Getting-Started and https://github.com/mopub/mopub-android-sdk/wiki/Banner-Integration I'd probably stay away from low paying networks beside the ones stated before. Good luck. On Mon, Aug 19, 2013 at 6:27 PM, limtc

Re: [android-developers] Any suggestions for Ad platform in addition to AdMob

2013-08-19 Thread Miguel Morales
to less SDKS. If it does, that is a desirable goal. And do most SDKs require the awful READ_PHONE_STATE permission? Nathan On Saturday, August 17, 2013 8:16:31 PM UTC-7, Miguel Morales wrote: Hi, I work for an monetization startup so i think i can weigh in on this. We're currently

Re: [android-developers] Any suggestions for Ad platform in addition to AdMob

2013-08-17 Thread Miguel Morales
Hi, I work for an monetization startup so i think i can weigh in on this. We're currently not on Android, so i think i can be fair. The networks beside us I can recommend are: Chartboost AdColony Burstly Mopub Most Ad SDKs give you a no fill response so you can always build your own waterfall

Re: [android-developers] Any suggestions for Ad platform in addition to AdMob

2013-08-17 Thread Miguel Morales
Oh, I forgot to mention that banners are probably one of the worst ad units. Some of these networks have full screen interstitial that'll make you much more money per impression. On Sat, Aug 17, 2013 at 8:16 PM, Miguel Morales therevolti...@gmail.comwrote: Hi, I work for an monetization

Re: [android-developers] How do I write an equation in string format in Android?

2012-08-24 Thread Miguel Morales
I'm not sure if anyone else suggested this. Why don't you just use a web view and use HTML to render the formulas. On Aug 23, 2012 11:50 PM, gabi2i42 gabi_sech...@yahoo.co.uk wrote: Hello, I am creating an Android App and I do not know how to write an equation which will be displayed to the

Re: [android-developers] How do I write an equation in string format in Android?

2012-08-24 Thread Miguel Morales
yeah but good luck getting latex to render in a view. You might just transform it. On Aug 24, 2012 4:53 PM, Kristopher Micinski krismicin...@gmail.com wrote: Just FYI, among academics there has been a better standard (LaTeX) for around 30 years now, :-) kris On Fri, Aug 24, 2012 at 7:14

Re: [android-developers] Regarding Freelancing

2012-06-14 Thread Miguel Morales
The best way to find a job is to show off your creations. Employers value developers who take the time and program application on their own. Link to the applications you've developed and people will notice. On Thu, Jun 14, 2012 at 8:44 AM, Justin Anderson magouyaw...@gmail.comwrote: Put your

Re: [android-developers] Techincal solution to develop an App in Android

2012-05-31 Thread Miguel Morales
You need to provide more details and possibly code and screenshots for us to be able to help you. Most likely when you are doing onItemSelected you are not mapping it to the proper data item. Again, screenshots would help. On Thu, May 31, 2012 at 12:34 AM, Ibrahim Sada

Re: [android-developers] Re: want to install a software .exe from my Android App

2012-05-31 Thread Miguel Morales
Doesn't android already have busybox installed via adb shell? On Thu, May 31, 2012 at 4:59 PM, Meryeme meryemeaya...@gmail.com wrote: yes you are right Francisco we can not install .exe in our mobile phone directly. because I am trying to install busybox.exe but it did not work for me but

Re: [android-developers] Does Android supports UDP protocol??

2012-05-15 Thread Miguel Morales
Android does indeed support UDP but I've seen carriers that drop UDP packets so I recommend you experiment and research first. On Tue, May 15, 2012 at 1:32 PM, Kristopher Micinski krismicin...@gmail.com wrote: Android runs a Linux kernel (mostly..) Linux has UDP in its networking stack. So

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
You may want to try lowering the priority of the thread and seeing what happens. On Tue, May 1, 2012 at 1:33 PM, Justin Anderson magouyaw...@gmail.comwrote: Because it demonstrates the issue. I highly doubt it... Your app creates a thread that runs forever and doesn't do anything? Sounds

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
Also, if you have a very tight infinite loop. The scheduler won't know that there's a break for the processor so that it can do other things. You may also want to add a Thread.sleep() call. On Tue, May 1, 2012 at 1:43 PM, Miguel Morales therevolti...@gmail.comwrote: You may want to try

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
Well, try adding a sleep first and then check your results again. You can then rule out the CPU consumption there and then. Otherwise, it indeed may be a bug. Perhaps that implementation creates a lock or something and lets the UI thread from continuing. That is the root of the issue, that the

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
Yeah that's really weird, good luck with your issue. You may want to start looking into work-arounds, but what a pain. Ugh, this just adds to the fuel of the fragmentation flames. Looking at this page: http://developer.android.com/guide/topics/graphics/2d-graphics.html you'll see what you're

Re: [android-developers] Re: Canvas performance for games

2012-04-30 Thread Miguel Morales
I second the OpenGL route. It's pretty much the only thing that'll give you the performance you want. You may also want to check: http://www.youtube.com/watch?v=U4Bk5rmIpic http://www.youtube.com/watch?v=7-62tRHLcHk On Mon, Apr 30, 2012 at 4:54 PM, Adam Ratana adam.rat...@gmail.com wrote: I

Re: [android-developers] How to read the large sized text file

2012-03-15 Thread Miguel Morales
I think the problem is that you're reading the whole file into a byte array. This is bad. Try using a buffered input stream. In other words, stream read the file. You should also know that phones are very limited in memory. Loading more than a few MB into memory spells trouble. On Mar 15,

Re: [android-developers] How to store images in sdcard, at the time of downloading app.?

2012-01-12 Thread Miguel Morales
What? How is this possible, I work with the iphone sdk and I know of no way to know when the application is first installed and run any code. Please point to the documentation that describes this, otherwise I'm going to have to call shenanigans. On Wed, Jan 11, 2012 at 3:08 PM, Jatin D Patel

Re: [android-developers] Re: Re: Re: Packing data onto socket stream ?

2011-12-30 Thread Miguel Morales
If you have a background with php and javascript you should already know about json. What are you trying to do? This sounds like something a simple webservice with a fileserver could easily do. On Fri, Dec 30, 2011 at 7:45 PM, SL@maxis ecp_...@my-rialto.com wrote: These days, it's common to

Re: [android-developers] Re: Re: Re: Re: Packing data onto socket stream ?

2011-12-30 Thread Miguel Morales
If you're doing web dev and don't know about json, you're probably doing something wrong. Anyway, good luck with your odd approach. On Fri, Dec 30, 2011 at 8:25 PM, SL@maxis ecp_...@my-rialto.com wrote: If you have a background with php and javascript you should already know about json.

Re: [android-developers] Packing data onto socket stream ?

2011-12-29 Thread Miguel Morales
Just use a tcp socket and a bytebuffer. On Thu, Dec 29, 2011 at 6:47 AM, SL@maxis ecp_...@my-rialto.com wrote: I am sorry, I think this is not strictly an android question. From an android device, I want to a message to a PC via a socket. I am going to pack my data as follows:

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
I haven't done this myself but I *think* you dont have to set a default activity. You might then be able to subclass the Application class and override onStart() and launch an intent there. Again, not even sure if this is possible but might be a bit cleaner. 2011/12/23 Kostya Vasilyev

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
...@gmail.com The application object is not an entry point into an Android package. There is no UI for the user to launch the application object. Activities is what users launch, and is that what they see in the launcher. 24.12.2011 3:49 пользователь Miguel Morales therevolti...@gmail.com написал: I

Re: [android-developers] Re: Memory leaks when using bitmaps in android

2011-12-22 Thread Miguel Morales
Working with bitmaps is a little hard on Android. One thing to do is to resize or pack them so that they take up less memory. Another thing you may want to look into is to reuse the bitmap object/memory. You may have to do this in native though. As other have pointed out System.gc() just gives

Re: [android-developers] Re: Display many images into the Imageview in 3-4 seconds

2011-12-15 Thread Miguel Morales
into a new thread but anything is changed. On Dec 15, 1:23 am, Miguel Morales therevolti...@gmail.com wrote: Why is TimerTask too slow? Just set the time lower? This might help: http://developingthedream.blogspot.com/2011/01/android-canvas-frame-b... On Wed, Dec 14

Re: [android-developers] OT How to Automate Build Tasks in Eclipse?

2011-12-14 Thread Miguel Morales
Simply combine ant with a script. I use Perl for my build scripts because Ant can be tedious to work with. However, use Ant as a base to compile your projects. On Wed, Dec 14, 2011 at 7:02 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Dec 14, 2011 at 11:34 PM, Mark Phillips

Re: [android-developers] OT How to Automate Build Tasks in Eclipse?

2011-12-14 Thread Miguel Morales
: On Thu, Dec 15, 2011 at 12:15 AM, Miguel Morales therevolti...@gmail.com wrote: Simply combine ant with a script. I use Perl for my build scripts because Ant can be tedious to work with. However, use Ant as a base to compile your projects. Perl may be more concise, but is not really

Re: [android-developers] OT How to Automate Build Tasks in Eclipse?

2011-12-14 Thread Miguel Morales
Classy. The only way I know how to keep it. On Wed, Dec 14, 2011 at 8:15 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Dec 15, 2011 12:41 AM, Miguel Morales therevoltingxtherevolti...@gmail.com @ therevolti...@gmail.comgmail.com therevolti...@gmail.com wrote: That's

Re: [android-developers] Display many images into the Imageview in 3-4 seconds

2011-12-14 Thread Miguel Morales
Why is TimerTask too slow? Just set the time lower? This might help: http://developingthedream.blogspot.com/2011/01/android-canvas-frame-by-frame-animation.html On Wed, Dec 14, 2011 at 5:13 PM, Christian Bianchini max...@gmail.comwrote: I have a problem with Android and the perfomance, I

Re: [android-developers] Android web development guide..(beginner question..)

2011-12-13 Thread Miguel Morales
http://developer.android.com/guide/webapps/index.html On Tue, Dec 13, 2011 at 4:54 AM, Yang Bo yangbo@gmail.com wrote: If you are developing web app,it will run in browser installed in user phone. Why do you care Android SDK api ? 在 2011-12-13 下午7:43,sathyashrayan

Re: [android-developers] Porting Application

2011-12-12 Thread Miguel Morales
3D image galleries? I don't think those are standard in iOS are they? IIRC, the iOS default gallery is very similar to the Android gallery. If you want to make 3d gallery for Android you'll probably have to find an opensource implementation or program your own. On Mon, Dec 12, 2011 at 12:52 AM,

Re: [android-developers] Re: splash screen

2011-12-10 Thread Miguel Morales
Well, to be honest you don't really need a splash screen. What is taking so long is that you are loading the images in the same thread as the UI thread. This makes it hang while you load your bitmaps. I'm surprised you're not getting an application not responding alert. What I do in my game is

Re: [android-developers] Re: splash screen

2011-12-10 Thread Miguel Morales
BTW, I misplaced a } That's all in the same onCreate() method. On Sat, Dec 10, 2011 at 3:00 PM, Miguel Morales therevolti...@gmail.comwrote: Well, to be honest you don't really need a splash screen. What is taking so long is that you are loading the images in the same thread as the UI thread

Re: [android-developers] Re: Suspended app

2011-12-09 Thread Miguel Morales
Haha, nothing in this world is fair. Come on now, you just got unlucky that you got caught. Next time try creating something more original and stop trying to leech off other companies. BTW, you should really consult your lawyer. I'm sure you consulted him/her before uploading the app. On Fri,

Re: [android-developers] How to monitor screen touch event in service

2011-12-08 Thread Miguel Morales
Or steal any phone numbers I dial? On Thu, Dec 8, 2011 at 1:48 AM, Yang Bo yangbo@gmail.com wrote: Because that may be very useful,if you want implement a system wide gesture, or do something interesting accounting like how many times you hit the phone screen every day 在 2011-12-8

Re: [android-developers] Re: splash screen

2011-12-07 Thread Miguel Morales
How about placing a layout or something on top of your surface view and place a progress control there or something. That would be the least intrusive i think. On Wed, Dec 7, 2011 at 6:17 PM, Kristopher Micinski krismicin...@gmail.comwrote: On Wed, Dec 7, 2011 at 9:11 PM, Christopher Van Kirk

Re: [android-developers] Re: how do i know if i am on road between two points in android

2011-12-02 Thread Miguel Morales
This is really easy if you use your own server. Simply store lat/long values for the points you'd like. To get points near another point construct a lat/long perimeter around it. Basically, like a rectangle you'll have a start x,y lat/long pair and an end lat/long pair. You can then query your

Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread Miguel Morales
Why are you using timers? That seems needlessly complicated. Use a game loop that keeps a constant frame rate. Maintain state in your sprite objects, use the game loop to update this state. Then on a separate draw loop draw the sprite according to its state. Then you dont have to worry about

Re: [android-developers] pausing games: dealing with Handler Messages timers

2011-12-02 Thread Miguel Morales
Well, having neat code is pretty useless in a game is you are going have sync issues. Furthermore, it's standard to have a game loop and a draw loop. Plus, you are adding the overhead of using message queues. Also, if you are launching or using a thread for each sprite the game is going to slow

Re: [android-developers] Re: About Phone GAP

2011-12-02 Thread Miguel Morales
It's ok for what it is. But, it's just all the layers of abstraction in HTML/JS that make it really slow. I doubt they will gain much more speed on mobile devices, perhaps by using hardware acceleartion. In either case, it's slow and it looks and feels like crap. But it's perfect for simple apps,

Re: [android-developers] viewing source code

2011-12-02 Thread Miguel Morales
Unless the app is open source, you can't. Otherwise it would be illegal and stealing. In some countries they cut off your hands for stealing. So, don't steal someone's hard work. On Thu, Dec 1, 2011 at 10:40 PM, newtoandroid shobana...@gmail.com wrote: hii how could i view the sourcecode of

Re: [android-developers] please give me solution

2011-12-02 Thread Miguel Morales
This is a terrible question. What the hell do you mean: but it is not accepting dynamic values.. ??? Post a better description and a log. Also, make sure you spend more than a minute typing up your question and try really hard to use proper English. On Thu, Dec 1, 2011 at 11:11 PM, sunkuru

Re: [android-developers] How to hooking Android WebView with anytools(WebKit, etc.....)

2011-12-02 Thread Miguel Morales
You use the Android WebView with the Android SDK. Now you dont have to wonder. On Thu, Dec 1, 2011 at 10:59 PM, Chae-Hoon Lim caterp...@gmail.com wrote: Hello. how to hooking Android WebView with andorid API or tools?? i wonder about it -- You received this message because you are

Re: [android-developers] good videos

2011-11-26 Thread Miguel Morales
I believe tablets like the Xoom have HDMI out. Use that. On Sat, Nov 26, 2011 at 6:58 PM, bob b...@coolgroups.com wrote: What can I use to make good videos of my Android games? I tried filming my tablet, but those videos are kind of low quality. -- You received this message because you

Re: [android-developers] Re: Urgent help required

2011-11-11 Thread Miguel Morales
that i am sending with css. I am unable to use any images in the html page. On Nov 11, 12:12 pm, Miguel Morales therevolti...@gmail.com wrote: Why not have the HTTP server on the PC and use the Android device as a client? You'll probably have to post code, logs, etc to get better help

Re: [android-developers] Re: Urgent help required

2011-11-11 Thread Miguel Morales
file i am using url('images/css/topBanner.jpg'); where the image is in the raw-images-css folder. I am unable to load this file. On Nov 11, 1:34 pm, Miguel Morales therevolti...@gmail.com wrote: That's not detailed at all, very bad explanation. Again, you'll have to post code, logs, etc

Re: [android-developers] Re: Urgent help required

2011-11-11 Thread Miguel Morales
They sure are. On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra suniljmis...@gmail.comwrote: The images are in res-raw-images-css On Nov 11, 3:38 pm, Miguel Morales therevolti...@gmail.com wrote: That's better, most likely you'll want to put your html/images in the res folder and then user

Re: [android-developers] How do LBS apps get information?

2011-11-10 Thread Miguel Morales
Probably from google places and other apis like it. On Wed, Nov 9, 2011 at 7:54 PM, Cristiano manchesterufc@gmail.comwrote: Hi All, Now there are many LBS apps,which can show user the information around his location,such as restaurants,hotels,metro stations and so on,so how do these

Re: [android-developers] Re: Urgent help required

2011-11-10 Thread Miguel Morales
Why not have the HTTP server on the PC and use the Android device as a client? You'll probably have to post code, logs, etc to get better help. At least explain, in much better detail, your issue. On Thu, Nov 10, 2011 at 10:56 PM, Sunil Mishra suniljmis...@gmail.comwrote: I want to share the

Re: [android-developers] UIActionSheet Android counterpart

2011-11-08 Thread Miguel Morales
AlertDialogBuilder. You're welcome. On Tue, Nov 8, 2011 at 1:53 PM, bob b...@coolgroups.com wrote: I'm converting an app from iPhone to android. On iPhone, there's a UI element called a UIActionSheet that slides up from the bottom. Here's an example:

Re: [android-developers] point me in the right direction?

2011-11-06 Thread Miguel Morales
Those aren't really built in, they're just images. So use images in your android app too. On Sun, Nov 6, 2011 at 3:09 PM, bob b...@coolgroups.com wrote: I'm working on converting an app from iPhone to Android. Here's a screenshot of the UITableView I'm working on:

Re: [android-developers] Icon Sets

2011-11-04 Thread Miguel Morales
It depends on the license of the artwork I believe. If you're going to purchase art, it's always good to retain the copyright so that you can use it as you wish. That's why sometimes it might be better to pay an artist for a custom set than using licensed images. On Thu, Nov 3, 2011 at 11:13 PM,

Re: [android-developers] Re: TextView -- text transformation

2011-11-01 Thread Miguel Morales
Make it a custom webview and use html? There's also spannable which lets you define things like clickable links in text. I believe it also supports html formatting. On Tue, Nov 1, 2011 at 5:13 AM, TreKing treking...@gmail.com wrote: On Mon, Oct 31, 2011 at 11:08 PM, Zsolt Vasvari

Re: [android-developers] eBook publishing

2011-10-26 Thread Miguel Morales
Maybe try: http://books.google.com/support/bin/answer.py?answer=185615ctx=tspromo On Tue, Oct 25, 2011 at 2:09 PM, NwSkipper ad...@bytes4theheart.com wrote: I'm a small publisher that would like to distribute my books via the Android market... I've searched and searched and can't find out how

Re: [android-developers] Apple plist files

2011-10-21 Thread Miguel Morales
Try looking for a simple java library that deals with plists. It's funny because I've been researching this myself but for Perl. On Fri, Oct 21, 2011 at 3:34 PM, bob b...@coolgroups.com wrote: I've been commissioned to convert an iphone app to Android. However, the app makes extensive use of

Re: [android-developers] Bad performance in communication over TCP-Socket

2011-10-04 Thread Miguel Morales
That seems overly complicated, what are you trying to do? I *think* your bottle neck is that you're reading 1 byte at a time. You need to read more, if you simply expand your buffer your code may work. The way I've done is is to have a separate thread that's strictly for TCP communication. There

Re: [android-developers] Re: How do I report a bug to htc?

2011-10-01 Thread Miguel Morales
You need to use a Lock such as: http://developer.android.com/reference/java/util/concurrent/locks/ReentrantLock.html This sounds like a race conditions, as others have pointed out. These are usually the hardest to narrow down. Static variables are not a good idea in general unless you know

Re: [android-developers] DrawTextOnPath advice needed.

2011-09-30 Thread Miguel Morales
About your second question, Try enabling anti-alias on your paint object On Fri, Sep 30, 2011 at 1:56 PM, Nathan critter...@crittermap.com wrote: Hi, I'm using DrawtextOnPath. My first question is what does hOffset really mean? It says the distance along the path to add to the text's

Re: [android-developers] Problem with Exceptions that are thrown deep in the System of my app

2011-09-20 Thread Miguel Morales
That's the thing. You don't show any dialogs outside of an activity. This is not good practice, log the trace. If you want to be messy, you can have a singleton to which activities register to. Then call functions in that singleton. On Mon, Sep 19, 2011 at 3:33 AM, JoachimG

Re: [android-developers] Re: Android development Online course at UCI

2011-09-16 Thread Miguel Morales
You typically include links to completed apps on your resume. This way employers know you can complete an application and that they're not paying for you to learn. On Fri, Sep 16, 2011 at 4:18 PM, Nency Robert angelgirl4...@gmail.com wrote: HI all thanks for the reply. I hv already read some

Re: [android-developers] Dialog dismiss()

2011-09-13 Thread Miguel Morales
It really isn't that hard. I went ahead and created a test project to show the way I'm doing it. I'll probably write a blog post about it. See: https://github.com/therevoltingx/android_orientation_test/blob/master/src/com/solrpg/orientation_test/DefaultActivity.java On Tue, Sep 13, 2011 at 9:50

Re: [android-developers] HTML table width

2011-09-12 Thread Miguel Morales
I've used tables with width=100% just fine. You're probably doing something wrong. On Mon, Sep 12, 2011 at 11:49 AM, bob b...@coolgroups.com wrote: Whenever I set the width of a table to 100% using HTML in an Android WebView, Android makes a mess of the page.  Anyone know about this? -- You

Re: [android-developers] Re: character replace

2011-09-11 Thread Miguel Morales
Right, this should be fairly automatic. Read the file in as a utf-8 stream and output as ascii. Post some code, and what you're trying to do. On Sat, Sep 10, 2011 at 11:55 PM, Zsolt Vasvari zvasv...@gmail.com wrote: How are you trying to do this conversion? On Sep 11, 11:37 am, bob

Re: [android-developers] Re: java Thread class vs Android HanderThread: which is better?

2011-09-09 Thread Miguel Morales
Also, and correct me if I'm wrong. AsyncTask uses an internal threadpool to balance background requests. This is really useful if you making many network calls at once but don't want to start a new thread for each one. Also, you do get slightly better performance because with AsyncTask the

Re: [android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread Miguel Morales
That looks correct, your issue may lie somewhere else. On Thu, Sep 8, 2011 at 9:52 AM, Rafael Maas rafaelm...@gmail.com wrote: Try using a async thread  to run the update socket method  and update your interface using

Re: [android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread Miguel Morales
BTW, this line seems strange: Message msg = Message.obtain(hRefresh, 1, i1, i2); The way I do it is by using a bundle with the message and putting whatever data in the bundle. On Thu, Sep 8, 2011 at 10:14 AM, Kostya Vasilyev kmans...@gmail.com wrote: signal 11 is a segmentation fault, probably

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
The problem is that you are attempting to update the UI in a foreign thread. This line: progressDialog.dismiss(); You seem to be using a handler, so just change it to: handler.postRunnable(new Runnable() { @Override public void run() { progressDialog.dismiss(); }); Don't ever

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
Actually, don't use a ProgressDialog, use Activity.showDialog() instead. This handles device orientation. On Thu, Sep 8, 2011 at 2:41 PM, Miguel Morales therevolti...@gmail.com wrote: The problem is that you are attempting to update the UI in a foreign thread. This line: progressDialog.dismiss

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
dismiss() can be called from any thread: http://developer.android.com/reference/android/app/Dialog.html#dismiss() It just queues the dialog up for cleanup - or something along those lines. Hmm, I see. I would argue it shouldn't be thread safe, since it violates the don't touch the UI rule.

Re: [android-developers] dialog

2011-09-08 Thread Miguel Morales
Override the dialog class and set your own layout. I *think* dialog builder also has a method for setting your own layout. On Thu, Sep 8, 2011 at 3:09 PM, bob b...@coolgroups.com wrote: Can someone tell me how to pop up a dialog with two buttons on it that say Facebook and Twitter? -- You

Re: [android-developers] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread Miguel Morales
I would say, simply have a backend that scrapes the website. When the user signs up or whatever, scrape their twitter page. Then query this backend database from your mobile device. Probably not very legal though. On Wed, Sep 7, 2011 at 11:39 AM, saex elpablos...@gmail.com wrote: oh, can you

Re: [android-developers] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread Miguel Morales
Why not? Can't give you solutions if you can't properly explain yourself. On Wed, Sep 7, 2011 at 11:49 AM, saex elpablos...@gmail.com wrote: this can't be applyed to my needs, i need another kind of solution On 7 sep, 20:41, Miguel Morales therevolti...@gmail.com wrote: I would say, simply

Re: [android-developers] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread Miguel Morales
That's pretty much what I suggested. Anyway, parsing html with java is really easy. Take a look at WebHarvest, and libraries like xlst and xpath. It'll be great programming experience and you'll be able to build all kinds of scrape services. But, again, this may not be legal unless you get

Re: [android-developers] Re: Combining Canvas with OpenGL

2011-09-06 Thread Miguel Morales
the simple way is to use a relativelayout as a base, add the glsurfaceview, and the regular canvas surfaceview on top of that. the only thing is that opengl uses a different coordinate system than the canvas, so you'll have to adjust your math accordingly. On Mon, Sep 5, 2011 at 11:35 PM,

Re: [android-developers] loadData on a WebView

2011-09-06 Thread Miguel Morales
No, it's never ok to touch any views outside of the UI thread. On Mon, Sep 5, 2011 at 9:52 PM, bob b...@coolgroups.com wrote: Is it ok if I call loadData on a WebView from a background thread?        wv.loadData(html, text/html, utf-8); It seems to work, but it feels naughty. -- You

Re: [android-developers] Andriod Developers

2011-09-06 Thread Miguel Morales
You don't need to go to an university to learn to program. Just read the google sdk documents and practice a lot. On Mon, Sep 5, 2011 at 7:59 PM, emil_bar...@yahoo.com emil_bar...@yahoo.com wrote: I am seeking for some help in developing android games. I am willing to learn a lot of things as a

Re: [android-developers] Re: [ASK] HOW TO SEND LONGITUDE LATITUDE TO ANOTHER ANDROID PHONE VIA INTERNET..

2011-09-06 Thread Miguel Morales
Depending on the specs, and if it doesn't need to be realtime you can just use http and serialize your data with xml or json. Ultimately, these are skills any good developer should have and as such you should try really hard to build it yourself and come back when you have any relevant android

Re: [android-developers] Accessing activity implementing methods in another class

2011-09-06 Thread Miguel Morales
If the class only lives as long as the activity does, then you can probably get away with passing around the activity. However, for some basic network code, you might as well just keep it on your activity class. For example, you can use AsyncTask or just declare a handler and thread. On Tue, Sep

Re: [android-developers] remarkable slowness

2011-09-04 Thread Miguel Morales
Are you building this in a tight loop or something? What's slow about it, how long does that single line take? On Sun, Sep 4, 2011 at 5:02 PM, bob b...@coolgroups.com wrote: I am seeing some remarkable slowness in code like this:        String html = htmlheadstyle

Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Miguel Morales
Look up examples on stream reading a file for java. The problem is you are allocating an extremely large byte array. On Thu, Sep 1, 2011 at 11:51 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: here i am taking video file for read byte the error byte arry outofmemory On Fri, Sep 2,

Re: [android-developers] Re: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Miguel Morales
I don't know what a perfect url is, just look up examples on streaming a file using java. There's hundreds of examples. On Fri, Sep 2, 2011 at 12:17 AM, skink psk...@gmail.com wrote: On Sep 2, 8:58 am, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Yes i understanding this issue large

Re: [android-developers] Re: Showing moving images

2011-08-28 Thread Miguel Morales
I have written a small tutorial for this and have been told it's helpful: http://developingthedream.blogspot.com/2011/01/android-canvas-frame-by-frame-animation.html On Sun, Aug 28, 2011 at 8:38 AM, blake blake.me...@gmail.com wrote: Have a look at android.graphics.drawable.AnimationDrawable.  

Re: [android-developers] Android development is very bad

2011-08-22 Thread Miguel Morales
xcode sucks On Sun, Aug 21, 2011 at 11:44 PM, Simon Platten simonaplat...@googlemail.com wrote: Whos him? On Mon, Aug 22, 2011 at 7:22 AM, Naveen kumarnaveen.si...@gmail.com wrote: i think android development is very bad for android developer compare to xcode. xcode giving framework for

Re: [android-developers] Re: Downloading Files Directly in Webview without it opening the browser

2011-08-22 Thread Miguel Morales
You have to return false on shouldOverrideUrlLoading. That will prevent the browser from initiating the download. You have to move the code from onLoadResource there, and return false if you detect the video link. The onDownloadStart() is irrelevant if you are going to be handling the downloading

Re: [android-developers] Re: Downloading Files Directly in Webview without it opening the browser

2011-08-22 Thread Miguel Morales
Actually, it's the other way. You should return true on shouldOverride, but only when you've detected that your video link was clicked. At the moment, you are returning true, but loading the url to the webview yourself which defeats the purpose. On Mon, Aug 22, 2011 at 1:21 PM, Miguel Morales

Re: [android-developers] Re: Downloading Files Directly in Webview without it opening the browser

2011-08-22 Thread Miguel Morales
, Miguel Morales therevolti...@gmail.com wrote: Actually, it's the other way.  You should return true on shouldOverride, but only when you've detected that your video link was clicked. At the moment, you are returning true, but loading the url to the webview yourself which defeats the purpose

Re: [android-developers] news app

2011-08-22 Thread Miguel Morales
Seems like editing the item should be an activity. On Mon, Aug 22, 2011 at 2:30 PM, bob b...@coolgroups.com wrote: Ok, let's say you are working on a news app. So, you have a ListView with some article titles. Then, when an article is clicked you have a TextView that replaces the ListView.

Re: [android-developers] Re: Updating UI from second thread

2011-08-19 Thread Miguel Morales
Yeah you should redesign your app. Or, come up with some sort of buffer solution. Depends on how often your check function runs, and how critical it is to the UI interaction. Maybe setup event listeners for every checkbox so that it keeps track of an internal structure what needs to be checked,

Re: [android-developers] need thread on UI / lifecycle Gotchas

2011-08-19 Thread Miguel Morales
Well, if you use findViewById() in a thread, that's plain out wrong. The function you posted seems wrong in that it first makes a UI call in that thread context. Then it attempts to use a queue to post a runnable to so that setText() runs in the UI thread. It's redundant if it's already in the UI

Re: [android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Miguel Morales
Post the full logcat trace. Make sure you're not doing any network operations in the UI thread. Google 'java multi-part upload' for tips on how to chunk the upload. On Fri, Aug 19, 2011 at 2:26 PM, Simon Platten simonaplat...@googlemail.com wrote: 10mb? Have you tried zipping it before posting? 

Re: [android-developers] Re: unicode stuff

2011-08-19 Thread Miguel Morales
You have to make sure you read the data in utf-8 and then set that as the encoding type. Should take care of it. On Fri, Aug 19, 2011 at 5:21 PM, bob b...@coolgroups.com wrote: Tried it, but it didn't work.  Still weird chars. On Aug 19, 12:36 pm, Mark Murphy mmur...@commonsware.com wrote:

Re: [android-developers] Re: Downloading Files Directly in Webview without it opening the browser

2011-08-18 Thread Miguel Morales
Simply set a custom webview client on your webview. Then detect when your download link was clicked. Then start a download thread to download your file. Update the webview accordingly. If you need any further help, consult the android webview documents. On Thu, Aug 18, 2011 at 11:13 AM,

Re: [android-developers] want some more information about ImageView

2011-08-16 Thread Miguel Morales
You're breaking a cardinal rule of Android programming. That is, don't ever modify the UI in another thread. See: http://developer.android.com/resources/articles/painless-threading.html On Tue, Aug 16, 2011 at 5:05 AM, TreKing treking...@gmail.com wrote: On Tue, Aug 16, 2011 at 6:35 AM, Nasreen

Re: [android-developers] Re: What is the right way to get updates from REST service by timer in Android?

2011-08-10 Thread Miguel Morales
You may want to use a service: http://developer.android.com/guide/topics/fundamentals/services.html On Tue, Aug 9, 2011 at 9:26 PM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: UPDATE: I need to receive updates even if user has switched to another application or receive a call. UI also

Re: [android-developers] Re: onDraw() causing flicker when drawing new images

2011-08-06 Thread Miguel Morales
Perhaps you can try adding a synchronized lock that protects your data array. Lock it before going into onDraw() and unlock it when finished, and do the same when calculating your array data. Do you have a separate thread that calculates positions? On Fri, Aug 5, 2011 at 6:23 PM, niko20

Re: [android-developers] I can't show random images in the ImageView

2011-08-06 Thread Miguel Morales
Add some logging so that you can see what n is. Then find out why it's not generating a random number. On Sat, Aug 6, 2011 at 8:33 AM, Zwiebel hunzwie...@gmail.com wrote: Nice day! I tried to show random images in my application in an ImageView. I tried this code: public class r extends

Re: [android-developers] Re: Android -- the forgotten real fragmentation

2011-08-04 Thread Miguel Morales
That's odd, I just tried it and indeed it only works for 3.7.x version. Looking up the error brought up this page: http://www.sqlite.org/draft/wal.html Particularly the part of backwards compatibility. Seems that something happened with that file, or it was in the middle of an operation or

Re: [android-developers] Re: Android -- the forgotten real fragmentation

2011-08-04 Thread Miguel Morales
It's still possible despite that, read the link I posted. If the file was in some sort of unfinished operation where the write ahead log it will change the file format. The file would still be readable by 3.7 by not by anything below. Read the file to determine its version. Or send it over to

Re: [android-developers] Re: Android -- the forgotten real fragmentation

2011-08-04 Thread Miguel Morales
4, 2:22 pm, Miguel Morales therevolti...@gmail.com wrote: It's still possible despite that, read the link I posted. If the file was in some sort of unfinished operation where the write ahead log it will change the file format. The file would still be readable by 3.7 by not by anything below

Re: [android-developers] Re: Android -- the forgotten real fragmentation

2011-08-04 Thread Miguel Morales
, regardless if it's crashed or not. On Aug 4, 2:22 pm, Miguel Morales therevolti...@gmail.com wrote: It's still possible despite that, read the link I posted. If the file was in some sort of unfinished operation where the write ahead log it will change the file format. The file would still

Re: [android-developers] need source code

2011-08-04 Thread Miguel Morales
Is the app open source? Is it a stock app? Have you tried googling it? On Thu, Aug 4, 2011 at 1:21 PM, vipin saroha 1989sar...@gmail.com wrote: hiii everybody can anybody tell me how to download source code files of a free android app. plz send me the links... plz reply thank you vipin

  1   2   3   4   5   >