Hello.
Iam using shared preferences to store some values.
final SharedPreferences pref = getSharedPreferences(MyPref,
MODE_PRIVATE);
final SharedPreferences.Editor edit = pref.edit();
edit.putInt(Int_value, 1);
edit.putString(String_Value, test string);
edit.commit();
i look in the xml file
Depends on the screen size of the device if you want to go all the way
and provide resources for each possible screen.
Otherwise you can rely on Android to scale your resources to different
screens.
In any case, the you can find full details on the developer website
and download an icon pack
Most probably your Int_Value doesn't exist. In this case the number you
specified, 200, will be assigned instead.
Thanks
On Sat, Aug 13, 2011 at 12:52 PM, Kristoffer kris.isak.v...@gmail.comwrote:
Hello.
Iam using shared preferences to store some values.
final SharedPreferences pref =
Hello,
I have a query related to DRM and Android framework.
Can we play encrypted DRM content in Android devices?
Any support is provided by Android framework to play the DRM content?
If any one already worked on this part, please share the knowledge. Because
I couldn't get enough information
Hi All,
I am trying to install skype on a non-mobile arm platform. It is not
getting installed.
Will skype gets installed only on mobiles? Is there any workaround for
that?
+ ppcs
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
Ask Skype support, not a developer list.
On Sat, Aug 13, 2011 at 1:02 PM, PPCS mailtored...@gmail.com wrote:
Hi All,
I am trying to install skype on a non-mobile arm platform. It is not
getting installed.
Will skype gets installed only on mobiles? Is there any workaround for
that?
+
Here is MyPref.xml
?xml version='1.0' encoding='utf-8' standalone='yes' ?
map
int name=Int_value value=1 /
string name=String_Valuetest string/string
boolean name=Boolean_Value value=true /
long name=Long_Value value=1234567890 /
float name=Float_value value=12.5 /
/map
On 13 Aug, 09:26,
In your xml file it is Int_value. You are trying to retrieve Int_Value.
Java is case sensitive.
Thanks
On Sat, Aug 13, 2011 at 1:14 PM, Kristoffer kris.isak.v...@gmail.comwrote:
Here is MyPref.xml
?xml version='1.0' encoding='utf-8' standalone='yes' ?
map
int name=Int_value value=1 /
On Aug 13, 9:22 am, Kristoffer kris.isak.v...@gmail.com wrote:
Hello.
Iam using shared preferences to store some values.
final SharedPreferences pref = getSharedPreferences(MyPref,
MODE_PRIVATE);
final SharedPreferences.Editor edit = pref.edit();
edit.putInt(Int_value, 1);
Thanks both for pointing it out to me,
oh man iam sorry, that was a big misstake, i have looked over the code
several hours and i dident see the problem,
thanks for the help.
On 13 Aug, 10:04, skink psk...@gmail.com wrote:
On Aug 13, 9:22 am, Kristoffer kris.isak.v...@gmail.com wrote:
Also, on Android 3.1+, your app will receive no broadcasts until the
user has manually launched you at least once:
http://commonsware.com/blog/2011/07/13/boot-completed-regression-confirmed.html
On Sat, Aug 13, 2011 at 12:11 AM, Carter ccjerni...@gmail.com wrote:
I bet a number of instances are
On Fri, Aug 12, 2011 at 10:56 PM, William Ferguson
william.ferguson...@gmail.com wrote:
It sure would be nice to be able to specify your own penalties when
configuring StrictMode.
For example, the ability to post to ACRA/(insert favourite remote
exception handler) would really help with
Strange. Here's a direct link.
https://market.android.com/details?id=se.anyro.nfc_reader
On 12 Aug, 18:13, musfiq musfiqu...@gmail.com wrote:
Normal tag sharing works. But foregroundNDEFPush not working?
Nothing in logcat. By the way, I could not find your apps searchin
ndef push in the
Hey what are you guys talking about? I don't understand.. :(:(:(
On Aug 13, 12:38 am, Robert Thau rst...@gmail.com wrote:
On Fri, Aug 12, 2011 at 11:17 AM, ndiiie90 rnd...@gmail.com wrote:
Hi again Mark,
I must close the entire app, because my app is a commerce application,
that has
Use AsyncTask.
http://developer.android.com/reference/android/os/AsyncTask.html
On 12 Aug, 06:21, gml gml.check.t...@gmail.com wrote:
Hi guys,
I have simple application that loading the data needed upon the
Activity starts which it consume about 2-3 minutes. Then, the UI
displayed after that
Hi
I have a TextView.
TextView navi_org_name;
navi_org_name = (TextView) findViewById(R.id.pio_navi_org_name);
navi_org_name.setText(orgname+);
red line crashes my program.Logcat shows nothing.just crushes.
why?
Regards
RiskyCoder
--
You received this message because you are subscribed to
Hi
I have a TextView.
TextView navi_org_name;
navi_org_name = (TextView) findViewById(R.id.pio_navi_
org_name);
navi_org_name.setText(orgname+);
red line crashes my program.Logcat shows nothing.just crushes.
why?
Regards
RiskyCoder
--
You received this message because you are subscribed
On Sat, Aug 13, 2011 at 7:58 AM, Goutom goutom.sust@gmail.com wrote:
I have a TextView.
TextView navi_org_name;
navi_org_name = (TextView) findViewById(R.id.pio_navi_org_name);
navi_org_name.setText(orgname+);
red line crashes my program.Logcat shows nothing.just crushes.
Check
Sort of... Sometimes, after using Eclipse for awhile, LogCat seems to hang and
will display nothing until you restart eclipse. I don't know why it does this
but it does.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
You are missing a layout_width in the second LinearLayout node
--
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
what is 'orgname'? Is it a string?
--
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
Also this is the second post (i've seen) where you say LogCat shows
nothing... if that is truly the case then you need to fix that!
--
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 have a Activity that uses an array adapter to show 4 lists each under a
tab (as in the code below). Each item in the list is a CheckedTextView as in
the layout file at the bottom. How do i set individual items checked in
one of those lists?
Thanks in advance.
public class TagPicker
Hello,
I'm creating a Camera application, and I'm trying to save pictures
with the right orientation depending on how the user holds the phone,
however I'm running into several issues. I've read all the posts
related to this, both here and in stack overflow, and I could not find
an answer to this
Hi All,
I am a newbie and I am trying to connect a device to the host
(ubuntu). I am not able to connect to the android device:
On the android device I ran netstat -n and I see someone listening on
port 5037.
But, when I try to connect from host using adb after I have done adb
start-server, I
Hi I'm trying to call the camera from my application
currently I'm using
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
and
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
However when I compare this to the Camera Application from the
Xoom/Android home screen
You should connect your Android and Ubuntu to one network.
such as 192.168.1.100 for Android, 192.168.101 for Ubuntu.
Then follow these steps:
1. connect your Android devices to Ubuntu with a USB cable
2. make sure your Android is shown with command adb devices
3. type command adb tcpip ,
4.
Hi Young,
Thank you very much for the response!
But, the problem is that I am not seeing the android-device even after
connecting the usb device and configuring the udev rules. I am getting
the following errors in dmesg.
[ 1339.890077] usb 4-1: new full speed USB device using uhci_hcd and
Hi,
I'm implementing bluetooth support for my application. When i try to
connect to the device, Android shows me the dialog that asks for the
pin.
Now i have two questions:
1. How to detect that the dialog was closed? The user could press
cancel, and i need to detect this
2. How to detect that
I know how to read the html code of a website, for example, the next
java code reads all the html code from
http://www.transfermarkt.co.uk/en/fc-barcelona/startseite/verein_131.html
this is a website that shows all the football players of F.C.
Barcelona.
import java.io.BufferedReader;
Guys, I am still trying to get logs using logcat by connecting my
device to my laptop. But, suddenly i started running into another
issue. My device stopped connecting to my laptop. It was connecting
fine before but now i am getting two type of errors;
either a- Device driver was not successfuly
i callled goBack() with sucess from a button:
mButton_thisSpinValue.setOnLongClickListener(new
View.OnLongClickListener() {
public boolean onLongClick(View v) {
Toast.makeText(HDART10Activity.this, GO BACK
...,
Toast.LENGTH_SHORT).show();
I can't speak for Samsung but I have had that issue with the Motorola drivers
on Win7. It sometimes says that I should use USB 2.0 as well. (which I am)
To correct it I simply unplug it and plug it back it and it will usually take
the first or second time.
Hope that helps
--
You received
First you need to use a better club... like Real Madrid! haha j/k
Seriously though you should probably head over to somewhere like StackOverflow
and use the Java tag to ask your question as it is more of a generic Java
question.
--
You received this message because you are subscribed to the
On Fri, Aug 12, 2011 at 1:56 PM, Michael S michael.shpilkov...@gmail.comwrote:
The problem is that It throws me away every time.
What does that mean?
-
TreKing
On Sat, Aug 13, 2011 at 11:22 AM, hectordu...@yahoo.com
hectordu...@yahoo.com wrote:
i am trying to also do it form onPause(), onStop() , onDestroy . :-
Well there's your problem.
I don't know what will actually happen with you doing this, but that seems
wrong. Those methods are already
On Sat, Aug 13, 2011 at 11:14 AM, Pableras elpablosa...@gmail.com wrote:
How i can do it??? i can't find the code example that can do it on google.
Try Java HTML Parser. That's what I did when I needed this and I found an
assload of options.
Sounds like a malfunctioning USB cable or hub...
13.08.2011 20:47, rich friedel пишет:
I can't speak for Samsung but I have had that issue with the Motorola drivers
on Win7. It sometimes says that I should use USB 2.0 as well. (which I am)
To correct it I simply unplug it and plug it back it
Yeah I am starting to think it's the port on the mobo... :-/
--
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
In my program I need to know the location of the devices status bar.
Normally I would expect it to be at the top but on my 3.0 emulator it's at
the bottom. Can I assume that it will always be at the bottom for 3.0+ and
at the top for others or is there a way to get this programmatically?
In honeycomb the status bar is always at the bottom and AFAIK can not be
hidden. On 1.X to 2.X it can be hidden by setting your app to fullscreen.
On Sat, Aug 13, 2011 at 10:49 PM, John j...@julientech.com wrote:
In my program I need to know the location of the devices status bar.
Normally I
It is not nearly so simple.
Honeycomb has a new UI element, a system bar, intended for tablet type
devices which replaces the status bar. There is nothing that says a
particular device will use this or a status bar, however, and certainly post
honeycomb on phone devices you can expect to
On Fri, Aug 12, 2011 at 1:32 PM, TheWanz jameswans...@gmail.com wrote:
1. How do I keep my global class from being destroyed when the onPause is
called? Every time I rotate the phone or enter the preferences activity,
the object is trashed.
Without knowing what you mean by global or what
I've used the finish() option - with multiple activities, it's a
great way to go.
As such:
Intent newActivity = new Intent();
// set stuff for Intent
startActivity(newActivity);
finish();
When you hit back, the activity is finished, so it goes to whatever
previous activity was not finished.
A customer reports (and I verified) that when the internet connectivity is
provided by an ATT iPhone hotspot, the license validation fails (not
licensed).
The same device through a residential DSL hotspot has not problems.
Any idea what's going on?
Workarounds?
--
You received this message
Really need help on this. So *Bump*.
On Thu, Jul 28, 2011 at 7:43 PM, Suresh Indian sureshisind...@gmail.comwrote:
hiii sir
can u pls tell me how to connect the android device to blue tooth
printer??? pls send the code
Together For ever
(¨`·.·´¨)
Hi All
In my xml layout TextView overlaps ImageView.I need to prevent it.
-
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
On Sat, Aug 13, 2011 at 04:58:46AM -0700, Goutom wrote:
I have a TextView.
TextView navi_org_name;
navi_org_name = (TextView) findViewById(R.id.pio_navi_org_name);
navi_org_name.setText(orgname+);
red line crashes my program.Logcat shows nothing.just crushes.
Just a couple of quick
It looks like i will have to buy another android phone... any
suggestion which one is good low cost phone for android development?
Obviously other than Samsung Captivate :)) How about HTC Aria
On Aug 13, 1:19 pm, rich friedel rich.frie...@gmail.com wrote:
Yeah I am starting to think it's
Hello,
I have a GridView that launches activities when we tap on a button/
image of it.
However, i'm facing an annoying display problem for it. I have an SGS
and a Galaxy 5 to test the app, if i configure the XML to correctly
display the GridView with the SGS(vertical/horizental spacing), then
Hi Friends,
I start calculator from my activity and override onActivityResult method,
however I cannot handle result from calculator.
Is it possible?
Here is my code.
public static final String CALCULATOR_PACKAGE =
com.android.calculator2;
public static final String
On Sat, Aug 13, 2011 at 5:16 PM, Kubilay D. Yılmaz
kubilayd.yil...@gmail.com wrote:
I start calculator from my activity and override onActivityResult method,
however I cannot handle result from calculator.
Is it possible?
Highly doubtful. Not only are you hard-coding a class and package
Hi Treking,
Activity starts standard calculator of android.
On 14 August 2011 01:29, TreKing treking...@gmail.com wrote:
On Sat, Aug 13, 2011 at 5:16 PM, Kubilay D. Yılmaz
kubilayd.yil...@gmail.com wrote:
I start calculator from my activity and override onActivityResult method,
however I
On Sat, Aug 13, 2011 at 5:31 PM, Kubilay D. Yılmaz
kubilayd.yil...@gmail.com wrote:
Activity starts standard calculator of android.
I'm aware of that. Are you aware that manufacturers can change or remove
that calculator such that your code, as written, will fail miserably?
On Fri, Aug 12, 2011 at 11:53 AM, mahdi mahdi.farz...@gmail.com wrote:
how can i do this ?
If you need help with the chm file, Google it, since it has nothing to do
with Android.
If you need help with showing it in a TextView, you need to ask a better
question then how do I show it?.
So, since GA is still working, basically this means the market app
will only send the intent to a proper GA receiver? That is pretty
painful as I don't see a way to get the referrer for this particular
device, only go to GA to get the referrers in aggregate? Can you poke
into the SQLLite DB to
Hi All
I am fetching address(city, country, street, phone, email,website,
organization, etc). When I fetch all these values it takes long lime to be
fetched.I need to make it fast. Here is my one fething below.Please
help to make the query fast.
Here id is the contact id.
public void
Thank you very much for the reply
On Aug 13, 12:39 pm, Dianne Hackborn hack...@android.com wrote:
It is not nearly so simple.
Honeycomb has a new UI element, a system bar, intended for tablet type
devices which replaces the status bar. There is nothing that says a
particular device will use
It might help to read (and memorize) the activity life-cycle (here:
http://developer.android.com/reference/android/app/Activity.html)
A phone rotation destroys the current activity unless you override
onConfigurationChanged. Don't just override it though - make sure
you know what to include, what
Have you raised an issue for it?
http://code.google.com/p/android/issues/list
On Aug 14, 8:50 am, Mark mcor...@gmail.com wrote:
So, since GA is still working, basically this means the market app
will only send the intent to a proper GA receiver? That is pretty
painful as I don't see a way
I have a program where the background has a video in it, when i click
on an icon it open a new intent, but when i hit the back button to
close the intent the video does not resume playing. Is there a
listener to set up to see when the intent closes, where it can then
restart the videoview?
Thanks
Your post is not very clear, what would you like to do? Change the programs
icon?
--
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
If you use FrameLayout instead of LinearLayout or RelativeLayout
you can use [android:layout_x=xx:px][android:layout_y=xx:px] to move
your stuff around, you will also be able to layer things based on the order
in the XML.
--
You received this message because you are subscribed to the Google
I blogged about this http://bit.ly/qfo5Ab topic a few days ago, and then
saw this thread. I recently released a new project that I've been dinking
around with for a few months while learning something about gaming, and was
surprised to see how much marketing an app has changed since the last
thank you guys,
finally it works by overriding the back button, calling goBack() and
also calling finish().
@Override
public void onBackPressed() {
goBack();
//return;
}//onBackPressed
hector
On Aug 13, 12:00 pm, TreKing
Sorry if this is obvious, but I can't tell from the documentation what the
various Canvas.clipWhatever methods do. I'm looking for a method that will
allow me to select a certain area, hopefully somewhat like Photoshop, and
I'm wondering if this is what I've been looking for.
--
You received
Hi,
What do you mean by select a certain area? What are you trying to
accomplish? Setting the clip on a Canvas lets you restrict drawing to a
particular area. For instance, if the clip rectangle is 100,100,200,200, a
point drawn at 300,300 (outside of the clip) will not appear on screen.
On Sat,
What I mean is I want a tool that can define a certain area, so that all
drawing is restricted to that area. It sounds like this is what I need.
On Sat, Aug 13, 2011 at 8:29 PM, Romain Guy romain...@android.com wrote:
Hi,
What do you mean by select a certain area? What are you trying to
It's exactly what you need. Note that with software rendering you can create
clipping regions (i.e. non-rectangular clipping areas) but with the hardware
accelerated 2D pipeline in 3.0 you are restricted to rectangles.
On Sat, Aug 13, 2011 at 8:40 PM, Mark Ayers markthe...@gmail.com wrote:
What
On Sat, Aug 13, 2011 at 8:07 PM, Matt Clark mrclark32...@gmail.com wrote:
I have a program where the background has a video in it, when i click on an
icon it open a new intent, but when i hit the back button to close the
intent the video does not resume playing. Is there a listener to set up
Hi,
I get that changing Animation on Display Settings, change below value:
float TransitionAnimationScale = System.getFloat(cResolver,
System.TRANSITION_ANIMATION_SCALE);
float WindowAnimationScale = System.getFloat(cResolver,
System.WINDOW_ANIMATION_SCALE);
but when i set them using
while running the app am getting the error..so how can i solve this
Emulator] invalid command-line parameter: plugins.
Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
- Emulator] please use -help for more information
Thankyou
arun
--
You received this message because
The advice to read and memorize the online docs on lifecycle is good.
But memorization will be somewhat elusive. While you are waiting for
that elusive satori to bloom, remember one point: there is never a
good reason to do TCP/IP in the main thread, which in Android, is also
the UI thread. (or
And a warhead, I presume?
On Aug 12, 10:38 am, Mark Murphy mmur...@commonsware.com wrote:
On Fri, Aug 12, 2011 at 1:18 PM, Kevin TeslaCoil Software
ke...@teslacoilsw.com wrote:
So, if this were a Web app, you would attempt to reboot the user's PC
to prevent them from pressing the BACK
Try using
android:stretchMode=spacingWidthUniform
On Aug 13, 2:04 pm, Alaeddine Ghribi alaeddineghr...@gmail.com
wrote:
Hello,
I have a GridView that launches activities when we tap on a button/
image of it.
However, i'm facing an annoying display problem for it. I have an SGS
and a Galaxy
Thats becoz you have put the ImageView and Textviews in
RelativeLayout.
Put them in linearLayout or use android:alignparentbottom=true for
ImageView.
On Aug 13, 1:00 pm, Goutom goutom.sust@gmail.com wrote:
Hi All
In my xml layout TextView overlaps ImageView.I need to prevent it.
Go back to whomever stated this awful requirement and explain: 1) why
it is a bad idea in the first place and 2) why it is an even much
worse idea in the Android environment, where the user's expectations
really are radically different from the desktop PC user's
expectations.
In particular, users
Test thoroughly before you say it works. I have to say this because
1) the solution you describe still has a bad feel to it and 2) you
TALK about calling finish(), but you don't show it in this latest
post. Are you calling it from goBack()? As the last thing it does?
On Aug 13, 8:21 pm,
78 matches
Mail list logo