the majority of this
document to fully understand how Android deals with different screens and
what kind of options you have:
http://developer.android.com/guide/practices/screens_support.html
Doug
On Wednesday, January 1, 2014 7:04:05 AM UTC-8, stanlick wrote:
Thanks Doug!
This is what I
, then give it an explicit height measurement in
dp to override its natural height measurement.
Doug
On Monday, December 30, 2013 2:39:16 PM UTC-8, stanlick wrote:
I have a LinearLayout with three views on it TextView, ImageView
and TextView. The image was pushing the third TextView off
I have a LinearLayout with three views on it TextView, ImageView
and TextView. The image was pushing the third TextView off the bottom of
the screen, so I added weight to the three views. Now when I place this
LinearLayout on a ScrollView, the weights are being ignored! Is there a
way to
,
right? The aforementioned graphic would rock if it also called out
inter/intra app differences. Who would like to create this? And while you
are painting this most useful masterpiece, perhaps you could overlay the
lifecycles too wink
Peace,
Scott Stanlick
On Mon, Feb 25, 2013 at 2:03 PM
I have been experimenting with an easy way to execute synch type bursts
without all the hassle of Services, Loaders, Threads, etc. I have come up
with a technique that works great, but I'd like to get a consensus
regarding the pattern. I am performing sendBroadcast(synch.my.app) from
the
Wouldn't this suffer the same fate when the activity experienced a
configuration change?
On Sep 27, 5:00 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
IntentService dispenses with the
configuration changes but leaves you in a lurch when requiring a
response.
In addition to Mark's
mmur...@commonsware.comwrote:
On Wed, Sep 28, 2011 at 11:41 AM, stanlick stanl...@gmail.com wrote:
Wouldn't this suffer the same fate when the activity experienced a
configuration change?
You probably pass the ResultReceiver to the new instance via
onRetainNonConfigurationInstance(). Make
After reading the thread regarding AsyncTask and Activity
configuration changes, I am actually a bit more skeptical now than
when I started!
http://groups.google.com/group/android-developers/browse_thread/thread/e1d5b8f8a3142892?pli=1
With respect to the one-and-done off-UI thread task, is there
I have a situation where my input fields are losing their contents. I
have reviewed the sections on saving instance state and believe I have
coded it correctly, however, the problem persists. I actually wonder
if the problem might have to do with a second instance of the
application running as
I have a similar issue with the Application not installed
Unfortunately, I do not have the luxury of removing the application on
account of a database. Strangely, after the download, install and
prompts to proceed, I get the screen telling me Application not
installed and the following message in
:
stanlick wrote:
SharedPreferences.Editor editor = settings.edit(); returns
android.app.ApplicationContext$SharedPreferencesImpl
$editori...@447d10e8 which resolves to a backing HashMap. When I was
saving preferences from both lifecycle methods, it was missing the
last key that was put.
Sounds
Is there a way to identify PendingIntents sitting on the
AlarmManager?
--
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
I have slept with the lifecycle diagram under my pillow for the past
several nights in hopes of resolving the dang thing. Is it just me,
or are there too many states in the cycle? Are some mutually
exclusive? I am writing an application that utilizes
SharedPreferences for its persistence. I
Murphy mmur...@commonsware.com wrote:
stanlick wrote:
When I was saving the preferences from both
lifecycle methods, some key/value pairs *WERE NOT* even in the Map
(as per debug break point).
What Map?
It
appears there are thread safety issues concerning these two lifecycle
methods
/rezmobileapps/treking
On Fri, Dec 18, 2009 at 9:16 AM, stanlick stanl...@gmail.com wrote:
Wow! So the messages on this forum from over a year ago are still
applicable today? It is incomprehensible to expect every app
developer to write this code and that to notify users about updates?
So
Thanks Vytautas --
I was careful to update both android:versionCode and
android:versionName before I uploaded my new apk. However, none of my
beta testers have received an update notification and it has been over
a week now. I have read myriad comments about users not receiving
update
On Fri, Dec 18, 2009 at 8:07 AM, stanlick stanl...@gmail.com wrote:
Thanks Vytautas --
I was careful to update both android:versionCode and
android:versionName before I uploaded my new apk. However, none of my
beta testers have received an update notification and it has been over
a week
Does an app developer need to do something peculiar in code to get a
newer version of an uploaded app to show up in the notification bar on
installed users' phone? I am reading comments that vary wildly and I
can neither determine if the message content I am reading is relevant
or current. With
I am using the following query and expecting to retrieve only contacts
with at least one phone number. However, I *am* getting contacts with
zero phone numbers. Should this constant be renamed
MAYBE_HAS_PHONE_NUMBER? :)
@Override
public ListAdapter getAdapter(Activity activity)
Can someone who speaks better droid than me please help to translate
this beauty?
12-11 09:19:51.879: ERROR/WindowManager(232): Activity
com.androidologist.friendfinder.MainActivity has leaked window
com.android.internal.policy.impl.phonewindow$decorv...@43db25f0 that
was originally added here
I am trying to determine whether satellites are being acquired or if a
lock has been acquired. I can see this with a pulsing vs. fixed dish
icon on the notification bar, but so far I have not quite achieved a
solution in code.
Apparently this does nor necessarily mean LOCK_ACQUIRED?
worked in 1.5 and 1.6 without any errors)
On 11 Dec, 17:49, stanlick stanl...@gmail.com wrote:
Can someone who speaks better droid than me please help to translate
this beauty?
12-11 09:19:51.879: ERROR/WindowManager(232): Activity
com.androidologist.friendfinder.MainActivity has leaked
if(location.getAccuracy()100) //process if accuracy is good
100
meters
Jeff
Trackaroo.com
Trackmaster - Motorsports Lap Timerhttp://trackmaster.trackaroo.com
Dynomaster - Performance Dynohttp://dynomaster.trackaroo.com
On Dec 11, 9:10 am, stanlick stanl...@gmail.com wrote
You are so right my brother! However, I think Google has the revenues
to do Android correctly and could easily assign a couple editors for
awhile to tighten up the mess.
Peace,
Scott
On Dec 11, 12:27 pm, Greg Donald gdon...@gmail.com wrote:
On Fri, Dec 11, 2009 at 12:21 PM, Matt Kanninen
I just published my first application to the market and the Just in
display show my icon and app name, but under the appname is shows my
birth certificate name! How can I change this? Is it something I am
missing in my manifest? I'm sure my mom would it; but me -- not so
much.
Peace,
Scott
--
think their was a field that said
This is your publishing name ?
On Dec 8, 10:53 am, stanlick stanl...@gmail.com wrote:
I just published my first application to the market and the Just in
display show my icon and app name, but under the appname is shows my
birth certificate name! How can I
henderson.jus...@gmail.com wrote:
If your phone uses the same Google account as your developer account,
they purposefully disallow you from downloading your own app. (and
giving it 5 stars :) )
On Dec 8, 11:02 am, stanlick stanl...@gmail.com wrote:
u rock bro! I just found it. Any idea why I'm
Thanks brother! Yeah, I've had my beta testers downloading it from my
web site, but it doesn't handle version upgrade notifications.
Peace,
Scott
On Dec 8, 10:27 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
You can always upload it somewhere on the web and download it to your
version.
On Tue, Dec 8, 2009 at 8:12 AM, stanlick stanl...@gmail.com wrote:
Ahh, I see! I was just trying to make sure it worked and I could
install it through the store. So, realizing the Google accounts are
the same on my phone and dev acct, is the USB cable the only way I can
I cannot get an image to appear in my embedded web page using:
src=file:///android_asset/image.png
I have added the file to assets/. Is there something I am missing?
Is is possible to alter the file location such that it could read from
drawable folder?
Peace,
Scott
--
You received this
I have a TabActivity subclass that attempts to start a new activity
via a menu item selection in onOptionsItemSelected. I am receiving
the following exception which eludes me at the moment! I'm not sure
why it thinks I am *not* in an activity! Any clues?
android.util.AndroidRuntimeException:
Hey Dmitri --
My app *is* reading FB names/numbers! Is this an indirect feature on
account of them being imported/sync'd?
Peace,
Scott
On Dec 1, 11:41 pm, Dmitri Plotnikov dplotni...@google.com wrote:
Just to clarify the Facebook question: the FB contact data is not visible to
any
.
-
TreKing - Chicago transit tracking app for Android-powered
deviceshttp://sites.google.com/site/rezmobileapps/treking
On Wed, Dec 2, 2009 at 7:18 PM, stanlick stanl...@gmail.com wrote:
When your app needs to show where *you are* -- where *you were* isn't
going to cut
Didn't we put a man on the moon? It can't be done seems a little lazy
today!
I have read all the posts about this topic and I understand the
arguments being made. However, I would like to know how Google Maps
can return my *current* location yet while driving the same stretch of
road, the
? The
documentation says it won't even start the location provider. Use
requestLocationUpdates.
On Dec 2, 2:53 pm, stanlick stanl...@gmail.com wrote:
Didn't we put a man on the moon? It can't be done seems a little lazy
today!
I have read all the posts about this topic and I understand the
arguments
...(Location
http://developer.android.com/reference/android/location/Location.html
location)
you are passed the location in the CB. no need to call getLastKnown...
On 12/2/09 1:10 PM, stanlick wrote:
I *am* using the listener loop and using getLastKnownLocation from the
locationManager
:30 pm, stanlick stanl...@gmail.com wrote:
Are you saying if the CB occurred, indicating a new location fix
that getLastKnownLocation would not also return this last know
location? I think I tried using the the location local variable
during one of my permutations and the net effect
Does Google offer formal training on Android? I have purchased all
the books on the market and have written several applications, yet the
one question that troubles me is are my software patterns
prescribed? How many times have you posted code only to be asked why
did you do it that way? Now
Can someone tell me how to request a blue dot (or some such marker) to
show on the map corresponding to my passed lat/lon parameters? The
API works great and centers the map with respect to the point in the
center of the screen. However, the map menu is pretty much useless in
terms of directions
In the spirit of full disclosure, it only fails in the emulator! When
I run on my Droid 2.0, it works fine. Damn the emulator!
Peace,
Scott
On Nov 20, 11:59 am, stanlick stanl...@gmail.com wrote:
What fun! Mine is now failing on 2.0 and my manifest specifies:
uses-library android:name
-library android:name=com.google.android.maps/
Peace,
Scott
On Nov 22, 9:13 am, Mark Murphy mmur...@commonsware.com wrote:
stanlick wrote:
In the spirit of full disclosure, it only fails in the emulator! When
I run on my Droid 2.0, it works fine. Damn the emulator!
The 2.0 emulator
Thanks Dmitri --
Is this test correct?
int sdkVersion = Integer.parseInt
(Build.VERSION.SDK); // Cupcake style
if (sdkVersion = Build.VERSION_CODES.ECLAIR) {
className = ...ContactAccessorSdk3_4;
} else {
className =
What fun! Mine is now failing on 2.0 and my manifest specifies:
uses-library android:name=com.google.android.maps/
Peace,
Scott
On Nov 18, 9:19 am, Andrei gml...@gmail.com wrote:
Mine works fine on 1.6 and 2.0
On Nov 16, 6:48 am, RANJAN BANIK ranjanfeelthema...@gmail.com wrote:
Hi All,
Has anyone experienced a listener being called twice? I am seeing
this consistently and cannot quite figure out why?
Peace,
Scott
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Is it possible to link/test contact account(s) using a 2.0 AVD?
Peace,
Scott
--
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
Hey Dmitri --
I have a question regarding the legacy apps only having access to the
primary account. I am writing an application that interfaces with
contacts and started on it before 2.0 was released. I am developing
with a Motorola CLIQ running 1.5 and my app works fine. Today, I
purchased a
Both Wow! and over-the-top. Now I am excited. This pattern/technique
was lifted from a distinguished Android pro's recent textbook. So
does the wow imply there is a better way to accomplish the mission? I
think I considered the contact PICK Intent, but I need to allow the
user to select
I am trying to consume the http response from a server that generated
the payload via java.beans.XMLEncoder. Unfortunately, there is no
corresponding XMLDecoder in Android so I am sitting here staring at
perfectly valid XML (although ugly) wondering how I can deserialize it
back into the
= ss.isSelected;
CheckBox cb = (CheckBox)convertView.findViewById(R.id.checkbox);
cb.setChecked(isSelected);
...
...
return convertView;
}
...
}
On Oct 26, 9:38 pm, stanlick stanl...@gmail.com wrote:
Thanks Mark --
Doesn't this sort of violate
= ss.isSelected;
CheckBox cb = (CheckBox)convertView.findViewById(R.id.checkbox);
cb.setChecked(isSelected);
...
...
return convertView;
}
...
}
On Oct 26, 9:38 pm, stanlick stanl...@gmail.com wrote:
Thanks Mark --
Doesn't this sort of violate
()) {
list.setItemChecked(2, true);
}
}
}
On Oct 27, 5:00 pm, stanlick stanl...@gmail.com wrote:
Thanks brothers --
I like the idea of the selected state of the data being in the
adapter, however, I'm not too excited about all the custom code
Thanks Mark --
Doesn't this sort of violate the MVC pattern? Moreover, does it seem
odd to you that both the adapter and ListView have methods to cough up
a view? Pre-selecting check boxes is sure becoming a difficult-to-do
process!
I am in the debugger and experimenting with how I might get
I am using a SimpleCursorAdapter and having a similar problem with pre-
checking certain entries. This is my experimental code that I am
trying immediately following the instantiation of the adapter:
adapter = new SimpleCursorAdapter(this,
I am starting an external activity from my application and would like
the back button to return the user to the point in my application
where they started the activity. Is this possible?
Peace,
Scott
--~--~-~--~~~---~--~~
You received this message because you are
:44 pm, Mark Murphy mmur...@commonsware.com wrote:
stanlick wrote:
I am starting an external activity from my application and would like
the back button to return the user to the point in my application
where they started the activity. Is this possible?
It should already return to where
Thanks guys --
It was my onResume()! I actually had the startActivity() code in a
method called plot() and I was calling plot() from the onReume(). I
guess now is the time to come to terms with the life cycle.
Peace,
Scott
On Oct 22, 4:48 pm, Jason Proctor jason.android.li...@gmail.com
Has any individual deployed an .apk that uses the add-on Google Maps
API? This weekend I tried to decipher the licensing aspects of the
generated API key, but I guess I'm not attorney enough to wring out
the summary. One license referred to another which referred to
another and my eyes started
When I place a Webview control in the content of a Tab, it is taking
over the entire display! I have jacked around with the layout but I
can't figure out how to fit the control on the tab. Is it possible
to do this?
--~--~-~--~~~---~--~~
You received this message
. Is this something peculiar to the WebView
control?
Peace,
Scott
On Oct 18, 2:29 pm, Mark Murphy mmur...@commonsware.com wrote:
stanlick wrote:
When I place a Webview control in the content of a Tab, it is taking
over the entire display! I have jacked around with the layout but I
can't figure out
?
On Oct 18, 2:29 pm, Mark Murphy mmur...@commonsware.com wrote:
stanlick wrote:
When I place a Webview control in the content of a Tab, it is taking
over the entire display! I have jacked around with the layout but I
can't figure out how to fit the control on the tab. Is it possible
to do
You are the man!
On Oct 18, 7:08 pm, Mark Murphy mmur...@commonsware.com wrote:
stanlick wrote:
Maybe I spoke too soon! This code fits nicely in the tab content
browser=new WebView(this);
setContentView(browser);
browser.loadUrl(http://commonsware.com
This is a two part question:
1) Is there a preferred listener for this control? I notice in order
to get this work, I had to listen for
AdapterView.OnItemSelectedListener and AdapterView.OnItemClickListener
2) Within my onItemClick method, the value of control.isChecked() is
opposite the GUI.
It's unfortunate the manifest doesn't have a schema to help help the
human with these expectations
Peace,
Scott
On Oct 8, 7:53 pm, Xavier Ducrohet x...@android.com wrote:
Actually you do have it but it's misplaced. It should be inside the
application node.
On Thu, Oct 8, 2009 at 5:51 PM,
Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Oct 12, 3:29 pm, stanlick stanl...@gmail.com wrote
Is there a fast way to determine if you have connectivity sufficient
to make an HttpRequest? I have played around with setting the
timeout, but it feels to me there may be a ping behavior or some
such quick test.
Scott
--~--~-~--~~~---~--~~
You received this
This code seems to return true unconditionally. Of course, I suppose
it could be the emulator, but here is the deal. When I switch my wi-
fi off and try using the emulator browser, I get the built-in Android
404 page. However, when my application tests for a net connection
using the code
How do I get the Home button to go Home on the MB200 AVD?
On Sep 16, 10:32 am, Steve steveoliv...@gmail.com wrote:
On Sep 11, 2:27 pm, Carl Whalley carl.whal...@googlemail.com wrote:
Ok, sorry for posting before I read the link - the DPAD does adjust as
you'd expect and it is explained
. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Oct 12, 3:29 pm, stanlick stanl...@gmail.com wrote:
This code seems
Would the Application class be a good place for this?
The android.app.Application class
The android.app.Application is a base class for those who need to
maintain global application state. It can be accessed via
getApplication() from any Activity or Service. It has a couple of life-
cycle
Is there a way I can identify a handset on the server side of an Http
request? I realize many headers are included on the request, but I am
uncertain as to how the handset might be uniquely identified? Perhaps
the sim signature or some such fingerprint?
Thanks,
Scott
I would like to step through the ViewContactActivity using the Eclipse
debugger to gain a better understanding of how it is assembled. I can
see the source code when I explore the source tree, but I do not see
any of the classes inside Eclipse when using Ctrl+Shift+T to open the
type. Also,
This message suffered quite a delay before being visible on this
group, and ended up many pages down in the stack! Does anyone know
where the UI's are for the basic applications?
On Aug 27, 12:04 pm, stanlick stanl...@gmail.com wrote:
Where in the source are the layouts for the built-in UI's
Thanks bro! I'll try that now.
P.S. Where do you get all these tips?
Peace,
Scott
On Aug 31, 8:31 am, Mark Murphy mmur...@commonsware.com wrote:
This message suffered quite a delay before being visible on this
group, and ended up many pages down in the stack! Does anyone know
where the
Greetings --
Can you see tell me why my posts are not appearing in the group?
Also, should the button on a new post be titled Send to moderators?
Peace,
Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
I would suspect this Activity-Service communication pattern is being
implemented in a variety of ways with good reason. Either the
developer is a newbie and found a way that works (probably from Mark's
book) or else they are strategically searching for a solution that
works specifically for
Is there a workaround to wiring up a listener for SMS messages sent?
The android.provider.Telephony.SMS_RECEIVED works great, but I cannot
find it's partner!
Peace,
Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Where in the source are the layouts for the built-in UI's? I would
like to reuse (copy) a couple of the contact UI's rather than recreate
the wheel.
Peace,
Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
77 matches
Mail list logo