|
Salvador Dalvik posted:Give this a shot: But I'll grab a couple of close-ish outputs and see if I can figure out a way to mash them together. If not I'll just use the Dark overflow instead. Tunga fucked around with this message at 00:11 on Aug 19, 2013 |
# ? Aug 19, 2013 00:09 |
|
|
# ? May 23, 2024 17:49 |
|
Just starting up in Android development. A quick question about creating an AVD. I want to create one that emulates my current Samsung Galaxy Ace. This guide on Tutsplus says that I need to download manufacturer-supplied add-ons to do exactly this, but it's not really telling me how to find those. Where are you supposed to get these files? Also, I know that this is such a rookie question, but this particular guide also uses examples that involve the use of the command prompt (but it offers no explanation on how to set it up). I'm trying to use the Run > cmd from the Start menu, but that's not working at all. Is there an alternate command line that I'm suppose do to be using from the Android SDK, or something? melon cat fucked around with this message at 03:46 on Aug 19, 2013 |
# ? Aug 19, 2013 02:41 |
|
The regular Android emulator is terrible, give Genymotion a shot.
|
# ? Aug 19, 2013 08:43 |
|
Just to close off my issue regarding using Dark style action bar with a Light overflow menu, all I actually needed to do was override the overflow icon with the one from here (and similar). Code:code:
|
# ? Aug 19, 2013 12:37 |
|
I've started looking into AsyncTask and planning on implementing it in my project. However, I would prefer if I could keep them separate from the rest of the code as I've got quite a nice MVC thing going on. The problem is that I have some methods that are quite time consuming which makes it a bit hard to find a place to put the publishProcess() call. For example: code:
|
# ? Aug 19, 2013 19:43 |
|
Claeaus posted:I've started looking into AsyncTask and planning on implementing it in my project. However, I would prefer if I could keep them separate from the rest of the code as I've got quite a nice MVC thing going on. Awhile ago on a project in school, one of my classmates did something like this: code:
|
# ? Aug 20, 2013 18:28 |
|
What are you guys using for prototyping the gui? I remember seeing some html5 templates or whatever but cant find them. There are also some psd graphics, but that doesnt sound very flexible.
|
# ? Aug 20, 2013 19:11 |
|
How easy is it to use the USB port on Android? OTG seems like overkill and puts way too much burden on the phone. Ideally, I'd have an app on the Android device expose a simple interface over USB that the host would poke and prod at, making the app show data. Basically, can I take over the USB port and use it like I would if I'd designed the whole device or is Mass Storage the only way it'll ever show up? Targeting a single device for what that matters.
|
# ? Aug 20, 2013 23:54 |
|
JawnV6 posted:How easy is it to use the USB port on Android? Is the host a PC or a microcontroller? There is a USB accessory kit based on AVR8 and ARM32 MCUs, and it exposes a high-speed serial interface. Its compatible with most devices released in the last year or two. Otherwise, some apps abuse ADB as a bridge to smuggle data. The best example would be PDANet, which uses that method to enable tethering on devices without root access.
|
# ? Aug 21, 2013 00:12 |
|
Salvador Dalvik posted:There is a USB accessory kit based on AVR8 and ARM32 MCUs, and it exposes a high-speed serial interface. Its compatible with most devices released in the last year or two. Micro. This is precisely what I need. Thanks! I've found the AOA documentation on the Android site and it really sounds like they've got a kit, but I'm lost as to where I'd order one. This is enough to get me started though
|
# ? Aug 21, 2013 00:22 |
|
JawnV6 posted:Micro. This is precisely what I need. Thanks! The easiest one to find is probably the Arduino ADK, which is the simplified version of the official ADK 2011. It's an Atmega2560 in USB host mode, I used one for a personal project a year ago and it worked pretty well. Only downside is that the phone expects to charge from it, so battery powered hosts won't work very well. There is the ADK 2012, which is the ARM cortex version with audio capability, but I haven't used it yet.
|
# ? Aug 21, 2013 00:30 |
|
Angryhead posted:The regular Android emulator is terrible, give Genymotion a shot.
|
# ? Aug 21, 2013 22:21 |
|
melon cat posted:So glad you told me about this. I found the original emulator to be really cumbersome. Thanks! Seconding this. I'm now kinda concerned it's running too fast compared to a real Android device. Also it has USB support.
|
# ? Aug 22, 2013 03:38 |
|
Are there any best practices for dealing with color profiles differences across devices? I have some graphics designed for iOS and their more muted colors that look like clown vomit when loaded on a Samsung device. Up till recently you could set up color profiles as a user on the Samsung but they removed that. Is there anything that can be done programatically?
|
# ? Aug 22, 2013 14:10 |
|
BLT Clobbers posted:Seconding this. I'm now kinda concerned it's running too fast compared to a real Android device. Also it has USB support. Haha, yeah, it does run faster than actual phones. Genymotion is an amazing tool and I use it all the time, but it's not exactly good for testing, say, animations, memory usage, and screen size factors. You still need the AVD emu and real phones for lots of polish stuff.
|
# ? Aug 25, 2013 16:42 |
|
My company recently started to display some interest in developing for Android. I have never written a line of code for this OS, so I am doing a lot of reading nowadays. One of the applications that we want to develop is a service that will be made available for free on Google Play, but that will offer paid downloadable content to allow it to do more things (it's a text to speech engine, and we want to sell various languages/countries/variants). Now, from all the reading that I've done, it appears that the In-App billing API only provides a way to associate product IDs (SKUs) with your application, and the google servers only tell you what is available and what did the user buy so far. Additionally, should the user want to buy an additional product, they're quite handy. The question I have: what about the data? In my case the language file. Do I have to bundle everything that I have with the main application? The problem with that is that I will have to update the application when new languages become available (as they are developed). Or do I have to host a service myself that the application can use to download the content (and query for what's available)? All that I could see from the various articles and the google docs is that i essentially only have these 2 options (there is that extension APK as well, up to 2GB, but that still requires publishing and users to update their existing app). Am I missing something here? Is there a way to have Google Play host everything for me (the various packages) and for users to just buy them? I thought about just publishing different APKs (one the main service, and the rest as languages), but then how do I find out what's installed and what's not? The androidmarketapi library doesn't look very appealing since it's a 3rd party library that google can choose to break at any time. What did you guys do when you had such a requirement?
|
# ? Aug 27, 2013 18:52 |
|
Salvador Dalvik posted:Only downside is that the phone expects to charge from it, so battery powered hosts won't work very well. Running up against this now :/ Is there any way to disable charging? The naive thought to drop the 5v just made it think the cable was gone
|
# ? Aug 28, 2013 01:04 |
|
rhag posted:Or do I have to host a service myself that the application can use to download the content (and query for what's available)? This would work, I think this is how SwiftKey etc. do language packs I think. quote:Am I missing something here? Is there a way to have Google Play host everything for me (the various packages) and for users to just buy them? I thought about just publishing different APKs (one the main service, and the rest as languages), but then how do I find out what's installed and what's not? The androidmarketapi library doesn't look very appealing since it's a 3rd party library that google can choose to break at any time. This is another option. One can use the PackageManager API to determine what the user has installed. To share data between the packs and the main app you might want to use a shared user id. There might be better ways to handle that though - I've never done something like that.
|
# ? Aug 28, 2013 01:08 |
|
Glimm posted:This is another option. One can use the PackageManager API to determine what the user has installed. To share data between the packs and the main app you might want to use a shared user id. There might be better ways to handle that though - I've never done something like that. Hmm...didnt know about the shared user id, yea, that could possibly work. Thanks.
|
# ? Aug 28, 2013 01:30 |
|
JawnV6 posted:Running up against this now :/ Is there any way to disable charging? The naive thought to drop the 5v just made it think the cable was gone Not that I'm aware of, but I'm no EE. For that project I ended up using a Bluetooth serial adapter (like this or a cheap ripoff). The android bluetooth API has good support for the RFCOMM profile so it worked pretty well, but you have all the extra annoyance of managing bluetooth devices.
|
# ? Aug 28, 2013 05:08 |
|
rhag posted:Hmm...didnt know about the shared user id, yea, that could possibly work. Thanks.
|
# ? Aug 28, 2013 11:00 |
|
Is it strange to put in an offline ad banner? My app is free to download with IAP to disable ads. In earlier releases, users could use my app on their offline device as though they'd purchased the no-ads IAP. I didn't think that was fair to paying users (or me), so I put in a banner that prompts people to buy the IAP in instances when the AdMob server couldn't be contacted. At least one person responded negatively to it, though, so now I'm wondering if I'm going to shoot myself in the foot in the long-term.
|
# ? Sep 2, 2013 22:03 |
|
Karthe posted:Is it strange to put in an offline ad banner? Mobile connectivity is generally poo poo. Sacrificing usability to do right by your paying users in this way won't net you any more money, and it destroys your freemium funnel. That's two pretty lovely alternatives. Is there a third?
|
# ? Sep 3, 2013 00:56 |
|
Doctor w-rw-rw- posted:Mobile connectivity is generally poo poo. Sacrificing usability to do right by your paying users in this way won't net you any more money, and it destroys your freemium funnel. That's two pretty lovely alternatives. Is there a third? And what do you mean by, "it destroys your freemium funnel"? Just to clarify, my app is a Japanese-English dictionary - there's nothing freemium in my app. All functionality is enabled regardless of whether the user has purchased the upgrade to remove ads. It seemed to be the easiest way to get people to use the app while still leaving open a small window for people to support my work. As for a third alternative, there's not a whole lot I have to work with. Like I said earlier, all functionality is available to users the moment they download the app. I could just charge for the app, but it seems pretty common knowledge that that monetization model is more successful on iOS than on the Android side of things. This is my first Android app rodeo, so I'm honestly not sure what works or doesn't work when it comes to monetizing apps.
|
# ? Sep 3, 2013 01:16 |
|
Karthe posted:Honest question, am I sacrificing usability by placing a "tap here to get rids of ads" view that's the same size as an ad the user would see if they were online? The ad's not an interstitial, and it's only a 50dp tall TextView located at the bottom of the screen in the same container that an ad would appear. I misread. I thought your app disables itself if the ad doesn't fill. Yeah, just make it less convenient for free users vs paid users. People determined to not spend money will do many things to not pay. Doctor w-rw-rw- fucked around with this message at 01:31 on Sep 3, 2013 |
# ? Sep 3, 2013 01:19 |
|
Doctor w-rw-rw- posted:Mobile connectivity is generally poo poo. Sacrificing usability to do right by your paying users in this way won't net you any more money, and it destroys your freemium funnel. That's two pretty lovely alternatives. Is there a third? Maybe a happy medium is that if AdMob is unavailable, you also check if you can DNS resolve play.google.com and get a route to it. Only display the "buy the IAP" banner if both conditions are true. That way, if your user is really, truly offline, then you don't bug them. After all they can't buy your IAP if they don't have an internet connection. On the other hand, if they're a rooted user who blackholed AdMob in their /etc/hosts, and they're butthurt because they're still seeing a banner, then screw them.
|
# ? Sep 3, 2013 01:23 |
|
Looks like 4.4 KitKat has been announced, no SDK updates yet though: http://www.android.com/kitkat/
|
# ? Sep 3, 2013 17:55 |
|
Glimm posted:Looks like 4.4 KitKat has been announced, no SDK updates yet though: Boy, isn't it great that there's gonna be another new Android version? 4.3's been out for like a whole month or something!
|
# ? Sep 3, 2013 21:49 |
|
Ulysses S. Grant posted:
Psh. You effectively have a 2.3 target and a 4.0+ target. That's a piece of cake next to the Eclair-Gingerbread-Honeycomb compatibility I had to do back in my day, when we had to walk uphill both ways (granted, in SF, you still generally have to literally walk uphill both ways). Gone are the days of lovely incomplete SQLite support, a missing String.isEmpty implementation, and poisoned HttpURLConnection connection pools. *shakes cane*
|
# ? Sep 4, 2013 00:53 |
|
Besides, Google's pretty much given up on core OS changes, it's all Play services and support library additions from here on out. Yay, I guess?
|
# ? Sep 4, 2013 00:57 |
|
Salvador Dalvik posted:Besides, Google's pretty much given up on core OS changes, it's all Play services and support library additions from here on out. Well, they moved core OS apps from the OS to the Play Store, more like. Makes sense that a lot of that stuff doesn't need to be carrier-certified and would benefit from a more iterative update cycle. I think having to live on their own platform will help them make it more livable for all of their developers. Now if only Android had an animation framework that didn't totally blow.
|
# ? Sep 4, 2013 02:33 |
|
Greetings androidians *chuckles heartily* In my app, I (my coworker) have added a new url scheme called poop:// so you can put poop://pasta/ in the browser and it'll forward to my app and do whatever. This is the part of the code that adds it, I'm pretty sure, in the android manifest. code:
But that's something I want. Is this something I need to add a permission for, a la <uses-permission android:name="android.permission.INTERNET" /> or what. What do I do! Please help me, android buffs! I need to dip into your pool of knowledge!
|
# ? Sep 5, 2013 03:15 |
|
Why would you do that, when you could actually use http and your real domain name? Then for public content with these urls, people with the app get the choice of opening it in the app and people without get a webpage you serve at that URL.
|
# ? Sep 5, 2013 03:18 |
|
5TonsOfFlax posted:Why would you do that, when you could actually use http and your real domain name? Then for public content with these urls, people with the app get the choice of opening it in the app and people without get a webpage you serve at that URL. Duuuuuuude, there's a whole bunch of other poo poo its used for, so much that I dont even know it all. These urls are auto-generated from our app and just used as easy links to get to parts of the app or export/import data to/from other devices. Sending the url as an email is one of the ways to transfer the information to another device. I'm probably gonna sound like a douchehole when I say this, but I just want this defect fixed by friday because the higher ups want it fixed by then and I dont want anyone on my team to get decapitated from the fallout if anything goes into disarray.
|
# ? Sep 5, 2013 03:31 |
|
5TonsOfFlax posted:Why would you do that, when you could actually use http and your real domain name? Then for public content with these urls, people with the app get the choice of opening it in the app and people without get a webpage you serve at that URL. One reason to do that would be to have one link you can email out to all mobile users as iOS doesn't support redirecting http://foo to a particular application. I'm not sure of a solution to this problem other than sending out two links, but I'd be interested in hearing what you come up with. Have you tried sending the email as html and having an explicit anchor tag? Glimm fucked around with this message at 03:37 on Sep 5, 2013 |
# ? Sep 5, 2013 03:35 |
|
Yeah, we got poop://blah/ working in iOS, and mail.app linkifies it right which is super duper (mail.app did have a problem with long urls but I got that sorted out today). Now we want it to work on android too.Glimm posted:Have you tried sending the email as html and having an explicit anchor tag? Peanut and the Gang fucked around with this message at 03:41 on Sep 5, 2013 |
# ? Sep 5, 2013 03:38 |
|
Another option is to have the email link to a web address which will redirect to your custom scheme. Will be a bit annoying since it means the browser has to open for a split second, but I don't really know another way to handle it.
|
# ? Sep 5, 2013 03:45 |
|
Glimm posted:Another option is to have the email link to a web address which will redirect to your custom scheme. Will be a bit annoying since it means the browser has to open for a split second, but I don't really know another way to handle it. I see, but I don't see that happening in a reasonable amount of time, as I don't have access to touch the server-side code, and I doubt I can get a hold of someone to add in that feature in just a few days. Thanks for the advice so far. I will continue researching (and weeping) on the morrow.
|
# ? Sep 5, 2013 04:01 |
|
I need to pass multiple values along to a ContentProvider when I run a query(). I know that, typically, I can pass a value along with the URI by appending the value to the end of the URI. Is it safe/sane to add a pipe-delimited string as the end value, and then split it on the pipes from within the ContentProvider? Something like this: content://com.test/GetMatchingEntries/1|34|72|114 The simplest way to handle this (in my opinion) would be to pass an ArrayList via a Bundle to the ContentProvider when I call query(), but I'm not sure if that's possible or not.
|
# ? Sep 5, 2013 17:41 |
|
|
# ? May 23, 2024 17:49 |
|
barbarianbob posted:Greetings androidians *chuckles heartily* Write your e-mail using HTML code:
I haven't tested this but it should work
|
# ? Sep 5, 2013 20:55 |