One way I've solved this is to have your app check the version (either against
your server by other means), then open the Play-Store app with an intent
directing it to your app listing there. To the user, it looks just as if they
had navigated there themselves.
If I remember, there's a way to
I haven't tested with the MockContentProvider, but I'm pretty sure that you
just need to create one in the JUnit setup() routine and clear it in the
teardown(). Make it a member of the JUnit class. I saw several detailed posts
after doing a Google search, have a look
As I read your reply, I'm confused now about what's being tested. Are you
testing the ContentProvider or the Activity? If testing the Activity, it may
be better to create a MockContentProvider that's responsible for providing back
the info. If testing the ContentProvider, skip the Activity
Is the object instance for the content provider different between test runs?
How are you destroying and recreating the ContentProvider?
I suspect that if the Application instance is the same between test runs the
ContentProvider might be too. It's created at the Application level through
the
The Activity that is launched is determined by the incoming Intent and the
various IntentFilters you have configured in your manifest. The intent filter
that you have set there in the manifest channels the launch intents to your
'Main' Activity. Try moving the entire intent filter block from
Not 100℅ understanding your question. How familiar with SAX are you? You
should be handling the start element and end element for each imageurl, put
them into a list of either String or URL or URI objects. For the latter two,
you'll need to add the host and any path stuff.
There are lots of
I've done this many times, my typical setup is to have the handset connect to
our office LAN through the wireless. You'll need to get the local address of
the server, most WiFi access points will give you a listing of devices that
they are routing for.
I've also used Dynamic DNS services to
Depending on what you want to test, there many different tools. Here are some
suggestions based on what I've used in the past.
Testing that the server works, try a browser as described above for really
basic yes/no test. If the data isn't HTML or JSON/XML, you might just use
wireshark to see
I generally don't prefer loading images directly from the Fragment/Activity,
because I typically use the images multiple places throughout the app and don't
want the user to pay for the same data twice.
General solution: setup a Singleton image cache like described in the docs,
along with an
I absolutely agree with putting the 'smarts' at the application level instead
of relying on various flags and events from the TCP/IP layer. What interested
me in this thread was your process / equipment control via the handset. As a
safety mechanism, any equipment should go immediately into a
I agree with Mark's comment. Jenkins has plug ins for all this. I got from
zero to working automated build system in something like two days. Hardest
part was getting the SVN pull working correctly. Getting EMMA configured right
was also a little tough, but once done it's 100% hands-off.
I use the office WiFi without any trouble. Development machine is setup with a
local 192... address, the hansdet will get another local address on the same
subnet. I just direct requests to the development machine's address and
everything works great.
Debug through ADB is still by USB
I'm pretty sure that you're going to need to do these updates through the
runOnUiThread() method.
Here's an example of how I typically notify the list adapter/view /etc.
Basically, if I think that there's any chance of cross thread problems, opt
for the runOnUiThread()
@Override
Can anyone please quickly confirm that ActivityUnitTestCase and
sendKeys() DO work as the Android Developer docs describe.
I've searched through a number of threads on this topic and I'm
getting conflicting info.
I've run through the Spinner and SpinnerTest samples, and the call
to sendKeys()
Does the no modification rule apply to moving the views around?
I've got a ListView object, where I'm using the TouchListView.java
adaption to allow the user to resort the items
Does this movement qualify as a modification? I'm performing data
changes within the Adapter, but the actual view
Hey Paul,
I've had good luck with the TCP Monitor that's built into Eclipse.
That seems to work really well for me. I've been debugging from one
instance of Eclipse with the Android debugger against another instance
of Eclipse running my servlet code in Tomcat.
I've been able to use the TCP
I'm writing an application that will have lots of map points, using
the Google Maps API.
The locations of my OverlayItems will be moving and changing, so I'd
like input on best approach to take to update the new locations of the
points as they move. I think that I have only two options (correct
I don't believe that you can just pass the KML file to maps, at least
I have not seen a way to do this.
I am currently doing something similar, and I think you will need to
draw the polygon manually on the canvas.
As I'm approaching the problem, the individual OverlayItem (or child
class derived
Hi,
Is the Maps API class OverlayItem parcelable?
If not, can I extend the OverlayItem class and add my own
implementation of Parcelable (for my extended data) and have it
function correctly?
Thanks.
--
You received this message because you are subscribed to the Google
Groups Android
Hi,
I'm trying to set a widget's style attribute with a reference to a
custom attribute that's been loaded with a real-concrete style.
The Android SDK docs show an explicit example for just setting the
textColor attribute based on a style reference:
EditText id=text
Thanks Kostya,
I think I'm doing pretty much what you said (I'll check again), I'm
trying to use the ?foo reference to dynamically set the style of an
individual view or view-group.
1) I've created my own fixed styles, there are three of these. I want
to select one of the three by setting the
I think that may be where we're getting mixed up.
I've created a style tree that follows the SDK recommendations like
this. It follows inheritance, using the . notation, just like the
examples in the SDK
MyCompanyStyle
|
MyCompanyStyle.Header
| |
| MyCompanyStyle.Header.Bold
|
I've setup my widgets to all reference a style/theme that I've created
in styles.xml, the individual buttons look something like this:
!--BUTTONS --
LinearLayout style=@style/CustomSetupWizard.ControlBackground
android:id=@+id/LL2
Button style=@style/CustomButton.Cancel
Hi,
I'm working on a continuous integration system (Hudson) and I'm trying
to debug some existing build configurations.
I'm looking for the ant_rules_r3.xml file that's described in a
number of posts and trying to determine how it's configured.
I'm not finding these in any of the android-sdk
24 matches
Mail list logo