Jump to content

mikestechs

Member
  • Posts

    240
  • Joined

  • Last visited

Everything posted by mikestechs

  1. Thanks a lot. As I am not into apple overall I didnt know that there is function such as fully lock the phone if its stolen. Thank you
  2. Hey, I have recently came across listing with an Iphone X - almost brand new bud locked for around 120$. I was just thinking, is that phone worth something to buy? is there possible way to unlock it by apple or somebody? Thank you for all the answer!
  3. I have small problem with my php contact form code. I have my site using diacritics which does work perfectly. But my contact form input after submitting looks like this "ÄÅ¡Å" after using any [0-9] keys for diacritics. PHP file: <?php $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $service = $_POST['service']; $message = $_POST['message']; $from = $name; $to = 'info@email.com'; $subject = "$name - $service"; $body = "Jméno zákazníka: $name\nE-Mail zákazníka: $email\nTelefonní číslo: $phone\nservice: $service\nZpráva: $message "; if (mail ($to, $subject, $body, $from, $headers)) { $headers = array("Content-Type: text/html; charset=UTF-8"); } else { echo "Failed"; } ?> Output after submitting the contact form: First Last Name Jméno zákazníka: Name E-Mail zákazníka: email Telefonní císlo: phone number service: havárii Zpráva: Ä�Å¡Å� the "headers" as name, email, phone, service, message is written with diacritics BUT then the input for example here: Zpráva: ÄÅ¡Å is not supported for some reason. Also the html file include <meta charset="utf-8">
  4. Really not, the real true is that I have been working with this guy that sold me that phone, I know he forget his apple id password and apple wanted to wait 14 days to get the new password. So when the phone was still logged in i transferred his data to the new one and then the old one restore with Itunes. Now I got this.
  5. Nope, no possibily of stolen phone. Only think about the phone is that bazaar said that the owner lost his password from icloud so he bought a new phone and sell this one
  6. More of NotAppleFanBoy content. Need help with my new Iphone 7 plus (I bought it from internet bazaar). My problem is that when I turn on the phone, it wants me to choose language and other stuff and then there is screen with login to apple ID tabs but its called "Activation Lock" and it wants me to log in with the old owners email I guess cause none of mine apple IDs worked. No restore in Itunes worked out. Thank you for any answer
  7. Alright well im going for the 720s 14 or Envy 13. Thanks so much!
  8. Thanks so much that 720s 14 is such and amazing device. I have one more question. I really love the 720s 15 with I7300HQ and 1050Ti 4Gbs but my only problem is that it has only 256 SSD m.2 and I cant find if I can add more storage. Also always have external hdd with programs it annoying for me.
  9. PS. One more important thing. I need to carry that laptop in my bag or trips so lighter is better.
  10. https://www.alza.cz/EN/ Here you go. I dont know if there is dollar currency but look for laptop to 30 000Kč. Thanks for any help!
  11. Yeah for sure, Im sorry for maybe bad english. So what Im looking for. Budget is around less than 1000$. Atleast 13" screen, underlight keyboard, number pad would be plus and great caps responsibility. Batter life would be great around 4 hours minimum. Need to work with programs like Adobe Photoshop, really simple work with Sony vegas (im not talking about rendering 4K videos.), Thats basically it. Ps. Czech Republic here.
  12. Hey guys, I have simple question, I wasnt able to find any type of quality review of Lenovo 720s - 15IKB so Im asking here, Which one is better? And Which one should I chose for work, little bit of graphic and programming and allaround quality constructions + long battery life? Thank you!
  13. Hey guys, Im looking for laptop (older or new) for 500-600$. requirements: handle basic programming job (Dreamweaver, PSPad, Netbeans) Ps. Im not talking about big programming, just basic so nothing that hard for memory. Simple work with photoshop (Again, nothing hard to process, im not designer.). But mostly fast environment and smooth work. Num. pad., wifi connection, bluetooth connection, and atlest 15" screen! thanks for any help.
  14. I just need to display stuff haha thanks!
  15. Okay, thank you, I was just worried that my PC will run slowly
  16. Hey guys, Im currently on double setup with some not high quality monitor - PackardBell and iiyama ProLite E2210HDS and everything works perfectly also Im "rocking" amd athlon x4 860k black edition. I was wondering if I can buy one more hd/fullhd monitor. I have both of them for work so one more would be perfect. Thanks for answers!
  17. Thank you! But I still cant get into it. I have my list of song created by "external_content_URi" with cursor so I dont know that i actually can place int STEP_VALUE to jump into next song
  18. this is my last post about any kind of music player ever but I really need help. Im working on basic android music player application and Im having trouble to create NEXt and PREVIOUS buttons. So i pretty pretty please if anyone can get me out of that.I have tried something more about that downhere THANK YOU. I have created this yet: Main Application Java file public class MainActivity extends ListActivity { private static final int UPDATE_FREQUENCY = 500; private static final int STEP_VALUE = 4000; private MediaCursorAdapter mediaAdapter = null; private TextView selectedFile= null; private SeekBar seekbar = null; private MediaPlayer player = null; private ImageButton playButton = null; private ImageButton previousButton = null; private ImageButton nextButton = null; private boolean isStarted = true; private String currentFile = ""; private boolean isMovingseekBar = false; private final Handler handler = new Handler(); private final Runnable updatePositionRunnable = new Runnable() { public void run() { updatePosition(); } }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ActivityCompat.requestPermissions(MainActivity.this, new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE}, 1); selectedFile = (TextView) findViewById(R.id.selectedfile); seekbar = (SeekBar) findViewById(R.id.seekbar); playButton = (ImageButton) findViewById(R.id.play); previousButton = (ImageButton) findViewById(R.id.previous); nextButton = (ImageButton) findViewById(R.id.next); player = new MediaPlayer(); player.setOnCompletionListener(onCompletion); player.setOnErrorListener(onError); seekbar.setOnSeekBarChangeListener(seekBarChanged); Cursor cursor = getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, null); if (null != cursor) { cursor.moveToFirst(); mediaAdapter = new MediaCursorAdapter(this, R.layout.listitem, cursor); setListAdapter(mediaAdapter); playButton.setOnClickListener(onButtonClick); nextButton.setOnClickListener(onButtonClick); previousButton.setOnClickListener(onButtonClick); } } @Override protected void onListItemClick(ListView list, View view, int position,long id) { super.onListItemClick(list, view, position, id); currentFile = (String) view.getTag(); startPlay(currentFile); } @Override protected void onDestroy(){ super.onDestroy(); handler.removeCallbacks(updatePositionRunnable); player.stop(); player.reset(); player.release(); player = null; } private void startPlay(String file) { selectedFile.setText(file); seekbar.setProgress(0); player.stop(); player.reset(); try { player.setDataSource(file); player.prepare(); player.start(); } catch (IllegalArgumentException e){ e.printStackTrace(); } catch (IllegalStateException e){ e.printStackTrace(); } catch (IOException e){ e.printStackTrace(); } seekbar.setMax(player.getDuration()); playButton.setImageResource(android.R.drawable.ic_media_pause); updatePosition(); isStarted = true; } private void stopPlay() { player.stop(); player.reset(); playButton.setImageResource(android.R.drawable.ic_media_play); handler.removeCallbacks(updatePositionRunnable); seekbar.setProgress(0); isStarted = false; } private void updatePosition() { handler.removeCallbacks(updatePositionRunnable); // seekbar.setSecondaryProgressTintMode(player.getCurrentPosition()); handler.postDelayed(updatePositionRunnable, UPDATE_FREQUENCY); } private class MediaCursorAdapter extends SimpleCursorAdapter{ MediaCursorAdapter(Context context, int layout, Cursor c){ super(context, layout,c, new String[] {MediaStore.MediaColumns.DISPLAY_NAME, MediaStore.MediaColumns.TITLE, MediaStore.Audio.AudioColumns.DURATION}, new int[] {R.id.displayname, R.id.title,R.id.duration}); } @Override public void bindView(View view,Context context, Cursor cursor) { TextView title = (TextView) view.findViewById(R.id.title); TextView name = (TextView) view.findViewById(R.id.displayname); TextView duration = (TextView) view.findViewById(R.id.duration); name.setText(cursor.getString( cursor.getColumnIndex(MediaStore.MediaColumns.DISPLAY_NAME))); title.setText(cursor.getString( cursor.getColumnIndex(MediaStore.MediaColumns.TITLE))); view.setTag(cursor.getString(cursor.getColumnIndex(MediaStore.MediaColumns.DATA))); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { LayoutInflater inflater = LayoutInflater.from(context); View v = inflater.inflate(R.layout.listitem, parent, false); bindView(v, context, cursor); return v; } } private View.OnClickListener onButtonClick = new View.OnClickListener() { @Override public void onClick(View v) { switch (v.getId()) { case R.id.play: { if (player.isPlaying()) { handler.removeCallbacks(updatePositionRunnable); player.pause(); playButton.setImageResource(android.R.drawable.ic_media_play); } else { if (isStarted) { player.start(); playButton.setImageResource(android.R.drawable.ic_media_pause); updatePosition(); } else { startPlay(currentFile); } } break; } case R.id.next: { int seekto = player.getCurrentPosition() + STEP_VALUE; if (seekto < player.getDuration()) seekto = player.getDuration(); player.pause(); player.seekTo(seekto); player.start(); break; } case R.id.previous: { int seekto = player.getCurrentPosition() - STEP_VALUE; if (seekto < player.getDuration()) seekto = player.getDuration(); player.pause(); player.seekTo(seekto); player.start(); break; } } } }; private MediaPlayer.OnCompletionListener onCompletion = new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mp) { stopPlay(); } }; private MediaPlayer.OnErrorListener onError = new MediaPlayer.OnErrorListener() { @Override public boolean onError(MediaPlayer mp, int what, int extra) { return false; } }; private SeekBar.OnSeekBarChangeListener seekBarChanged = new SeekBar.OnSeekBarChangeListener() { @Override public void onStopTrackingTouch(SeekBar seekBar) { isMovingseekBar = false; } @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fomUser) { if (isMovingseekBar) { player.seekTo(progress); Log.i("OnSeekBarChangeListener", "onProgressChange"); } } @Override public void onStartTrackingTouch(SeekBar seekBar) { isMovingseekBar = true; } }; } I have already did switch with NEXT and PREVIOUS buttons and I have tried to make them work BUT I ended up with getting at the and or beggining of the song not the NEXT or PREVIOUS.
  19. Hey Guys, this is Aus... never mind But jokes aside. I need help with my really basic application (Music player if you want to call it). Im creating basic music player with functions like PLAY, PUASE, NEXT, PREVIOUS. I have 2 "screens" one screen is list of all *.mp3 files and the other is actual player with buttons. I have them kinda separated that means that when I tap one music file in the first screen, it opens the second screen and starts playing music. But what I would love to have is actually some kind of "sliding" tabs. that I would have 2 tabs at the top of application one callled "LIST" and one called "PLAYER" and user would be able to slide throw those to screens or tap one of the tabs. As a attachments I have got JPG1 with is the actual look of player and the second is JPG2 list of song, then the TABS picture is what I would love to have but I cant find any solution for it without "reprogramming" the whole stuff. Thank you very much! PS: Code of that application is written in MainActivity and WoM attachment. THANK YOU FOR ANY HELP!! WoM.java MainActivity.java
  20. Unfortunately, no . They repair it as much as they could. I'm happy that the phone even turn on and work perfectly, no problems with microphone or connectors. But the battery is only problem .
×