Thanks Kostya I think this one is better. Thanks once again.
On Dec 27, 12:39 pm, Kostya Vasilyev wrote:
> Kris & Pramod,
>
> With all due respect, there is a much easier way.
>
> Java date/time stamps are internally represented by "long" values, the
> value being the number of milliseconds since
John,
Two suggestions:
1 - When your app "suspends" like this, it means it's crashing, but
hasn't quite crashed all the way yet, which is why there is no logcat
output at that point.
Click 'resume execution' in Eclipse, and again if necessary. You only
get logcat output (and the close dialo
I want to create a read-only memory-backed SQLite database to which I
"attach database" other SQLite db files. Usually I would use:
SQLiteDatabase.create(null)
to do this but, AFAICT this is writable because it uses
SQLiteDatabase.CREATE_IF_NECESSARY.
My current workaround is to create a db in i
Kris & Pramod,
With all due respect, there is a much easier way.
Java date/time stamps are internally represented by "long" values, the
value being the number of milliseconds since Jan. 1, 1970 GMT.
SQLite natively supports long (64-bit) interger values (use INTEGER data
type).
So, for sto
Store it simply as a long.
On Dec 27, 2:21 pm, "pramod.deore" wrote:
> Hi everyone,
> In my application I have 2 buttons one for DatePickerand
> one for Timepicker. Date piker gives me date in this format -
> 12-27-2010 and time in - 11:48. Now I want to create table to store
> these
Hi pent,
Still i am getting the same problem even i have modified in
manifest file with android:finishOnTaskLaunch="true" under each
activity..But not not working..
actually initially my application has SplashScreen..the app started from
where it was terminated..it's not starting f
Thanks Kristopher for your reply.
On Dec 27, 12:06 pm, Kristopher Micinski
wrote:
> http://sberka.blogspot.com/2009/07/date-time-sqlite-and-android.html
>
> That blog post should point you in the right direction.
>
> What you may really want to know is how SQLite handles date and time.
> From wha
On Dec 26, 7:18 pm, Jonathan Foley wrote:
> Are you aware of the jackson JSON library, its very fast and has nice
> data binding APIs.
Yes, I'm aware of it - but it comes with full (although small) can of
worms and dependencies attached.
Right now my games are 130KB and including just parser w
http://sberka.blogspot.com/2009/07/date-time-sqlite-and-android.html
That blog post should point you in the right direction.
What you may really want to know is how SQLite handles date and time.
>From what I've encountered there is no "native" date/time handling in
SQLite, but you can simply stor
Hi everyone,
In my application I have 2 buttons one for DatePickerand
one for Timepicker. Date piker gives me date in this format -
12-27-2010 and time in - 11:48. Now I want to create table to store
these values. How to store date and time in android database?
Thanks.
--
You receive
No no, the method gets called. There might be a bug when adding
focusable again. I know for sure .setFocusable gets called because the
edittext becomes white again.
On Dec 27, 1:08 am, praveena ankitha wrote:
> write the code in check box .setOnCheckedChangeListener(...) method then
> automatical
Well, I only checkout the whole OS code, and everything is in it.
Actually it's not too bad, since we can access whatever we want...
On Dec 27, 12:03 pm, John Lussmyer wrote:
> Is it possible to get just the source for the Android .jar files?
> I don't want the whole bleeding OS, just the source
write the code in check box .setOnCheckedChangeListener(...) method then
automatically that textbox is chaged according to check box
On Mon, Dec 27, 2010 at 11:13 AM, Andrew wrote:
> if (isChecked) {
>editText.setFocusable(false);
>editText.setEnabled(false);
>
I completely realize that it's possible to do well with the SDK, but I
still believe that the top layer apps should be built with the SDK if
possible.
Does the calculator compile with the SDK?
On Dec 27, 11:39 am, Robert wrote:
> Check out Alarm Clock Xtreme by Irene Duke.
> http://alarmcloc
On Sun, Dec 26, 2010 at 8:41 PM, Mystique wrote:
> Hi, how to achieve this listview?
>
Use the same layout and style as the picture.
> Is it textview or webview?
>
Probably a listview.
-
TreKing
I upgraded to ADT 8 and my projects wouldn't build with Ant any more ,
failing with a lot of class not found errors.
I have a build.properties file with the following contents:
external.libs.dir=../somedir/lib
A quick grep for the rules files shows that 'external.libs.dir' is not used
any more
if (isChecked) {
editText.setFocusable(false);
editText.setEnabled(false);
} else {
editText.setEnabled(true);
editText.setFocusable(true);
}
So this is called after a checkbox is clicked on. When it's checked
the textbox
I think you trying to use id which is not created :
android:id="@id/SpinRate"
try this
android:id="@+id/SpinRate"
On Mon, Dec 27, 2010 at 9:14 AM, John Lussmyer wrote:
> I'm attempting a not-that-complex layout using RelativeLayout, and getting
> a weird problem.
>
> When I set things up in a
Ahh, I just figured it out.
You meant the logger output in the Debug view of Eclipse.
logcat is completely empty.
On Sun, Dec 26, 2010 at 8:54 PM, John Lussmyer wrote:
>
>
> 2010/12/26 Muhammad Hakim
>
>> check the logcat
>>
>>
>>
>
> While that statement may be helpful, I don't have the faintes
2010/12/26 Muhammad Hakim
> check the logcat
>
>
>
While that statement may be helpful, I don't have the faintest idea what it
means.
--
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
check the logcat
On Mon, Dec 27, 2010 at 11:03 AM, John Lussmyer wrote:
> Is it possible to get just the source for the Android .jar files?
> I don't want the whole bleeding OS, just the source that will help me
> figure out what's going wrong in my code when I get weird exceptions.
>
> Like, rig
I am having same problem. Clicks on individual buttons work on HTC HD2
with Android 2.2 but not on mytouch 3g with Android 2.2.1.
To solve the problem of launching just one intent - use a dummy class
for default pending intent and use your required class for button's
pending intent.
On Dec 4, 6:2
I am stuck with same problem but in a more weird way,
I am learning android by writing an app which will show a custom
notification with buttons. Now, when I install this program on my HTC HD2
with Android 2.2, click on button on notification does the intended action
but when I install same prog
You very very rarely would have different dimens values for mdpi, hdpi,
etc. The point of them is to let you supply a value with units like "dp"
that are automatically scaled for you based on the screen density.
On Dec 26, 2010 10:46 AM, "Brill Pappin" wrote:
> So I'm improving on the keyboard I
Is it possible to get just the source for the Android .jar files?
I don't want the whole bleeding OS, just the source that will help me figure
out what's going wrong in my code when I get weird exceptions.
Like, right now, this line of code:
Button btn = new Button( context);
is throwing:
[2010
I'm attempting a not-that-complex layout using RelativeLayout, and getting a
weird problem.
When I set things up in a way that seems correct, I get:
Thread [<3> main] (Suspended (exception IllegalStateException))
RelativeLayout$DependencyGraph.getSortedViews(View[], int...) line:
1260
Rel
Check out Alarm Clock Xtreme by Irene Duke.
http://alarmclockxtreme.blogspot.com/
It is possible to do and do well with the SDK.
On Dec 26, 7:32 pm, Zsolt Vasvari wrote:
> I do understand where you are coming from, though. It would be ideal
> that top-layer apps, especially simple ones like
It DOES have to run forever.
On Sun, Dec 26, 2010 at 4:14 PM, Doug wrote:
> On Dec 25, 7:37 am, John Lussmyer wrote:
> > I've already found that RepeatMode/Count on an AnimationSet doesn't work.
> > I may end up manually restarting it each time. It just seemed that
> having
> > an AnimationSeq
make use of touch event for mouse event
On Mon, Dec 27, 2010 at 1:21 AM, Ankur Avlani wrote:
> Hi All,
>
> I am trying to build a server android, which will take keyboard and mouse
> actions, and pass it on to the appropriate view. So far I am successful in
> getting keyboard events. But I nee
Hi all,
I found that I need to implement other functions follow by gps.h in
order to see the information of gps nmea.
Here is the solution I described on my blog about how to fix gps nmea
issue.
http://nelsonchunglife.blogspot.com/2010/12/android-gps-porting-hal-code-try-to-fix.html
Please let m
Hi, how to achieve this listview?
Is it textview or webview?
http://172.31.254.241/www.android.com/market/data/screenshots/com.zenmobi.android.app.nfl.jetsnews0.png
Regards,
CJ
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to th
Amazon is starting a cloud based service - maybe that would help.
Here's a link to get you started with info on it.
http://mobileoffice.about.com/b/2010/12/12/expect-a-lot-more-mobile-cloud-apps-soon-amazon-intros-mobile-sdks-for-iphone-android.htm
On Dec 23, 5:48 pm, kennedyximenes wrote:
> Hi,
On Saturday, December 11, 2010 4:30:01 AM UTC+9, Steve Hugg wrote:
>
> More debugging on this issue...
>
> I am using this method to generate keys from a passphrase:
>
> KeyGenerator kgen = KeyGenerator.getInstance("AES", "BC");
> SecureRandom sr = SecureRandom.getInstance("SHA1PRNG", "Crypto"
I have exactly the same problem. How did you handle this Steve?
On Dec 11, 5:30 am, Steve Hugg wrote:
> More debugging on this issue...
>
> I am using this method to generate keys from a passphrase:
>
> KeyGenerator kgen = KeyGenerator.getInstance("AES", "BC");
> S
On Sun, Dec 26, 2010 at 7:49 PM, Nikola wrote:
> PS: i've looked over at commons TouchList but I am having problem with it,
> it crashes on running.
Step #1: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to
examine LogCat and look at the stack trace that is generated when it
"crashes o
Hi,
Is there any library or something similar for implementing drag and drop
rearrange listview.
I would like to give user a way to sort items with dragging them to
position.
Thanks.
PS: i've looked over at commons TouchList but I am having problem with it,
it crashes on running.
--
God is R
No, I´m trying to say when I put the src, the image is showing in the
ADT, but hen I runnning show the exception: Binary XML file line #8:
Error inflating class
android.widget.ImageView
On 26 dez, 22:28, 陈彧堃 wrote:
> Did you forget to set the src of the imageview?
>
> On Sat, Dec 25, 2010 at 9:23
I do understand where you are coming from, though. It would be ideal
that top-layer apps, especially simple ones like an alarm clock,
should be buildable with the public SDK. After all, how can you
create a like replacement if you don't have access to the same APIs?
On Dec 27, 5:26 am, "longingt
Thanks, will give it a try.
On Dec 27, 8:01 am, Doug wrote:
> On Dec 25, 1:51 am, Zsolt Vasvari wrote:
>
> > Thanks, Doug. I am basically trying to achieve the same effect
> > that happens when you tap the More button on the new Market app when
> > you want to see more of an apmp's descripti
Did you forget to set the src of the imageview?
On Sat, Dec 25, 2010 at 9:23 PM, ricardocunha wrote:
> Hi Everybody,
>
> I have a simple doubt but, I don´t understand what is happening.
>
> I have a simple ImageView over a Linear Layout:
>
>
> When I running this layout on a Activity the Emulato
On Dec 25, 4:34 am, Tabman wrote:
> Hi,
>
> Has anyone development experience with any of the following large
> internal storage phones:
>
> Nexus Shttp://www.google.com/phone/detail/nexus-s
> Droid 2 Globalhttp://www.google.com/phone/detail/droid-2-global-by-motorola
> Samsung
> Captivatehttp://
On Dec 25, 7:37 am, John Lussmyer wrote:
> I've already found that RepeatMode/Count on an AnimationSet doesn't work.
> I may end up manually restarting it each time. It just seemed that having
> an AnimationSequence was a pretty obvious function. I'm surprised it
> doesn't exist yet.
Or you cou
On Dec 25, 1:51 am, Zsolt Vasvari wrote:
> Thanks, Doug. I am basically trying to achieve the same effect
> that happens when you tap the More button on the new Market app when
> you want to see more of an apmp's description. Everything below the
> description slides down smoothly revealing
It's also not very good to keep view references in the application because
of their different lifetimes.
A view is basically only good for as long as its Activity. The application
object lives as long as the process, that is, much longer.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
27.12.
I am trying to load many frames into a animationDrawable and I'm running
into similar problems. Can you post an example of your solution -
"manually adding Bitmaps as frames, and then calling recycle() on them".
Do you mean you completely bypassed animationDrawable and just displayed the
bitm
On Dec 21, 2:30 pm, Tobiah wrote:
> Can one Activity manipulate the Views of another?
> Even with a class that is external to the Activity,
> it seems that I need to pass a pointer to the View
> in question around. I have a subclass of Application
> that I could use to keep the View pointers in
On Sun, Dec 26, 2010 at 4:26 PM, longingtoadopt.com wrote:
> Would prefer not to have to - since I am on Windows
Pick an application to "study and run" that builds with the Android
SDK, then. Most, if not all, applications that are part of the Android
firmware must be built as part of the firmwar
Would prefer not to have to - since I am on Windows
On Sunday, December 26, 2010 1:02:55 AM UTC-6, Zsolt Vasvari wrote:
>
> Correct, you cannot compile these modules with the SDK alone. You
> need to download the platform source and compile those. I don't know
> the details.
>
>
>
--
You re
Or give the "other class" a Java interface reference for callbacks,
while implementing the interface in the Android-aware code.
27.12.2010 0:00, Frank Weiss пишет:
Or you could use the View-Adapter pattern. The adapter is responsible
for the data model changes and informs the view to redraw v
Or you could use the View-Adapter pattern. The adapter is responsible for
the data model changes and informs the view to redraw via notifications.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-
Or you could register a receiver in one activity and post Intents from
another. That's how I do it.
--
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
Hi All,
I am trying to build a server android, which will take keyboard and mouse
actions, and pass it on to the appropriate view. So far I am successful in
getting keyboard events. But I need some help in generating the
mouse/motion events. Can someone throw some light on how will that work.
On 12/21/2010 2:47 PM, TreKing wrote:
On Tue, Dec 21, 2010 at 4:30 PM, Tobiah mailto:t...@tobiah.org>> wrote:
Will that work?
Probably.
Does it sound necessary?
Not really. What are you trying to do? Why do you need to manipulate one
Activity's views from another? This doesn't reall
26.12.2010 21:11, Brill Pappin пишет:
Thanks Kostya,
I am actually using the various methods of providing different dimens
to different devices, however the problem is that there are so many
that I'm having trouble getting things right for all of them. What I
need to be able to do is ask the
Are you aware of the jackson JSON library, its very fast and has nice
data binding APIs.
Jonathan
On Dec 26, 5:54 am, ko5tik wrote:
> On Dec 25, 11:51 pm, DanH wrote:
>
> > Until you get up to **at least** 10K of JSON (maybe 1M, depending on
> > the overall app size) there's no point in worr
Thanks Kostya,
I am actually using the various methods of providing different dimens to
different devices, however the problem is that there are so many that I'm
having trouble getting things right for all of them. What I need to be able
to do is ask the device what it thinks.
Presumably that
Brill,
While I don't have a direct answer to your question (how to ask the
system), you might want to look at "dimen" resources:
http://developer.android.com/guide/topics/resources/more-resources.html#Dimension
You can have res/values-ldpi/dimens.xml, res/values-hdpi/dimens.xml,
etc., each w
On Sun, Dec 26, 2010 at 9:52 AM, Mark Murphy wrote:
> On Sun, Dec 26, 2010 at 12:46 PM, John Lussmyer
> wrote:
> > Is there an examples page somewhere that shows what all the standard
> widgets
> > look like?
> > It'd be nice to see them all on one page.
>
> Not all, but here are several:
>
> htt
On Sun, Dec 26, 2010 at 12:46 PM, John Lussmyer wrote:
> Is there an examples page somewhere that shows what all the standard widgets
> look like?
> It'd be nice to see them all on one page.
Not all, but here are several:
http://developer.android.com/resources/tutorials/views/index.html
> This
Is there an examples page somewhere that shows what all the standard widgets
look like?
It'd be nice to see them all on one page.
This would be especially helpful since Android seems to have come up with
their own set of names for widgets. What they call a "Spinner", would be a
ComboBox or DropDow
So I'm improving on the keyboard I have in the Market.
One of the biggest problems I need to resolve is that on a smaller devices
ldpi and low end mdpi, the font on the keys is too large.
now I'm fairly sure I can ask the system for the font size it suggests, but
I'm unsure how to do that.
Can
You can have it..
you have to create cusom view ..there is no xml property..
On Sat, Dec 25, 2010 at 11:50 PM, John Lussmyer wrote:
> I'd like to have a Seekbar oriented vertically, but I can't figure out how
> to do it.
> Is it possible?
>
> --
> You received this message because you are subscr
I've been seeing the same behavior myself.
Can someone address this please?
Thanks
Guy
--
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,
If it compiles OK but you get VerifyErrors on running, it usually
means that you're running against a different version of the code than
the one you compiled against.
On Dec 26, 12:34 am, Keith Wiley wrote:
> The Android reference for java.io.file lists the 1.6 apis, including
> getfreespace().
The thing is, the standard JSON representations of data are about as
compact as one can get in Java -- unlike XML where the representation
is very inefficient. In order to read the JSON you'll create most of
the objects used to represent it, so you'll churn through about the
same amount of heap wh
How to store the data in database file of android phone in pdf format?
--
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
an
Biker is hard to see on game background.
Controls aren't very intuitive. It seems that releasing finger doesn't
mean releasing throttle. If it's really the case then there should be
some indication on the screen about current acceleration level. Texts
in menus are somewhat hard to read. In fact eve
I inserted a Log.d() in the ApiDemos/OS/Sensors application to confirm
that the sensor data is inverted (not just the display of it) from SDK
2.2 to SDK 2.3. The orientation of the sensor data is correct in SDK
2.3 (i.e., +1 g of acceleration in the z direction due to the force
from the table), bu
26.12.2010 14:32, MichaelF ?:
Kostya, that's very well spotted: the android:minSdkVersion="4" /> tag does the thing (for some reason I
neglected it). The alternative does it as well.
Ok, cool. I should have thought of this sooner.
Cheers, and thanks again,
You are welcome.
-- Kostya
Kostya, that's very well spotted: the tag does the thing (for some reason I neglected it). The alternative
does it as well.
Cheers, and thanks again,
Michael
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send e
On Dec 25, 11:51 pm, DanH wrote:
> Until you get up to **at least** 10K of JSON (maybe 1M, depending on
> the overall app size) there's no point in worrying about pull
> parsing. Reading and parsing the entire JSON file at once will
> increase temporarily the amount of heap used, but it's hardl
don't have the answer, but wondering this myself. my guess is the same
as yours ... the docs must be incorrect.
On Dec 7, 9:02 pm, davemac wrote:
> This is a new method in Android 2.3's LocationManager. It says
> basically the same thing as what it says for requestLocationUpdates(),
> except that
Michael,
I just tied changing my code so it's exactly like what you posted,
including the color scheme and how the Paint (font) object is
constructed. Perfect again.
Is your application perhaps running in 320x480 compatibility mode? That
would explain what you're seeing.
Make sure that you
73 matches
Mail list logo