here is a good example of Asynctask usage!
http://www.androidsnippets.com/grab-a-url-source-with-progressdialog-and-asynctask
On Jan 31, 3:24 pm, aashutosh aashutosh.andr...@gmail.com wrote:
Hello,
How can i use Asynctask for the following code:
public static String getXML() {
Thank Mark, that did indeed help!
On Jan 31, 3:37 pm, Mark Murphy mmur...@commonsware.com wrote:
getPreferenceManager() looks like it will return null if you are using
preference headers. My guess is that you are supposed to use the
PreferenceManager from your PreferenceFragments.
On Tue,
Hi,
I would like to create an application (for not rooted devices) that
will make ti easy for the user to install a group of market
applications in a single click (or as less clicks as possible) is that
possible?
The only way that I could think of is to create a list of the apps and
clicking
Hi Guys !!
First... sorry by my english, i am spanish...
I have a android application which is connecting with a WCF
Service .NET using KSOAP2.
My client Android connect with the service OK. And my client can send
a complex data type and receive this.
The problem is in the server (Ok, i dont
Currently for my 2.x preference screens, in every PreferenceActivity I
add the line `setContentView(R.layout.activity_preferences);` to have
a custom layout in my activities.
The activity_preferences.xml layout file looks like this:
LinearLayout
I'm trying to define my own View subclass.
public class myView extends View {
myView(Context context) {
View(context);
}
}
Eclipse flags the first line of my constructor with an error Implicit
super conctructor View() is undefined. Must explicitly invoke another
constructor and
I think you should write super(context)
Sourabh
On Wed, Feb 1, 2012 at 2:41 PM, atcal alan.williams...@ya.com wrote:
I'm trying to define my own View subclass.
public class myView extends View {
myView(Context context) {
View(context);
}
}
Eclipse flags the first line of
hii
I am creating a widget (AppWidget) on Home Screen of device.
On widget I am showing image on run time.
I want to run UI thread with widget without using activity class.
Plz help me.
Thanks to All
--
You received this message because you are subscribed to the Google
Groups Android
Hello All,
I am working on an application and wish to include chat option in it.
My application contains a friend list. I wish to see who among my
friends are online and chat with them.
I want to create my own chat application and DON'T want to include any
other pre-developed chat application
On Jan 30, 2:10 pm, Daimoe rudel.dimi...@googlemail.com wrote:
Hi
My task is do develop a Android app which is able to connect to a
other device via Bluetooth and communicate with the TCP Socket there.
At the other Device there are a Socket Server written in c# (TCP
Socket).
I can
hi
can we over ride the default android menu
i.e., can we add our specific other items to the menu provided by them
like adding posting the image to facebook after taking a picture using
cam .
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
Hi,
I am trying to create a new Contact with a photo, but my code doesn´t
work properly. The thing is that the first time I execute the code the
new contact doesn´t appear on the Contacts List, but the second time I
execute it the contact appears twice and properly. I have tried the
same code but
Hi,
I have string, that length greater than 4000.
And i change the setting tts engine as pitch value , speech rate.
Whenever string length greater that 4000, tts engine starts and reading at
its default setting(i mean pitch, speech rate values).
If there is string which has length less than 4000,
Hi
I'm creating a bitmap wich i need to use as background of a 320 width
screen. The problem is that the bitmap is not getting the width i
want. It is getting two empty spaces on the left and on the right. It
is because it is fitting the height of the screen, but i dont want
that, i want to force
Hello all,
How to exit from application.
--
Regards,
Narendra
.
--
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
Narendra,
please check my blog post.
http://androidbasic-answer.blogspot.in/2012/02/how-to-exit-from-android-application.html
--
*More info*,
http://androidbasic-answer.blogspot.com/
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To
On Wed, Feb 1, 2012 at 3:41 AM, madlymad mando7s...@gmail.com wrote:
I would like to create an application (for not rooted devices) that
will make ti easy for the user to install a group of market
applications in a single click (or as less clicks as possible) is that
possible?
Not really.
One consideration though, if i am not wrong, AsyncTasks need to be executed
from the UIThread.
Regarding your code, put the part in which the HTTP Request is sent and the
response is got in line in the doInBackground method of the AsyncTask
so that it runs on the background thread and does not
Logcat error trace might get you some help :)
On Wed, Feb 1, 2012 at 12:22 PM, ANKUR GOEL ankur1...@gmail.com wrote:
Hi all ,
sometimes i am getting video cannot be played err (100 , 0)
can some body tell the exact reason and the solution for this problem
thanks
--
You received this
For the reinstall check, we've used a shared preference. If
prefexists, dont check, if pref missing then check the market.
Another kludge would be to use the sqlite db version
Just my 2 cents
On Feb 1, 2:03 am, Zsolt Vasvari zvasv...@gmail.com wrote:
Which kind of defeats the purpose of
try adding 'padding' to grid cells
2012/1/31 John Davis davi...@gmail.com
Hello
I am still having a problem with gridview and spacing. Would love to talk
to someone regarding the issue. I've considered chaning text orientation
for column headings or using two line text.
Here is more
When user logs into Android Market to see the list of apps installed,
Will he see my Lite App is installed which was the original install or
will he see that in addition to the Lite app that he has also
purchased a license for advanced functions which is not the same as
the Paid App.
On Jan 31,
Between your phone and the phone whose location you want to track, how do
you communicate?
You could have that phone update his location (via a location service) to a
web server, and you can pull that location every few seconds to show it on
your phone
On Tue, Jan 31, 2012 at 1:54 PM, Omollo
Hello,
I have finished with my game app for android. I want to upload it on
Android market as paid app. I am having my android market account.
When user installs my game, he must have to do registration for the
app and for that serial number is must. Is there any way in android
market for
Is there any application available in Android Market that used USB/MTP
Api's? Can any one give information that will be useful for me in
making android MTP Application?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
Get each child of your tab widget, and see if there is anything you can do
to remove it
for(int i=0; itabWidget.getChildCount(); i++){
tabWidget.getChildAt(i).(ANYTHING YOU WANNA DO)
}
On Tue, Jan 31, 2012 at 11:08 AM, Ratheesh Valamchuzhy android...@gmail.com
wrote:
youtube it for video guides
On Mon, Jan 30, 2012 at 9:41 PM, Mark Murphy mmur...@commonsware.comwrote:
On Mon, Jan 30, 2012 at 12:58 AM, dany varghese gagip...@gmail.com
wrote:
how we can create a new application in android?
please suggest required softwares for this purpose?
On Wed, Feb 1, 2012 at 1:19 AM, Mansoor musafir4frie...@gmail.com wrote:
My group item layout/UI changes in expand and collapse state .
How to get latest bitmap of corresponding group ?
Your adapter for the ExpandableListView tells it what views to use. So tell
it to use one view when
On Wed, Feb 1, 2012 at 7:07 AM, gauri gauri.v...@gmail.com wrote:
When user installs my game, he must have to do registration for the app
and for that serial number is must.
Um ... why? Do you not like to sell software?
Is there any way in android market for sending/providing
On 02/01/2012 05:02 PM, beachboy wrote:
When user logs into Android Market to see the list of apps installed,
Will he see my Lite App is installed which was the original install or
Assuming you mean when he opens the Market app on the device - Yes.
will he see that in addition to the Lite
On 02/01/2012 05:40 PM, TreKing wrote:
Google Checkout has an email address you can use that forwards to the
user.
No forwarding anymore - my order list has had direct user emails for a
while now.
This is a good thing, because the forwarding service used to to mess up
international
On Wed, Feb 1, 2012 at 7:54 AM, Kostya Vasilyev kmans...@gmail.com wrote:
No forwarding anymore - my order list has had direct user emails for a
while now.
Oh, nice - haven't checked in a while. Dev console lets you filter ratings
and comments now too. Good stuff.
Hello,
Can any of you guide me to some documentation for the Android/Google TV
YouTube player parameters?
I'm working in Java and bringing up the YouTube player on Android Devices
including Google TV.
Specifically I'm looking for playlist parameters but would welcome any type
of documentation.
On Wed, Feb 1, 2012 at 9:06 AM, Kevin Courtney kevinjcourt...@gmail.com wrote:
Can any of you guide me to some documentation for the Android/Google TV
YouTube player parameters?
I doubt there is any official documentation. Bear in mind that the
YouTube player is a proprietary application, not
On Wed, Feb 1, 2012 at 6:44 AM, Mark Murphy mmur...@commonsware.com wrote:
but
still that is not so convenient, so I am looking if there is a way to
check all wanted apps and then enqueue them in order to download one
after the other (user accepting terms may also exist if you cannot
This open source project supports a general purpose multi-threading
service:
http://coopsoft.com/ar/AndroidArticle.html
Ed
On Jan 31, 10:21 am, TreKing treking...@gmail.com wrote:
On Tue, Jan 31, 2012 at 9:10 AM, ColletJb collet...@gmail.com wrote:
How could I handle the progress updates with
On Wed, Feb 1, 2012 at 1:38 AM, Anuj Goyal anuj.go...@gmail.com wrote:
I have yet to see a webpage that nicely details the performance
implications of using an Alarm vs. a Service.
These are two mutually exclusive APIs that are frequently, but not
necessarily, used in conjunction.
Alarm =
How do I get the Selector highlighting functionality in an
AdapterView?
I cannot do:
android:listSelector=@drawable/myadapterview_background
like in a gridview, because android:listSelector is not there.
--
You received this message because you are subscribed to the Google
Groups Android
On Wed, Feb 1, 2012 at 9:18 AM, TreKing treking...@gmail.com wrote:
On Wed, Feb 1, 2012 at 6:44 AM, Mark Murphy mmur...@commonsware.com wrote:
but
still that is not so convenient, so I am looking if there is a way to
check all wanted apps and then enqueue them in order to download one
On 2/1/2012 4:11 AM, atcal wrote:
I'm trying to define my own View subclass.
public class myView extends View {
myView(Context context) {
View(context);
}
}
Eclipse flags the first line of my constructor with an error Implicit
super conctructor View() is undefined. Must
I need to run some javascript in an android web view. I understand
this works fine by loading a javascript: url. It seems that when I do
that though the selected text in the web view is cleared. The
javascript I'm running gets the range of the selected text, so I need
it to remain selected. I
just to throw in my 2 cents: DynamoDB is not restful. it's RPC.
On Jan 29, 2012 9:25 PM, Kristopher Micinski krismicin...@gmail.com
wrote:
On Sun, Jan 29, 2012 at 10:45 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
On Mon, Jan 30, 2012 at 11:46 AM, Kristopher Micinski
On Wed, Feb 1, 2012 at 4:55 AM, kampy narasimha1...@gmail.com wrote:
can we over ride the default android menu
No.
i.e., can we add our specific other items to the menu provided by them
No.
-
On Feb 1, 4:25 pm, Ted Scott t...@hootinholler.com wrote:
On 2/1/2012 4:11 AM, atcal wrote:
I'm trying to define my own View subclass.
public class myView extends View {
myView(Context context) {
View(context);
}
}
Eclipse flags the first line of my
On Wed, Feb 1, 2012 at 4:08 AM, Ganesh ganesh.som...@gmail.com wrote:
can anyone please provide me with some guidance
www.google.com + make android chat app
-
TreKing
On Wed, Feb 1, 2012 at 4:08 AM, surabhi jain surabhi17.j...@gmail.comwrote:
I want to run UI thread with widget without using activity class.
OK. And ... ?
http://www.catb.org/~esr/faqs/smart-questions.html
Plz help me.
Plz spell please correctly.
Hi Mark,
Thanks for the quick reply although that doesn't sound very
encouraging :-(
I've posted the same question to the YouTube grouphoping that
someone out there might have some clues for me.
Kevin
On Feb 1, 6:15 am, Mark Murphy mmur...@commonsware.com wrote:
On Wed, Feb 1, 2012 at
Hello
I am writing an application which uses a sqlite database. Previously I was
using a rooted phone to debug/develop this app. My app does not have any
special permissions, sdcard, etc.
One thing I was doing when using a rooted phone was debugging the database
queries via adb shell. I would
I am posting this to determine if this is a bug I should file or my own
operator error. Any input would be appreciated.
I was attempting to use a theme to change the background of all buttons in
my application.
Instead of using a
On Wed, Feb 1, 2012 at 10:47 AM, Todd Grigsby tgrigsby...@gmail.com wrote:
just to throw in my 2 cents: DynamoDB is not restful. it's RPC.
Yup! But you can think of RPC and rest doing something similarly
semantically. This isn't to say they're in any way technologically
similar, there are
On 02/01/2012 08:36 PM, John Davis wrote:
Any suggestions on how to work on the database on a non-rooted phone?
I would prefer to use the database on the phone rather than on a pc.
You can add code in the app to copy the database from the app's storage
directory in internal memory to the
Hello Kostya Vasiyev,
Many thanks. I see what you mean. I could add an import/export command to
the app. And in the final release, simply remove the import/export
capability.
John
On Wed, Feb 1, 2012 at 11:43 AM, Kostya Vasilyev kmans...@gmail.com wrote:
On 02/01/2012 08:36 PM, John Davis
Thank you both for the clarification and that read on sms is
interesting .
On Feb 1, 12:07 am, Kristopher Micinski krismicin...@gmail.com
wrote:
Question: How do i handle the exchange between the two devices.
Am i going to need a server to accomplish this?
The basic answer is: yes. You
2012/2/1 John Davis davi...@gmail.com:
Many thanks. I see what you mean. I could add an import/export command to
the app. And in the final release, simply remove the import/export
capability.
Or, name it backup/restore and leave it in as a feature.
--
Mark Murphy (a Commons Guy)
On Sun, Jan 29, 2012 at 3:25 AM, arun kumar arun.kata...@gmail.com wrote:
Hi
in the first activity am givning the uname and pass values in the
intent...and get that data in the
second activity
String login = getIntent().getStringExtra(
Username); and this data login value i have to
I would really appreciate it if someone could help me with the below
problem
On Jan 27, 10:01 am, avi avinanku...@gmail.com wrote:
All,
I am trying to develop an UI based automation system and I was
exploring AccessibilityEvent option in Monkey. Following are the steps
that I did
(i)
On 2/1/2012 11:01 AM, atcal wrote:
On Feb 1, 4:25 pm, Ted Scottt...@hootinholler.com wrote:
On 2/1/2012 4:11 AM, atcal wrote:
I'm trying to define my own View subclass.
public class myView extends View {
myView(Context context) {
View(context);
}
}
Eclipse flags the
I am looking at design alternatives for an app that needs to persist
data locally to a sqlite DB, and synchronize its contents with a
server in the cloud. I have the pdf, and have watched the excellent
presentation from IO 2010. All of the recommended patterns use
ContentProviders. The only client
I don't see any interface of passing the keys to open secure element in the
android code. I am not sure how many people claims that you need google
Keys to open SecureElement. May be I am missing something.
--
You received this message because you are subscribed to the Google
Groups Android
On Dec 20 2011, 1:13 pm, Lysandus imbroke...@gmail.com wrote:
I have a couple questions aboutVpnService.
Is theVpnServiceadded in 4.0 only for creating a vpn connection for
your app, or does it make the vpn for all traffic on the device? If
it's all device traffic does that mean your app
Can I create multiple .apk's that install ADDITIVELY to the same /data/
apps/MyApp location?
In my particular case I have add-on modules that are built as C++ NDK
share objects: Feature1.so, Feature2.so, Feature3.so, etc. I don't
know what these will be ahead of time and the user must be able
Different APK's will have different package names and be installed in
different directories, so in short, the answer is no.
-John Coryat
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi!
I'am writing an online radio streamer application. It's working very
well (activity-bind service-notificiation bar, ...etc), but
sometimes when I go back to the UI (ex.: click to the application icon
from the menu, when the service and the activity are already running -
onResume) it's start
Bump
On Jan 20, 1:40 pm, Nick nick.vers...@gmail.com wrote:
I have searched around and I found good examples on adding custom
boolean states to a drawable but I am having issues adding a state
that is a list of enums. I am sure most of my problems lie within the
onCreateDrawableState call so
Is the app originally launched from Eclipse?
If so, beware that Eclipse uses a different intent than would normally
be used by the Launcher(s), so you may get duplicates like this.
To get a good test, either don't launch from Eclipse, or first press
Back to close the initial activity, start
Thanks, John.
That's unfortunate.
How about downloading FeatureX.so to the Downloads directory,
calling dlopen(featurex.so), then calling the additional library
functions?
Thx,
BT
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
Does anyone know a way to partition the screen so that a given area
(fragment?) of the screen is developed in a separate APK? In other
words, can you have multiple APKs driving different parts of the same
screen at the same time?
--
You received this message because you are subscribed to the
Currently I am using long clicks and an alert dialog to allow users to
select actions that can be performed on an item in a list view.
I would like to replace this with an action button as this seems to be
suggested practice going forward.
Does the sdk provide a drawable for this type of button?
You're pretty much stuck sending a complete APK and dealing with additional
features using switches inside the app itself.
There may be other ways to handle this but I am unaware of them.
-John Coryat
--
You received this message because you are subscribed to the Google
Groups Android
On Wed, Feb 1, 2012 at 5:20 PM, awtDroid andyturne...@gmail.com wrote:
can you have multiple APKs driving different parts of the same screen at
the same time?
No.
-
TreKing
Doing this probably means that your app is designed incorrectly, and
should be only one apk.
kris
On Wed, Feb 1, 2012 at 6:20 PM, awtDroid andyturne...@gmail.com wrote:
Does anyone know a way to partition the screen so that a given area
(fragment?) of the screen is developed in a separate APK?
On Wed, Feb 1, 2012 at 6:20 PM, awtDroid andyturne...@gmail.com wrote:
Does anyone know a way to partition the screen so that a given area
(fragment?) of the screen is developed in a separate APK? In other
words, can you have multiple APKs driving different parts of the same
screen at the
On Wed, Feb 1, 2012 at 6:16 PM, BT bunglestwan...@gmail.com wrote:
How about downloading FeatureX.so to the Downloads directory,
calling dlopen(featurex.so), then calling the additional library
functions?
That would be a question for the android-ndk Google Group.
AFAIK, though, this is not
This is a large OEM app running on a custom tablet-like display, so
it's not going on the market and has nothing to do with a cellphone.
Our current system uses a single exe and multiple dll's which all
create widgets from a shared widget library. So currently we can make
a change to only one of
On Wed, Feb 1, 2012 at 7:22 PM, awtDroid andyturne...@gmail.com wrote:
This is a large OEM app running on a custom tablet-like display, so
it's not going on the market and has nothing to do with a cellphone.
You said that already... I'm implying that the fact it's going on
your custom device
I want to have a background image of a game board in one of my activities,
and I am not sure how to implement it. I have been reading about Drawables
and 9patch, and I am confused about the basics.
1. I can draw the image I want in GIMP, but what size do I make it?
Actually, what sizes, as I
I found out the problem. sConnectionId variable has to be initialized
to -1 instead of 0
On Feb 1, 9:43 am, avi avinanku...@gmail.com wrote:
I would really appreciate it if someone could help me with the below
problem
On Jan 27, 10:01 am, avi avinanku...@gmail.com wrote:
All,
I am
Good point about security, but this isn't a general consumer
application. The additional libraries can only be downloaded from our
internal servers and only over our internal wi-fi, plus they're hashed
verified with our internal security server prior to execution.
We have to run on iOS too,
On Wed, Feb 1, 2012 at 7:35 PM, BT bunglestwan...@gmail.com wrote:
Good point about security, but this isn't a general consumer
application. The additional libraries can only be downloaded from our
internal servers and only over our internal wi-fi, plus they're hashed
verified with our
I made ActivityGroup which combined two activities one activity for
TOP tab and second one for BOTTOM tab and it works fine BUT when I
click in any activity on tab both tabs (top and bottom) still there
however this activity don't have them.
My question now how I finish this ActivityGroup how I
On Wed, Feb 1, 2012 at 7:22 PM, awtDroid andyturne...@gmail.com wrote:
This is a large OEM app running on a custom tablet-like display, so
it's not going on the market and has nothing to do with a cellphone.
That does not change the way Android works.
Our current system uses a single exe and
Hi,
You are right, the Eclipse launch is really makeing some mess:
I have two condition:
1. Launch with eclipse: It does't start a new activity if I make
visible the application again with the notification, but start a
'second' activity if I try it with the launcher icon.
2. Normal launch:
Actually the Widget uses a RemoteView and you service that view in an
AppWidgetProvider which must register one or more BroadcastReceivers
to handle calls from the AppWidgetManager for updated views or your
own events (through Intents).
The Activity is only used for the optional configuration
I would suggest using AlarmManager for your repeating 15s update.
Handle the Intent in a private BroadcastReceiver inside your
AppWidgetProvider. Forget the Service as the scheduling mechanism but
use it for the download of the next image from within your
BroadcastReceiver. In BroadcastReceiver
I was doing some memory profiling recently for another issue, and I found
that, on my phone running ICS,
as soon as I launch the app the memory is already at about 7 MB, when it
was usually about 4 MB in others.
I looked at the HPROF file and it seems like the app is keeping a bunch
(all?) of
Hi,
I am trying to programmatically select all the text in an EditText field
when a user touches the field so that when the user starts typing it
replaces the existing text (I cannot use settings in the XML file because
this field is programmatically added to the screen). To do this, I
you need to store the the message in sqlite db ?
use the content resolver to get the message details and we can store it on
a text file or a separate database
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
Use bundle object.
save username and password in bundle object and then pass to intent .
*More info*,
http://androidbasic-answer.blogspot.com/
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi members,
I m developing one application to send SMS,here
i used sendSMS() function and SmsManager class and it is working fine
for sending messages between two emulators.I need to send msgs to real
phones for that i have to mention some SMS gateway.So in SmsManager
class
Keys are used in raw communication through APDUs
On Wed, Feb 1, 2012 at 7:46 PM, malls masubha...@gmail.com wrote:
I don't see any interface of passing the keys to open secure element in
the android code. I am not sure how many people claims that you need google
Keys to open SecureElement.
thanks for the reply...its solved
On Thu, Feb 2, 2012 at 11:22 AM, unicus unicus unicus...@gmail.com wrote:
Use bundle object.
save username and password in bundle object and then pass to intent .
*More info*,
http://androidbasic-answer.blogspot.com/
--
You received this message because
- *xlarge* screens are at least 960dp x 720dp
- *large* screens are at least 640dp x 480dp
- *normal* screens are at least 470dp x 320dp
- *small* screens are at least 426dp x 320dp
http://developer.android.com/guide/practices/screens_support.html
I think this will help you..
On
android how to visit those files on pc server by wifi?
--
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
Hi friends,
I have Main Activity. That has 5 tabs(TabHost). I have overridden
onBackPressed in activity groups, as well As All 5 activities. This button
show user a dialog box and for confirmation of Exit When app start. It show
1st tab. Then if I press back it work fine for 4 tabs. But if I go
Hi friends,,
Under tabs when onBackPressed i am showing a dialog box, but its throwing
the below exception
ERROR/WindowManager(979): Activity com.amplyfyme.android.HomeScreen has
leaked window
com.android.internal.policy.impl.PhoneWindow$DecorView@40678fb0 that was
originally added here
have tried as you told to change Try getting the location through a
location update. (Use
requestLocationUpdate() or requestSingleUpdate() instead.)
but it is also not working for meproviding the code for your
review..
Code:
gps12.java
package d.gps12;
import
Some uses the forwarding, some doesn't. A very recent order of mine
(last couple hours) does.
On Feb 1, 9:54 pm, Kostya Vasilyev kmans...@gmail.com wrote:
On 02/01/2012 05:40 PM, TreKing wrote:
Google Checkout has an email address you can use that forwards to the
user.
No forwarding
I'll look at this tomorrow unless somebody else does first...
By the way, this would be a really good time for you to go read up on
how to use the Eclipse debugger. This would allow you to put a
breakpoint on your onLocatoonChanged and see if it ever executes.
Additionally, if you don't get any
98 matches
Mail list logo