[android-developers] GooglePlayStore

2012-07-04 Thread baturanija1
Hey,people
i made an app and i would like to place it on PlayStore.APP is free
and i search on internet where to place app, and it shows me an
informations that i have to pay 25 $ to place an appIs it true or
i did not understand that story?If its not please sent me a link
with location where could i put my free app..Thanks people for sharing
knowledge :)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] reduce size of a screen

2012-05-27 Thread baturanija1
Hej people,i am making an application wich screen has a good dimension
for my phone-HTC DESIRE .there are othes phones who has smaller or
bigger screen...so i am asking is there an option to makk app to
automaticly reduce a size of a screen for all size of telefon screen?
Thanks for reading :)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] back arrow

2012-05-21 Thread baturanija1
hey people,How can i define back arrow button ,to go back to the
previos item?thanks for sharing :-)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Set Ringtone

2012-05-17 Thread baturanija1
Hey people, i have problem.Code below is to set ringtone in my app.It
is copying song from app to SDC and call function to set
ringtone.There is no error in code and its coping good song but not
setting  ringtone :( .Please see if there is something wrong and
comment.. Thanks

// program
that call a function saveas

if (saveas(R.drawable.song)) {

String path = /sdcard/Ringtones/;
String filename = song + .mp3;
sendBroadcast(new 
Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
Uri.parse(file:// + path + 
filename)));

File ringPath = new File(path, filename);

ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA,
ringPath.getAbsolutePath());
values.put(MediaStore.MediaColumns.TITLE, 
exampletitle);
values.put(MediaStore.MediaColumns.MIME_TYPE, 
audio/mp3);
values.put(MediaStore.Audio.Media.DURATION, 
500);
values.put(MediaStore.Audio.Media.ARTIST, 
cssounds );
values.put(MediaStore.Audio.Media.IS_RINGTONE, 
true);

values.put(MediaStore.Audio.Media.IS_NOTIFICATION, false);
values.put(MediaStore.Audio.Media.IS_ALARM, 
false);
values.put(MediaStore.Audio.Media.IS_MUSIC, 
false);

Uri uri = 
MediaStore.Audio.Media.getContentUriForPath(ringPath
.getAbsolutePath());

Uri newUri = 
getApplicationContext().getContentResolver()
.insert(uri, values);

RingtoneManager.setActualDefaultRingtoneUri(
getApplicationContext(), 
RingtoneManager.TYPE_RINGTONE,
newUri);

String str = Rington postavljen..;

Toast.makeText(getBaseContext(), str, 
Toast.LENGTH_SHORT)
.show();
}

/// program
saveas- coping song from app to SDC

public boolean saveas(int ressound){
byte[] buffer=null;
InputStream fIn =
getBaseContext().getResources().openRawResource(ressound);
int size=0;
try {
 size = fIn.available();
 buffer = new byte[size];
 fIn.read(buffer);
 fIn.close();
} catch (IOException e) {

 return false;
}

String path=/sdcard/Ringtones/;
String filename=song+.mp3;

boolean exists = (new File(path)).exists();
if (!exists){

new File(path).mkdirs();

}

FileOutputStream save;
try {
 save = new FileOutputStream(path+filename);
 save.write(buffer);
 save.flush();
 save.close();

}
 catch (FileNotFoundException e) {

 return false;

}
catch (IOException e) {

 return false;
}

return true;
   }

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] MOUNT/UNMOUNT SDC

2012-05-15 Thread baturanija1
Hey people,any command to mount/unmount SDC .or link to help.. thanks
for sharing

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] refresh gallery

2012-05-11 Thread baturanija1
Hey,i am making app that has lo of picures...i am making button to
allowe user to save some picture on his/her SDK..action will create
folder with some name and put picture from activity on that
folder..problem is that when i put picture and folder,it is not
automaticly showen in picture album on android.But when i unmont,and
than mount SDK that album i shown..How to change that-to refresh
SDK,to show automaticly picturs without unmounting...thank for share

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] keyboard

2012-05-02 Thread baturanija1
hey people, i have a question.I would like to make my own
keyboard,with some new letters,so i do not know is it possible to
implemet into app.Any good links on that idea, any
experiencesthanks for sharing :)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] public variables

2012-04-30 Thread baturanija1
hey people, i am trying to make mute button on my app,that could
sound-off\on sounds in app-such as ,sound of click,could of some
prezentation.. is there any option that i can declare public variable-
such as int,and to be seen in other class in my other activity.When i
open new item,i what to information of that variable can be seen in
othet itents...Any ides,,,i tried to google but did not
manage...Thanks for share :)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Mount SDK

2012-04-30 Thread baturanija1
HEY people, is there an option that i can mount\unmount SDK card to
input in my app? Thanks for helping

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Set Ringtone

2012-04-23 Thread baturanija1
Hey people,

is there any chanse to set ringtone that i implement in my
activity.This song is not placed on SD  ,so is it possible? send me
some solutions or link if you have ..Thanks people and thans for
sharing

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Sleep

2012-04-17 Thread baturanija1
Hey people, i have simple problem but it gives me a headache :(  I
whant to have a Welcome screen for 3 seconds and than that screen to
redirect to screen number 2.But my Code do not work :

try {
Thread.sleep(3000);
}
catch (InterruptedException e) {

e.printStackTrace();
}

final Context context = this;


Intent intent = new Intent(context, first.class);

startActivity(intent);

First.class is my other screen2.It unfortunatly automatic show screen
number 2.Do not wait these 3 seconds.Can you send me some your
exsample,code,links with solution to this problem...Thans for sharing
people :)

P.S.On the road of life... Sometimes you're the bug; sometimes you're
the windshield.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] setting Wallpaper in Android using button

2012-04-03 Thread baturanija1
Peopple...i have a problem that is killing my head.Every forum
show a result but my applications is not working.How can make one
simple f button ,when i click on it change wallpapeor on my screen
on desktop od my android device.I trued many codes and did not
suiccesed..Please, send me some of your codes to see if it will
work.Thanke you very much

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en